Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 04 Nov 2012 15:00:27 +0100
From:      Bas Smeelen <b.smeelen@ose.nl>
To:        freebsd-questions@freebsd.org
Subject:   Re: FreeBSD 9.1 and SU+J
Message-ID:  <509674FB.9080208@ose.nl>
In-Reply-To: <20121104131104.71e81e3a@gumby.homeunix.com>
References:  <AD4BB781-B3A3-4E26-966A-BAF4C3813B8E@lafn.org> <6a6b6ddcdec1296708c054d73b7b5a34@eumx.net> <5096470C.20904@ose.nl> <20121104131104.71e81e3a@gumby.homeunix.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 11/04/2012 02=3A11 PM=2C RW wrote=3A
=3E On Sun=2C 04 Nov 2012 11=3A44=3A28 +0100
=3E Bas Smeelen wrote=3A
=3E
=3E=3E On 11/03/2012 07=3A30 PM=2C Herbert J=2E Skuhra wrote=3A
=3E=3E=3E On 03=2E11=2E2012 13=3A48=2C Doug Hardie wrote=3A
=3E=3E=3E
=3E=3E=3E=3E I didn=27t notice that journaling is on by default and now dum=
p is
=3E=3E=3E=3E failing=2E  The only way I can see to disable journaling requi=
res
=3E=3E=3E=3E that the file system be dismounted=2C or read-only=2E  This is=
 a
=3E=3E=3E=3E remote machine and journaling is on root=2E  Is there any othe=
r way
=3E=3E=3E=3E that would not require me to make a long trip out to the site=
=3F
=3E=3E=3E This is a task for mfsBSD=3A http=3A//mfsbsd=2Evx=2Esk
=3E=3E=3E
=3E=3E Hmm=2C I think you have to make a trip or get some kind of remote
=3E=3E console over ip=2E
=3E=3E I tried it remote on a 9=2E1-RC2 system that has / /tmp /var and /us=
r
=3E=3E as seperate partions
=3E=3E For / i can do a mount -o ro / and tunefs -j disable /dev/da0p2 then=

=3E=3E mount -o rw /
=3E=3E For the /tmp /var and /usr filesystems this does not work bcause hey=

=3E=3E cannot be remounted ro while they are busy=2E
=3E A quick and dirty way to do it would be to edit /etc/rc=2Ed/fsck and pu=
t
=3E your tunefs commands at the bottom of fsck=5Fstart=28=29=2C then do a r=
eboot=2E

Very nice =3A=29 Thanks a lot!
I tried this and can confirm it works=2E
=5FBut=5F not all partitions are soft updates without journaling now=2E
It didn=27t work for the / partition=2C I guess because / is mounted rw=20=

before /etc/rc=2Ed/fsck is executed=2E
For the / partition I guess I will really have to be at the console=20
starting single user=2C because mount -o ro en then disable with tunefs -j=
=20
disable did not work either=2E See at the end of this mail=2E
I wonder if it even can be accomplished when booting single user=2C which=
=20
I cannto test right now=2E

Doug=2C if you have more partitions than just / you could go ahead with=20=

the above solution=2C it worked for me=2E You can then at least dump data=
=20
from your other partitions=2E

See below=3A

root=40osebart=3A/usr/home/Freebee =23 mount
/dev/da0p2 on / =28ufs=2C local=2C journaled soft-updates=29
devfs on /dev =28devfs=2C local=2C multilabel=29
/dev/da0p3 on /tmp =28ufs=2C local=2C journaled soft-updates=29
/dev/da0p4 on /var =28ufs=2C local=2C journaled soft-updates=29
/dev/da0p5 on /usr =28ufs=2C local=2C journaled soft-updates=29

edit /etc/rc=2Ed/fsck and added=3A

/sbin/tunefs -j disable /dev/da0p2
/sbin/tunefs -j disable /dev/da0p3
/sbin/tunefs -j disable /dev/da0p4
/sbin/tunefs -j disable /dev/da0p5

just before
=7D

load=5Frc=5Fconfig =24name
run=5Frc=5Fcommand =22=241=22

at the end=2E

shutdown -r now and I have

root=40osebart=3A/usr/home/Freebee =23 mount
/dev/da0p2 on / =28ufs=2C local=2C journaled soft-updates=29
devfs on /dev =28devfs=2C local=2C multilabel=29
/dev/da0p3 on /tmp =28ufs=2C local=2C soft-updates=29
/dev/da0p4 on /var =28ufs=2C local=2C soft-updates=29
/dev/da0p5 on /usr =28ufs=2C local=2C soft-updates=29

See below for mount -o ro

root=40osebart=3A/usr/home/Freebee =23 mount -o ro /
root=40osebart=3A/usr/home/Freebee =23 mount
/dev/da0p2 on / =28ufs=2C local=2C read-only=29
devfs on /dev =28devfs=2C local=2C multilabel=29
/dev/da0p3 on /tmp =28ufs=2C local=2C soft-updates=29
/dev/da0p4 on /var =28ufs=2C local=2C soft-updates=29
/dev/da0p5 on /usr =28ufs=2C local=2C soft-updates=29
root=40osebart=3A/usr/home/Freebee =23 tunefs -j disable /dev/da0p2
Clearing journal flags from inode 4
tunefs=3A soft updates journaling cleared but soft updates still set=2E
tunefs=3A remove =2Esujournal to reclaim space

shutdown -r now but still

root=40osebart=3A/usr/home/Freebee =23 mount
/dev/da0p2 on / =28ufs=2C local=2C soft-updates=29
devfs on /dev =28devfs=2C local=2C multilabel=29
/dev/da0p3 on /tmp =28ufs=2C local=2C soft-updates=29
/dev/da0p4 on /var =28ufs=2C local=2C soft-updates=29
/dev/da0p5 on /usr =28ufs=2C local=2C soft-updates=29








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?509674FB.9080208>