From owner-freebsd-questions@FreeBSD.ORG Sat Oct 8 14:02:03 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 463DB16A41F for ; Sat, 8 Oct 2005 14:02:03 +0000 (GMT) (envelope-from unixgeek@six-two.net) Received: from imf21aec.mail.bellsouth.net (imf21aec.mail.bellsouth.net [205.152.59.69]) by mx1.FreeBSD.org (Postfix) with ESMTP id A720243D46 for ; Sat, 8 Oct 2005 14:02:02 +0000 (GMT) (envelope-from unixgeek@six-two.net) Received: from ibm63aec.bellsouth.net ([65.7.234.118]) by imf21aec.mail.bellsouth.net with ESMTP id <20051008140201.PPFT3208.imf21aec.mail.bellsouth.net@ibm63aec.bellsouth.net> for ; Sat, 8 Oct 2005 10:02:01 -0400 Received: from [192.168.1.102] (really [65.7.234.118]) by ibm63aec.bellsouth.net with ESMTP id <20051008140157.SLNL12438.ibm63aec.bellsouth.net@[192.168.1.102]>; Sat, 8 Oct 2005 10:01:57 -0400 In-Reply-To: References: <35c231bf0510080020g42555b0bpcca3df4727bac683@mail.gmail.com> Mime-Version: 1.0 (Apple Message framework v734) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: Gunter Wambaugh Date: Sat, 8 Oct 2005 09:02:00 -0500 To: Sasa Stupar X-Mailer: Apple Mail (2.734) Cc: freebsd-questions@freebsd.org Subject: Re: tunefs problem X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 08 Oct 2005 14:02:03 -0000 Look at the output from fsck. It very clearly tells you that it found problems, but didn't fix them (probably because the partition is mounted). Notice the following lines: ** /dev/ad2s1a (NO WRITE) and CLEAR? no Boot to single user mode and try it again. Also, if you add fsck_y_enable="YES" to rc.conf these should be fixed automatically at boot (IIRC). HTH On Oct 8, 2005, at 2:32 AM, Sasa Stupar wrote: > > > --On 8. oktober 2005 0:20 -0700 David Kirchner wrote: > > >> On 10/8/05, Sasa Stupar wrote: >> >>> I am trying to enable tunefs for my filesystem but I get the >>> following: >>> ------------- >>> # tunefs -n enable / >>> tunefs: soft updates cannot be enabled until fsck is run >>> tunefs: /dev/ad2s1a: failed to write superblock >>> ------------- >>> >>> But AFAIK fsck is not running. >>> >>> What am I missing here? >>> >>> Regards, >>> Sasa >>> >> >> It means that you need to run fsck on the partition before you can >> enable softupdates. Something like "fsck -y /" will do it. >> > > I have done it but: > ----------- > # fsck -y / > ** /dev/ad2s1a (NO WRITE) > ** Last Mounted on / > ** Root file system > ** Phase 1 - Check Blocks and Sizes > ** Phase 2 - Check Pathnames > ** Phase 3 - Check Connectivity > ** Phase 4 - Check Reference Counts > UNREF FILE I=1719827 OWNER=mysql MODE=100600 > SIZE=0 MTIME=Oct 6 12:19 2005 > CLEAR? no > > UNREF FILE I=1719847 OWNER=mysql MODE=100600 > SIZE=0 MTIME=Oct 6 12:19 2005 > CLEAR? no > > UNREF FILE I=1719855 OWNER=mysql MODE=100600 > SIZE=0 MTIME=Oct 6 12:19 2005 > CLEAR? no > > ** Phase 5 - Check Cyl groups > 405241 files, 14013004 used, 4821771 free (72987 frags, 593598 > blocks, 0.4% fragmentation) > mig29# tunefs -n enable / > tunefs: soft updates cannot be enabled until fsck is run > tunefs: /dev/ad2s1a: failed to write superblock > ------------ > > Still the same issue. > Anything else should I do? > > Regards, > Sasa > >