fsck geom geli volume?

Pawel Jakub Dawidek pjd at FreeBSD.org
Sun Oct 9 07:16:52 UTC 2016


On Sun, Oct 09, 2016 at 07:06:54AM +0200, Terrence Koeman wrote:
> 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 at baphomet /usr]# geli attach -p -k /etc/geli/vtbd1.kf /dev/vtbd1
> [root at 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

This looks good, ie. it is not open by anything yet.

> Consumers:
> 1. Name: vtbd1
>    Mediasize: 2199023255552 (2.0T)
>    Sectorsize: 512
>    Mode: r1w1e1
> [root at baphomet /usr]# fsck -t ufs -pf /dev/vtbd1.eli                                              
> /dev/vtbd1.eli: NO WRITE ACCESS
> /dev/vtbd1.eli: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY.

Please start by running:

	# ktrace fsck -t ufs -pf /dev/vtbd1.eli

and see where exactly it is failing and with what error (run kdump and
look for attempts to open /dev/vtbd1.eli device).

-- 
Pawel Jakub Dawidek                       http://www.wheelsystems.com
FreeBSD committer                         http://www.FreeBSD.org
Am I Evil? Yes, I Am!                     http://mobter.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-geom/attachments/20161009/47d23ab0/attachment.sig>


More information about the freebsd-geom mailing list