From owner-freebsd-stable@FreeBSD.ORG Thu Aug 16 16:52:42 2012 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 3DDC6106564A for ; Thu, 16 Aug 2012 16:52:42 +0000 (UTC) (envelope-from nonesuch@longcount.org) Received: from mail-ob0-f182.google.com (mail-ob0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id F40408FC0C for ; Thu, 16 Aug 2012 16:52:41 +0000 (UTC) Received: by obbun3 with SMTP id un3so5265964obb.13 for ; Thu, 16 Aug 2012 09:52:41 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-originating-ip:in-reply-to:references:date :message-id:subject:from:to:cc:content-type:x-gm-message-state; bh=OB99HKNuDWyBB/gILmtTqjQdpWxhG80DBKUy8aHVQpQ=; b=SpBARdC3MuyUZ2wfz5K/wpKntpAhhFCY6dluYOWVl6t1aTaVcMg4BaThgKqTdy6o9a QZwZGHwlI48VOuc62YPpd0h1A8bFDNkanlXAFQVdgk6LjA4eNeH1ZFFGLBwsQJ3WGPaE aY8jbIhGbjvoc6HtNMJW78yao9li21XwdC+CSNnjB+GfGxjyp2mNIXu8ReoDsOpJMc3W DXx1USK7u5r58dCFZC+RO2NclTydZsTMd8/Ogar0fqZGIlyVr32wM/sN+ehbgnVNChTm V2xm42Wui3ms/rrGoFPLp+o3+aPGLJXT9PCOC9zTAoZERyas2kbctyLZa9aEHyyxErvM vaxQ== MIME-Version: 1.0 Received: by 10.182.164.103 with SMTP id yp7mr1579346obb.26.1345135961244; Thu, 16 Aug 2012 09:52:41 -0700 (PDT) Received: by 10.76.101.212 with HTTP; Thu, 16 Aug 2012 09:52:41 -0700 (PDT) X-Originating-IP: [209.66.78.50] In-Reply-To: References: Date: Thu, 16 Aug 2012 12:52:41 -0400 Message-ID: From: Mark Saad To: Kevin Oberman Content-Type: text/plain; charset=UTF-8 X-Gm-Message-State: ALoCoQkdqhwnXbTnKL6ypWuiPzcxKUzgmV1MOl8V6ZNGwYXLWG2wJ8Klm5AuY8hp8fFpelF+7XZP Cc: "freebsd-stable@freebsd.org Stable" Subject: Re: Geom label lost after expanding partition 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: Thu, 16 Aug 2012 16:52:42 -0000 On Thu, Aug 16, 2012 at 12:30 PM, Kevin Oberman wrote: > I have a GPT formatted disk where I recently expanded the size of a > partition. I used "gpart resize -i 6 ada1" first to expand the > partition to use the remaining free space and then growfs to modify > the FFS file system to use the full partition. This was all done in > single-user mode, of course, but when I enter "exit" to bring the > system up, it failed to mount /usr. This was because /dev/ufs/usr did > not exist! > > I assumed that gpart "lost" the label when it resized the partition > (which looked like a minor bug to me), but I have been completely > unable to re-create the label. I first tried tunefs and then glabel. > (The handbook says glabel can be used, though the glabel man page is > explicit that it can't.) Both complete with no errors, but neither > fixes the problem. I still don't see any /dev/usf/usr. "glabel list" > does not even list the geom. > > I do get the following GEOM messages in dmesg: > GEOM: ada1p2: invalid disklabel. > GEOM: ufsid/4df4feeda0ce6d5c: invalid disklabel. > GEOM: ufs/root: invalid disklabel. > GEOM: gpt/root: invalid disklabel. > GEOM: gptid/43f0eafd-ba3a-11e0-b70a-f0def166a11e: invalid disklabel. > > but /dev/ufs/root works fine to mount /, and I have always seen these > errors and have never been able to figure out what is causing them. > > I ended up entering the actual drive node (/dev/ada1p6) into my > fstab. This works, but brings back the old issues of having to edit > the fstab any time the drive is moved. > > Does anyone have any idea how to get the labels to work again? I'm not > even sure what tool displays what label as I can label with glabel, > tunefs, and newfs > -- > R. Kevin Oberman, Network Engineer > E-mail: kob6558@gmail.com > _______________________________________________ > freebsd-stable@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" Kevin I believe the UFS or geom_labels are stuck at the end of the partition so , I can see how it would wipe them out if you resized it. Can you run "glabel status" and "glabel list" send us the results ? -- mark saad | nonesuch@longcount.org