From owner-freebsd-stable@FreeBSD.ORG Mon Aug 27 19:06:51 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id EAA8B106568D for ; Mon, 27 Aug 2012 19:06:50 +0000 (UTC) (envelope-from kob6558@gmail.com) Received: from mail-wi0-f172.google.com (mail-wi0-f172.google.com [209.85.212.172]) by mx1.freebsd.org (Postfix) with ESMTP id 6EEBE8FC1D for ; Mon, 27 Aug 2012 19:06:50 +0000 (UTC) Received: by wicr5 with SMTP id r5so2950311wic.13 for ; Mon, 27 Aug 2012 12:06:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=vIWir2FyfTQMGXpG4FgKOwjHzSgBRScV4NRkFH7cdVc=; b=LmVfPFViKI7MSfVmaENF/KSUj/aiOb+7L3JEU20yRJG/tI/quHktr9zd7REkL9VFR7 9tF331yorEgt8N3S0nJhsKR3S+ofiMUe+nnff10LJb2b8Z5sxwi9uwW7b1Fi4OFdYrXv 7wtLmejHhb5fMrK9ukXBehX0wrBn3yr3JPm/ZF8HhW3ZuPPtDcCB6XLDd9SLFaWvoSzz cRx9jJEl0TaVRDeJ47wf9fiZcD/eL3/D43RRKwIWwHKC9ZPvMODJsc/GanfBSNFOtKY6 8oPUbM8ra7XRTMr4JPlEJhHgwsSeF6m1v6qyXpSr+k3RSU3XB7vGB1YgeHOJVBnn0QnU 4flw== MIME-Version: 1.0 Received: by 10.216.237.161 with SMTP id y33mr810172weq.62.1346094409277; Mon, 27 Aug 2012 12:06:49 -0700 (PDT) Received: by 10.223.63.76 with HTTP; Mon, 27 Aug 2012 12:06:49 -0700 (PDT) In-Reply-To: References: <2d4dfcb2637f4d0e9671899538b603d9@xtaz.co.uk> <67DFAA78-A9A2-49F9-9C29-CA5653ECE3C0@lassitu.de> <20120827172650.7e6a7685@AMD620.ovitrap.com> <78f8335e54e04f158609f0382afb8d4d@xtaz.co.uk> Date: Mon, 27 Aug 2012 12:06:49 -0700 Message-ID: From: Kevin Oberman To: Warren Block Content-Type: text/plain; charset=UTF-8 Cc: Erich Dollansky , freebsd-stable@freebsd.org, Stefan Bethke , Matt Smith Subject: Re: 9.1 RELENG_9 Unable to cleanly dismount root partition on shutdown 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: Mon, 27 Aug 2012 19:06:51 -0000 On Mon, Aug 27, 2012 at 11:42 AM, Warren Block wrote: > On Mon, 27 Aug 2012, Matt Smith wrote: > >> On 2012-08-27 14:56, Warren Block wrote: >>> >>> >>> Stefan called it. The newfs is done on /dev/gpt/gptroot, no problem >>> there. But when glabel writes to /dev/ada0p2--which is >>> /dev/gpt/gptroot, same thing, it overwrites the last block. And then >>> the filesystem is mounted with the glabel device, which is actually >>> one block smaller than the filesystem expects. >>> >>> Could be either the filesystem or GEOM that's causing the failure at >>> shutdown. >>> >>> Happily, those glabels aren't accomplishing anything useful and can >>> be skipped. Removing the glabels and changing the devices in fstab >>> might be enough. A more cautious approach would be to back up, newfs, >>> skip the glabel step, and then change the devices in fstab. >> >> >> As I said on a previous mail I did boot it with a USB stick and cleared >> the glabel metadata and altered the fstab to point to both the GPT labels >> and the raw UFS device and I still get the issue. So am I right in thinking >> then that this has caused irreparable damage > > > To the filesystem? Probably (weasel word) not. The old instructions for > gmirror used the last block out of a filesystem and there have been no > notable reports of data loss. > > One thing to mention is that SU+J might change what the filesystem does with > that last block. I'm avoiding SU+J until the dump problem is fixed, so have > not experimented with that. > >> and the only way I can fix this now is to newfs the filesystem again, this >> time just using GPT labels and not using glabel at all? > > > I'll commit to it and say yes, that will work. > >> This is the first time I've ever done a manually partitioned installation >> with GPT and alignment, previously I've only ever used sysinstall with >> non-aligned MBR installations, so it was a bit of a learning curve. If I do >> have to newfs it again then I want to be sure that I'm doing the correct >> things so that I don't find myself with any other issues. So does the rest >> of what I did look fine? > > > No obvious problems jumped out at me. Here are my notes: > http://www.wonkity.com/~wblock/docs/html/disksetup.html > > The gpart version is halfway down. I really need to switch that around. Pretty good page, but I would really suggest that you also do either 4k or 1M alignment on your partitions. If you don't and use a disk with 4K blocks (internally), you will have terrible performance. 1M is recommended by Microsoft and used by Windows, but seems a bit excessive to me. -- R. Kevin Oberman, Network Engineer E-mail: kob6558@gmail.com