Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 05 Nov 2012 08:46:31 +0100
From:      Bas Smeelen <b.smeelen@ose.nl>
To:        Doug Hardie <bc979@lafn.org>,  FreeBSD Questions <freebsd-questions@freebsd.org>
Subject:   Re: FreeBSD 9.1 and SU+J
Message-ID:  <50976ED7.3090506@ose.nl>
In-Reply-To: <EB501055-099C-4BA5-898C-1C552CFD9775@lafn.org>
References:  <AD4BB781-B3A3-4E26-966A-BAF4C3813B8E@lafn.org> <6a6b6ddcdec1296708c054d73b7b5a34@eumx.net> <5096470C.20904@ose.nl> <20121104131104.71e81e3a@gumby.homeunix.com> <509674FB.9080208@ose.nl> <50968410.60506@ose.nl> <EB501055-099C-4BA5-898C-1C552CFD9775@lafn.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 11/04/2012 11=3A18 PM=2C Doug Hardie wrote=3A
=3E On 4 November 2012=2C at 07=3A04=2C Bas Smeelen wrote=3A
=3E
=3E=3E On 11/04/2012 03=3A00 PM=2C Bas Smeelen wrote=3A
=3E=3E=3E On 11/04/2012 02=3A11 PM=2C RW wrote=3A
=3E=3E=3E=3E On Sun=2C 04 Nov 2012 11=3A44=3A28 +0100
=3E=3E=3E=3E Bas Smeelen wrote=3A
=3E=3E=3E=3E
=3E=3E=3E=3E=3E On 11/03/2012 07=3A30 PM=2C Herbert J=2E Skuhra wrote=3A
=3E=3E=3E=3E=3E=3E On 03=2E11=2E2012 13=3A48=2C Doug Hardie wrote=3A
=3E=3E=3E=3E=3E=3E
=3E=3E=3E=3E=3E=3E=3E I didn=27t notice that journaling is on by default an=
d now dump is
=3E=3E=3E=3E=3E=3E=3E failing=2E  The only way I can see to disable journal=
ing requires
=3E=3E=3E=3E=3E=3E=3E that the file system be dismounted=2C or read-only=2E=
  This is a
=3E=3E=3E=3E=3E=3E=3E remote machine and journaling is on root=2E  Is there=
 any other way
=3E=3E=3E=3E=3E=3E=3E that would not require me to make a long trip out to=
 the site=3F
=3E=3E I guess I was a little off here=2C it actually worked for / also
=3E=3E See further below for the whole story
=3E=3E This was all done remote with ssh
=3E=3E
=3E=3E =24 mount
=3E=3E /dev/da0p2 on / =28ufs=2C local=2C soft-updates=29
=3E=3E devfs on /dev =28devfs=2C local=2C multilabel=29
=3E=3E /dev/da0p3 on /tmp =28ufs=2C local=2C soft-updates=29
=3E=3E /dev/da0p4 on /var =28ufs=2C local=2C soft-updates=29
=3E=3E /dev/da0p5 on /usr =28ufs=2C local=2C soft-updates=29
=3E=3E =24 su
=3E=3E Password=3A
=3E=3E root=40osebart=3A/usr/home/Freebee =23 rm /=2Esujournal
=3E=3E root=40osebart=3A/usr/home/Freebee =23 rm /var/=2Esujournal
=3E=3E root=40osebart=3A/usr/home/Freebee =23 rm /tmp/=2Esujournal
=3E=3E root=40osebart=3A/usr/home/Freebee =23 rm /usr/=2Esujournal
=3E=3E root=40osebart=3A/usr/home/Freebee =23 uname -a
=3E=3E FreeBSD osebart=2Eose=2Enl 9=2E1-RC2 FreeBSD 9=2E1-RC2 =230 r241106=
=3A Mon Oct 1
=3E=3E 18=3A26=3A44 UTC 2012
=3E=3E root=40farrell=2Ecse=2Ebuffalo=2Eedu=3A/usr/obj/usr/src/sys/GENERIC=
  amd64
=3E I can=27t get that to work on i386=2E  Here is /etc/rc=2Ed/fsck=3A
=3E =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=
=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F
=3E          fi
=3E
=3E          echo =22Ready for tunefs=22
=3E          /sbin/tunefs -j disable /dev/da0p2
=3E =7D
=3E
=3E load=5Frc=5Fconfig =24name
=3E run=5Frc=5Fcommand =22=241=22
=3E
=3E =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=
=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F
=3E
=3E
=3E reboot computer and here is the output from messages=3A
=3E
=3E =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=
=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F
=3E
=3E
=3E Nov  4 14=3A07=3A19 Router kernel=3A Ready for tunefs
=3E Nov  4 14=3A07=3A19 Router kernel=3A Clearing journal flags from inode=
 4
=3E Nov  4 14=3A07=3A19 Router kernel=3A tunefs=3A soft updates journaling=
 cleared but soft updates still set=2E
=3E Nov  4 14=3A07=3A19 Router kernel=3A tunefs=3A remove =2Esujournal to r=
eclaim space
=3E Nov  4 14=3A07=3A19 Router kernel=3A Mounting local file systems=3A=2E=

=3E
=3E =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=
=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F
=3E
=3E and the output from mount=3A
=3E
=3E Router=23 mount
=3E /dev/da0p2 on / =28ufs=2C local=2C journaled soft-updates=29
=3E devfs on /dev =28devfs=2C local=2C multilabel=29
=3E
=3E =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=
=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F
=3E
=3E Journaled is still on after 2 reboots=2E
=3E
=3E Router=23 uname -a
=3E FreeBSD Router 9=2E1-RC2 FreeBSD 9=2E1-RC2 =230 r241133=3A Tue Oct  2 1=
7=3A11=3A45 UTC 2012     root=40obrian=2Ecse=2Ebuffalo=2Eedu=3A/usr/obj/usr=
/src/sys/GENERIC  i386
=3E
=3E -- Doug

Hi Doug

This is bad=2E It did not work for me that way either on the / partition=2C=
 but=20
it worked on the other partitions=2E
Because I have seperate /tmp /var and /usr partition I was able to mount th=
e=20
/ partition readonly in multiuser mode with mount -o ro / and then tunefs -=
j=20
disable and right after that reboot=2E
It seems that somehow when the / partition gets mounted after disabling the=
=20
journal=2C journaled soft updates is still set and thus still enabled=2C bu=
t=20
with a reboot it gets cleared=3F
I don=27t really understand this=2E



This e-mail message=2C including any attachment=28s=29=2C is intended solel=
y for the addressee or addressees=2E Any views or opinions presented herein=
 are solely those of the author and do not necessarily represent those of O=
SE=2E

If you are not the intended recipient of this communication please return t=
his e-mail message and the attachment=28s=29 to the sender and delete and d=
estroy all copies=2E




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