Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 20 Oct 2009 05:35:31 +0200
From:      Polytropon <freebsd@edvax.de>
To:        PJ <af.gourmet@videotron.ca>
Cc:        Adam Vande More <amvandemore@gmail.com>, Johan Hendriks <Johan@double-l.nl>, Polytropon <freebsd@edvax.de>, freebsd-questions@freebsd.org
Subject:   Re: glabel clarification
Message-ID:  <20091020053531.758c5a67.freebsd@edvax.de>
In-Reply-To: <4ADC9DE6.6020900@videotron.ca>
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>

next in thread | previous in thread | raw e-mail | index | archive | help
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?


-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...



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