bin/165962: growfs remove ufs label and it's no more possible to reset it with tunefs

Olivier Cochard-Labbe olivier at cochard.me
Mon Mar 12 06:30:11 UTC 2012


>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 at 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:


More information about the freebsd-bugs mailing list