From owner-freebsd-stable@FreeBSD.ORG Wed Jun 8 16:40:08 2011 Return-Path: Delivered-To: freebsd-stable@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B5FEC106566B for ; Wed, 8 Jun 2011 16:40:08 +0000 (UTC) (envelope-from avg@FreeBSD.org) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id 0FB7F8FC15 for ; Wed, 8 Jun 2011 16:40:07 +0000 (UTC) Received: from odyssey.starpoint.kiev.ua (alpha-e.starpoint.kiev.ua [212.40.38.101]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id TAA22681; Wed, 08 Jun 2011 19:40:04 +0300 (EEST) (envelope-from avg@FreeBSD.org) Message-ID: <4DEFA5E3.8080806@FreeBSD.org> Date: Wed, 08 Jun 2011 19:40:03 +0300 From: Andriy Gapon User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.17) Gecko/20110504 Lightning/1.0b2 Thunderbird/3.1.10 MIME-Version: 1.0 To: Jeremy Chadwick References: <4DEF7322.8030907@gmx.de> <4DEF8103.9030401@gmx.de> <20110608162626.GA94883@icarus.home.lan> In-Reply-To: <20110608162626.GA94883@icarus.home.lan> X-Enigmail-Version: 1.1.2 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: freebsd-stable@FreeBSD.org Subject: Re: [SOLVED] Re: labelling root file system (RELENG_8) X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Jun 2011 16:40:08 -0000 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