From owner-freebsd-questions Mon May 22 17:31:49 2000 Delivered-To: freebsd-questions@freebsd.org Received: from freebie.lemis.com (freebie.lemis.com [192.109.197.137]) by hub.freebsd.org (Postfix) with ESMTP id 0891637B80F for ; Mon, 22 May 2000 17:31:44 -0700 (PDT) (envelope-from grog@freebie.lemis.com) Received: (from grog@localhost) by freebie.lemis.com (8.9.3/8.9.0) id KAA85332; Tue, 23 May 2000 10:01:35 +0930 (CST) Date: Tue, 23 May 2000 10:01:35 +0930 From: Greg Lehey To: furio ercolessi Cc: freebsd-questions@FreeBSD.ORG, Stefano Riva Subject: Re: Cannot start softupdates, why? Message-ID: <20000523100135.A85231@freebie.lemis.com> References: <20000522161337.A28097@fw.wintelcom.net> <20000523002721.C10915@spin.it> <20000522161337.A28097@fw.wintelcom.net> <20000523005617.D10915@spin.it> <3.0.5.32.20000523013152.00ccdcb0@civetta.gufi.org> <20000523020029.A13070@spin.it> <20000523002721.C10915@spin.it> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0pre2i In-Reply-To: <20000523002721.C10915@spin.it> Organization: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-418-838-708 WWW-Home-Page: http://www.lemis.com/~grog X-PGP-Fingerprint: 6B 7B C3 8C 61 CD 54 AF 13 24 52 F8 6D A4 95 EF Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tuesday, 23 May 2000 at 0:27:21 +0200, furio ercolessi wrote: > Hi all, > > I am trying to enable softupdates on my /var partition, but > I am having difficulties (I am a FreeBSD newbie migrating > from Linux exactly to improve filesystem performance; please > bear with me). > > I did "ln -s ../../contrib/softupdates/*.[ch] ." in /usr/src/sys/ufs/ffs. > I put "options SOFTUPDATES" in /usr/src/sys/i386/conf/. Did you run config? > I make-installed the custom kernel. > I rebooted, went single user, unmounted my /var partition and did > # tunefs -n enable /dev/da0s1e > tunefs: soft updates set > # tunefs -p /dev/da0s1e > tunefs: soft updates: (-n) enabled > [...more output...] > # mount /dev/da0s1e /var > # mount > [...] > /dev/da0s1e on /var (ufs, local, writes: sync 2 async 0) > > Now I understand that at this point softupdates should appear > in the list within (...). And this is not just a failure of mount > to show it: I ran performance tests without seeing any difference > between "enabled" and "disabled". > I must have forgotten to do something. Thanks for any clue... > (I am on 3.4-RELEASE on a vulgar i586 platform). On Tuesday, 23 May 2000 at 2:00:29 +0200, furio ercolessi wrote: > On Tue, May 23, 2000 at 01:31:52AM +0200, Stefano Riva wrote: >> >> Silly question: have you rebooted after tunefs? >> >> Well, in single user mode I always launch tunefs on a read-only mounted >> filesystem and it works for me... >> >> # mount -r /var >> # tunefs -n enable /var >> # reboot > > I just tried this sequence (ok not really in single user mode > because I would lose the networking and I don't like to drive 40km > at 2am to reach the console :), but I killed nearly all the daemons > in order to free /var). Still not working. > > I am suspecting the kernel build. > I do have ffs_softdep.c and softdep.h as symlinks in /usr/src/sys/ufs/ffs ; > however I do not see ffs_softdep.o in /usr/src/sys/compile/, > just ffs_softdep_stub.o. softupdates.h contains "#define NSOFTUPDATES 0". > Somehow all this looks suspicious to me. > Yet I have "options SOFTUPDATES" in /usr/src/sys/i386/conf/. > Is that the right place for that option? Yes. No warnings from config? Greg -- When replying to this message, please copy the original recipients. For more information, see http://www.lemis.com/questions.html Finger grog@lemis.com for PGP public key See complete headers for address and phone numbers To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message