Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 08 Dec 2002 20:46:05 -0800
From:      Kirk McKusick <mckusick@beastie.mckusick.com>
To:        Nate Lawson <nate@root.org>
Cc:        Archie Cobbs <archie@dellroad.org>, freebsd-current@FreeBSD.ORG
Subject:   Re: backgroud fsck is still locking up system (fwd) 
Message-ID:  <200212090446.gB94k559099515@beastie.mckusick.com>
In-Reply-To: Your message of "Sat, 07 Dec 2002 11:07:23 PST." <Pine.BSF.4.21.0212071100500.20650-100000@root.org> 

next in thread | previous in thread | raw e-mail | index | archive | help
    Date: Sat, 7 Dec 2002 11:07:23 -0800 (PST)
    From: Nate Lawson <nate@root.org>
    To: Archie Cobbs <archie@dellroad.org>
    cc: freebsd-current@FreeBSD.ORG, mckusick@mckusick.com
    Subject: Re: backgroud fsck is still locking up system (fwd)
    X-ASK-Info: Whitelist match

    On Fri, 6 Dec 2002, Archie Cobbs wrote:
    > Julian Elischer wrote:
    > > I put a copy of / in /usr
    > > then from the fixit, I mounted /usr as / and ran growfs from there..
    > > the trick is to not do it while / is mounted.
    > 
    > / wasn't mounted yet when I ran growfs:
    > 
    > > > I ran growfs after booting single user mode but before mounting
    > > > any disks.. perhaps that caused it to not work.
    > 
    > But it was the root partition and I was running in single user mode.
    > If that's a problem then the growfs man page should say so, or maybe
    > it should be more clear about what is meant by "mounted".

    growfs won't work with any mounted fs (even ro) because it needs to
    quiesce kenrel file ops and you can't do that from usermode (yet).  I
    wonder if there might be some clever way to abuse snapshots to have this
    same effect (i.e. keep an open handle to the underlying fs cdev for growfs
    to use and then mount a snapshot of the fs over its own mountpoint for
    procs to use.)
     
    > In any case, running it from the fixit floppy didn't work either
    > (got a core dump), but that may be because it was already screwed up.
    > 
    > So at minimum, there's a documentation bug (IMHO).

    I assume the superblock changes between 4 and 5 changed the ability to use
    4.x growfs on 5.x ufs partitions.  Also, does growfs need to be updated
    for ufs2?

    -Nate

I have made the structural changes to growfs to make it work for
UFS2, however, I have not done more than cursory testing. I would
appreciate it if someone could try running it on various UFS2
filesystems to see if it works properly.

	Kirk McKusick

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200212090446.gB94k559099515>