Date: Mon, 12 Mar 2012 06:21:02 GMT From: Olivier Cochard-Labbe <olivier@cochard.me> To: freebsd-gnats-submit@FreeBSD.org Subject: bin/165962: growfs remove ufs label and it's no more possible to reset it with tunefs Message-ID: <201203120621.q2C6L2IY078875@red.freebsd.org> Resent-Message-ID: <201203120630.q2C6UA9I078938@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 165962 >Category: bin >Synopsis: growfs remove ufs label and it's no more possible to reset it with tunefs >Confidential: no >Severity: serious >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Mar 12 06:30:10 UTC 2012 >Closed-Date: >Last-Modified: >Originator: Olivier Cochard-Labbe >Release: 9.0-RELEASE >Organization: BSD Router Project >Environment: FreeBSD laptop.bsdrp.net 9.0-RELEASE FreeBSD 9.0-RELEASE #2: Sat Jan 7 19:01:08 CET 2012 root@laptop.bsdrp.net:/usr/obj/usr/src/sys/GENERIC amd64 >Description: 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: tunefs -p display the label, but glabel didn't and the UFS name is not visible in /dev/ufs/. >How-To-Repeat: Here is how to reproduce this problem easly (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 => Label is present, now we resize the slice: gpart resize -i 1 /dev/md0 glabel status | grep THELABEL => Label is still present, now we growfs the slice: growfs /dev/md0s1 tunefs -p /dev/md0s1 | grep label tunefs: volume label: (-L) THELABEL => tunefs still see the volume label glabel status | grep THELABEL => glabel didn't see the UFS label ! Ok, I will try to re-set it: tunefs -L THELABEL /dev/md0s1 glabel status | grep THELABEL => Still no label >Fix: >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201203120621.q2C6L2IY078875>