From owner-freebsd-current Sat Dec 7 11: 7:29 2002 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id ADA7937B401 for ; Sat, 7 Dec 2002 11:07:27 -0800 (PST) Received: from rootlabs.com (root.org [67.118.192.226]) by mx1.FreeBSD.org (Postfix) with SMTP id 1C89C43EBE for ; Sat, 7 Dec 2002 11:07:23 -0800 (PST) (envelope-from nate@rootlabs.com) Received: (qmail 20671 invoked by uid 1000); 7 Dec 2002 19:07:23 -0000 Date: Sat, 7 Dec 2002 11:07:23 -0800 (PST) From: Nate Lawson To: Archie Cobbs Cc: freebsd-current@FreeBSD.ORG, mckusick@mckusick.com Subject: Re: backgroud fsck is still locking up system (fwd) In-Reply-To: <200212062329.gB6NTISI066951@arch20m.dellroad.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message