Date: Sun, 9 Oct 2016 07:06:54 +0200 From: "Terrence Koeman" <terrence@darkness-reigns.com> To: <freebsd-geom@freebsd.org> Subject: fsck geom geli volume? Message-ID: <467301d221ea$f3d6f320$db84d960$@darkness-reigns.com>
next in thread | raw e-mail | index | archive | help
I had to reboot a server that hung, and now I can't seem to fsck one of the geli volumes. I've found this thread: https://lists.freebsd.org/pipermail/freebsd-geom/2008-September/003042.html, but this doesn't work for me as given: [root@baphomet /usr]# geli attach -p -k /etc/geli/vtbd1.kf /dev/vtbd1 [root@baphomet /usr]# geli list [snip boot vol] [snip swap vol] Geom name: vtbd1.eli State: ACTIVE EncryptionAlgorithm: AES-CBC KeyLength: 256 Crypto: hardware Version: 7 UsedKey: 0 Flags: NONE KeysAllocated: 512 KeysTotal: 512 Providers: 1. Name: vtbd1.eli Mediasize: 2199023251456 (2.0T) Sectorsize: 4096 Mode: r0w0e0 Consumers: 1. Name: vtbd1 Mediasize: 2199023255552 (2.0T) Sectorsize: 512 Mode: r1w1e1 [root@baphomet /usr]# fsck -t ufs -pf /dev/vtbd1.eli /dev/vtbd1.eli: NO WRITE ACCESS /dev/vtbd1.eli: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY. I did not attach with the -r option, but somehow fsck thinks it's read-only anyway. An fsck -y completes without finding errors: [root@baphomet /usr]# fsck -t ufs -y /dev/vtbd1.eli ** /dev/vtbd1.eli (NO WRITE) ** Last Mounted on /mnt/backup ** Phase 1 - Check Blocks and Sizes ** Phase 2 - Check Pathnames ** Phase 3 - Check Connectivity ** Phase 4 - Check Reference Counts ** Phase 5 - Check Cyl groups 10 files, 4255186 used, 515758487 free (23 frags, 64469808 blocks, 0.0% fragmentation) What am I missing? Thanks. -- Regards, Terrence Koeman, PhD/MTh/BPsy Darkness Reigns (Holding) B.V. Please quote relevant replies.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?467301d221ea$f3d6f320$db84d960$>