fsck geom geli volume?

Pawel Jakub Dawidek pjd at FreeBSD.org
Thu Oct 13 20:22:57 UTC 2016


On Sun, Oct 09, 2016 at 12:59:44PM +0200, Terrence Koeman wrote:
> 
> [snip]
> > 
> > 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).
> 
> Unfortunately, I don't have KTRACE compiled in on this machine. However, I found that fsck would work when I commented the attempt at mounting & rebooted.
> 
> I investigated and I found that when I only run "geli attach" I can run fsck, but when I attach and then try to mount (which fails due to dirty fs) then fsck thinks the fs is read-only. Whether I then detach and attach again doesn't matter, fsck will think /dev/vtbd1.eli is read-only until reboot.

I recall there was some hack that allowed to fsck device even if it was
open already, but only once. Maybe this is somehow related.

You could try setting kern.geom.debugflags to 4 and see where
g_access(9) is failing.

-- 
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/20161013/85f9facc/attachment.sig>


More information about the freebsd-geom mailing list