Date: Wed, 08 Jun 2011 19:40:03 +0300 From: Andriy Gapon <avg@FreeBSD.org> To: Jeremy Chadwick <freebsd@jdc.parodius.com> Cc: freebsd-stable@FreeBSD.org Subject: Re: [SOLVED] Re: labelling root file system (RELENG_8) Message-ID: <4DEFA5E3.8080806@FreeBSD.org> In-Reply-To: <20110608162626.GA94883@icarus.home.lan> References: <4DEF7322.8030907@gmx.de> <BANLkTimBYL8e2y86m7GZv5U8hdok3KR%2B=w@mail.gmail.com> <4DEF8103.9030401@gmx.de> <20110608162626.GA94883@icarus.home.lan>
next in thread | previous in thread | raw e-mail | index | archive | help
on 08/06/2011 19:26 Jeremy Chadwick said the following: > I have the exact same question except not with regards to labels but > toggling TRIM capability on the root filesystem. > > - Start system > - At loader, boot single-user (option 4) > - At prompt choose /bin/sh > - mount -a I think that this is a culprit. > - tunefs -t enable /dev/ada0s1a --- fails Shouldn't you have / mounted r/o here? BTW, AFAIR, *re*-mounting root read-only won't help; it needs to have never been mounted r/w. > - sysctl kern.geom.debugflags=16 > - tunefs -t enable /dev/ada0s1a --- works > - tunefs -p /dev/ada0s1a -- shows TRIM enabled > - reboot I think that at this step your superblock on disk gets re-written with its copy in memory which has never been updated. But not sure. > - Boot into single-user, multi-user, whatever > - tunefs -p /dev/ada0s1a -- shows TRIM disabled -- Andriy Gapon
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4DEFA5E3.8080806>