From owner-freebsd-fs@FreeBSD.ORG Mon Mar 12 00:45:23 2012 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C1BCA1065672; Mon, 12 Mar 2012 00:45:23 +0000 (UTC) (envelope-from matt.thyer@gmail.com) Received: from mail-wi0-f178.google.com (mail-wi0-f178.google.com [209.85.212.178]) by mx1.freebsd.org (Postfix) with ESMTP id 1F7118FC15; Mon, 12 Mar 2012 00:45:22 +0000 (UTC) Received: by wibhq7 with SMTP id hq7so2371143wib.13 for ; Sun, 11 Mar 2012 17:45:22 -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=FS8egJgIcKD7ZFlC1mE7peMrK/AdnuV2UVbW50iKNsA=; b=YIUZtncOWMAuQfCTK+iCR9CjpoD7C8Rvzoh5NCztPtEJ25S3kGfwbBD1iEZ+yiCeuB y6YMgzAG5Kgif0wU+M/6heADr/91oCgnjtMJ51Dei+cwq/xkom9SIzil2PZnLpbJWjYc 8TT4qpgnzPSczMvQzEEv6PrlAIlVG5nN3gmX15lRFhZh97F6cokH7TlSjhkHPldo9Qk9 RfmvGmlz4z/GoF05tYcmFZ0i665jCL7qd6O8GXDgZTSbxtwOJ1CLny2ATzNSnhvswDgR GtJpr0kA2Kyr+TcRTb1fRmQKZKlDhqry1v0yEhvusRoSmb9L6hQnfLU14YahY31QJj69 M9tA== MIME-Version: 1.0 Received: by 10.216.132.30 with SMTP id n30mr5999626wei.52.1331513121922; Sun, 11 Mar 2012 17:45:21 -0700 (PDT) Received: by 10.216.229.10 with HTTP; Sun, 11 Mar 2012 17:45:21 -0700 (PDT) In-Reply-To: References: Date: Mon, 12 Mar 2012 11:15:21 +1030 Message-ID: From: Matt Thyer To: =?ISO-8859-1?Q?Olivier_Cochard=2DLabb=E9?= Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-fs@freebsd.org, freebsd-current@freebsd.org Subject: Re: growfs remove ufs/label and can't reset it with tunefs X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Mar 2012 00:45:23 -0000 2012/3/9 Olivier Cochard-Labb=E9 > Hi all, > > once run growfs on a partition that had an UFS label, this label is > removed and it's no more possible to re-set it with tunefs. > Here is how to reproduce (tested on 8.3 and 9.0): > > mdconfig -a -t malloc -s 10MB > gpart create -s mbr /dev/md0 > gpart add -t freebsd -s 5MB /dev/md0 > newfs -L THELABEL /dev/md0s1 > glabel status | grep THELABEL > =3D> Label is present, now we resize the slice: > gpart resize -i 1 /dev/md0 > glabel status | grep THELABEL > =3D> Label is still present, now we growfs the slice: > growfs /dev/md0s1 > glabel status | grep THELABEL > =3D> UFS label disapear ! > Ok, I will try to re-set it: > tunefs -L THELABEL /dev/md0s1 > glabel status | grep THELABEL > =3D> Still no label !?! > > Should I create a PR about this problem ? > > Regards, > > Olivier > Yes, It is important to record this problem in the PR system. I suspect that the problem is with growfs as it needs to be taught to not overwrite the end of the volume where the label information is stored. (It will need to examine the volume to see if GEOM has information stored at the end of the volume such that the grow should not overwrite the GEOM metadata). Matthew