On Mon, 19 Oct 2009 13:12:06 -0400, PJ <af.gour...@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, ...
_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"

Reply via email to