Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 31 Dec 2009 15:02:16 -0800
From:      George Hartzell <hartzell@alerce.com>
To:        Roland Smith <rsmith@xs4all.nl>
Cc:        freebsd-stable@freebsd.org, George Hartzell <hartzell@alerce.com>
Subject:   Re: ZFS and disappearing glabels
Message-ID:  <19261.11640.915032.590295@gargle.gargle.HOWL>
In-Reply-To: <20091231215739.GA49850@slackbox.xs4all.nl>
References:  <19261.3612.150477.365986@gargle.gargle.HOWL> <20091231215739.GA49850@slackbox.xs4all.nl>

next in thread | previous in thread | raw e-mail | index | archive | help
Roland Smith writes:
 > On Thu, Dec 31, 2009 at 12:48:28PM -0800, George Hartzell wrote:
 > > 
 > > I've set up a system as described here.
 > > 
 > >   http://wiki.freebsd.org/RootOnZFS/ZFSBootPartition
 > > 
 > > Using the 8.0 Release DVD and then csup'ing to RELENG_8 and
 > > rebuilding.
 > > 
 > > I set it up with a single drive, the only change that I made was that
 > > after creating ad10s1a I glabeled it as disk0, then added
 > > /dev/label/disk0 to the pool.
 > > 
 > > That worked great.
 > > 
 > > Then I added a second larger drive, giving it an MBR, a bsd label, and
 > > an s1a partition that I glabeled as disk1.  I attached that to the
 > > pool and it resilvered happily.
 > > 
 > > However, when I rebooted I found that the pool now consists of
 > > label/disk0 and ad12s1a.  I detached ad12s1a, relabeled it as disk1,
 > > and attached disk1 to the pool again.  It resilvered fine.  Running
 > > strings on /boot/zfs/zpool.cache shows /dev/label/disk0 and
 > > /dev/label/disk1.
 >  
 > How did you create the labels? See glabel(8) about the difference between the
 > "manual" and "automatic" method. Maybe you accidentally used the manual method
 > on the second disk?
 > [...]

+1 bonus point to Roland, just in time under the New Years wire.

I created the first label with 'glabel label', which creates an
automatic label, but created the second with 'glabel create' (assuming
it was a synonym), which creates a manual label.

I did a detach, relabeled, reattached, and away I go.

Thanks,!

g.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19261.11640.915032.590295>