Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 20 Oct 2009 05:57:53 -0400
From:      PJ <af.gourmet@videotron.ca>
To:        Polytropon <freebsd@edvax.de>
Cc:        Adam Vande More <amvandemore@gmail.com>, Johan Hendriks <Johan@double-l.nl>, freebsd-questions@freebsd.org
Subject:   Re: glabel clarification
Message-ID:  <4ADD89A1.9060204@videotron.ca>
In-Reply-To: <20091020053531.758c5a67.freebsd@edvax.de>
References:  <4ADC6D89.10600@videotron.ca> <57200BF94E69E54880C9BB1AF714BBCBA57086@w2003s01.double-l.local> <4ADC772F.3060303@videotron.ca> <6201873e0910190729v12f66335xe93d0c83a0ee7aee@mail.gmail.com> <4ADC794F.3050505@videotron.ca> <6201873e0910190737o1d849953h6761085ba532f8f6@mail.gmail.com> <4ADC7BD3.30301@videotron.ca> <6201873e0910190809h3cd4416bxaaf526008110447a@mail.gmail.com> <4ADC8C9A.4030903@videotron.ca> <6201873e0910190912w42325e0q541d46bc2a2972fb@mail.gmail.com> <4ADC9DE6.6020900@videotron.ca> <20091020053531.758c5a67.freebsd@edvax.de>

next in thread | previous in thread | raw e-mail | index | archive | help
Polytropon wrote:
> On Mon, 19 Oct 2009 13:12:06 -0400, PJ <af.gourmet@videotron.ca> wrote:
>   
>> this is ad12; ad6 is the same - I guess I hae to get rid of those labels
>> in ad6 but am not sure if I need to use glabel to remove them or if just
>> editing fstab will do it?
>>     
>
> You could indicate if a given disk is your working disk (w)
> or your backup disk (b). A possible fstab would look like
> this:
>
> The working disk:
> 	/dev/label/w-swap     none      swap  sw  0  0
> 	/dev/label/w-rootfs   /         ufs   rw  1  1
> 	/dev/label/w-tmp      /tmp      ufs   rw  2  2
> 	/dev/label/w-var      /var      ufs   rw  2  2
> 	/dev/label/w-usr      /usr      ufs   rw  2  2
> 	/dev/label/w-home     /home     ufs   rw  2  2
> 	/dev/label/w-backups  /backups  ufs   rw  2  2
>
> The backup disk:
> 	/dev/label/b-swap     none      swap  sw  0  0
> 	/dev/label/b-rootfs   /         ufs   rw  1  1
> 	/dev/label/b-tmp      /tmp      ufs   rw  2  2
> 	/dev/label/b-var      /var      ufs   rw  2  2
> 	/dev/label/b-usr      /usr      ufs   rw  2  2
> 	/dev/label/b-home     /home     ufs   rw  2  2
> 	/dev/label/b-backups  /backups  ufs   rw  2  2
>
> (Note that I sorted the partitions by "usage priority".)
>
> The downside is that you would have to keep a difference
> between /etc/fstab(w) and /etc/fstab(b). On its own, each
> disk will work on any controller (because of proper labels).
>
> Funny question: What happens if a system has access to
> two disks with labelled partitions where the labels are
> identical?
>   
Exactly what is happening on my system. That's basically what has been
troubling me. I cloned ad12 to ad6 and then wanted to boot from ad6...
well, everytime I boot from ad6 the boot is from ad12 because both have
identical labels. The only way out is to change the labels on ad6 to
point to ad6 partitions and not to /dev/label/name.
So the only reason to use glabel, in my case, is to boot from the clone
on another system without worrying about the actual disk label. Once
it's booted, the label can be changed to conform to the label on the new
system.



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