From owner-freebsd-stable@FreeBSD.ORG Thu Aug 16 16:30:18 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 E739D106564A for ; Thu, 16 Aug 2012 16:30:18 +0000 (UTC) (envelope-from kob6558@gmail.com) Received: from mail-we0-f182.google.com (mail-we0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id 79ED38FC14 for ; Thu, 16 Aug 2012 16:30:18 +0000 (UTC) Received: by weyx56 with SMTP id x56so2317169wey.13 for ; Thu, 16 Aug 2012 09:30:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=XIx7n1CVQYyoU0E+6ETDUFcCSMNSa4bTBdLtPCy9OsM=; b=aMcg5XRVGLMlCAOgE+e+msmhP8UuCKCooLORyA7tEXG9dCqNp/P0mTgdb3+gv/ddSR gqdWIyaI0CUGfnkxrf5H3zwnSkjEc+RNidhly0iHuI4Xj3FkUdz7X6SDgb89y6Vh48TV 13BSop04oNUiWXvh4HPksMyXIY0ud3SN2AEa+/Vgp7Vq6lWJAbCx+s81qOHXPK7ZLbdl gFSlyb8F6yZEVpUMhO5fojVDY9Rci3CTM4JfiGlhfgbRt3T4gNWcOcA4I86QA8/yjbXO 2jthmEX2l2sWU+fYO/dzS6HC+15yqPwjcqntS3hon4lo3+EQKve2ghlNal3Z5aDHaNhy +L/A== MIME-Version: 1.0 Received: by 10.216.237.161 with SMTP id y33mr885543weq.62.1345134617269; Thu, 16 Aug 2012 09:30:17 -0700 (PDT) Received: by 10.223.63.76 with HTTP; Thu, 16 Aug 2012 09:30:17 -0700 (PDT) Date: Thu, 16 Aug 2012 09:30:17 -0700 Message-ID: From: Kevin Oberman To: "freebsd-stable@freebsd.org Stable" Content-Type: text/plain; charset=UTF-8 Subject: 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:30:19 -0000 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 snen 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