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

Attachment: signature.asc
Description: PGP signature

Reply via email to