Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 12 Mar 2012 11:15:21 +1030
From:      Matt Thyer <matt.thyer@gmail.com>
To:        =?ISO-8859-1?Q?Olivier_Cochard=2DLabb=E9?= <olivier@cochard.me>
Cc:        freebsd-fs@freebsd.org, freebsd-current@freebsd.org
Subject:   Re: growfs remove ufs/label and can't reset it with tunefs
Message-ID:  <CACM2%2B-5J5JQWRQSbcvUCpozToJtgfALi8hUtCBEViv-yX3PyBA@mail.gmail.com>
In-Reply-To: <CA%2Bq%2BTcoCOTL8SyX9jGPVav8p5aV3pBYqb=%2Bfb%2BVAusRVyEMM1A@mail.gmail.com>
References:  <CA%2Bq%2BTcoCOTL8SyX9jGPVav8p5aV3pBYqb=%2Bfb%2BVAusRVyEMM1A@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
2012/3/9 Olivier Cochard-Labb=E9 <olivier@cochard.me>

> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CACM2%2B-5J5JQWRQSbcvUCpozToJtgfALi8hUtCBEViv-yX3PyBA>