From owner-freebsd-questions@FreeBSD.ORG Tue Oct 20 03:35:33 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BFC78106566C for ; Tue, 20 Oct 2009 03:35:33 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx01.qsc.de (mx01.qsc.de [213.148.129.14]) by mx1.freebsd.org (Postfix) with ESMTP id 786558FC15 for ; Tue, 20 Oct 2009 03:35:33 +0000 (UTC) Received: from r55.edvax.de (port-92-195-71-245.dynamic.qsc.de [92.195.71.245]) by mx01.qsc.de (Postfix) with ESMTP id D31D93C9FA; Tue, 20 Oct 2009 05:35:32 +0200 (CEST) Received: from r55.edvax.de (localhost [127.0.0.1]) by r55.edvax.de (8.14.2/8.14.2) with SMTP id n9K3ZVS0001601; Tue, 20 Oct 2009 05:35:32 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Tue, 20 Oct 2009 05:35:31 +0200 From: Polytropon To: PJ 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> Organization: EDVAX X-Mailer: Sylpheed 2.4.7 (GTK+ 2.12.1; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: Adam Vande More , Johan Hendriks , Polytropon , freebsd-questions@freebsd.org Subject: Re: glabel clarification X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Oct 2009 03:35:33 -0000 On Mon, 19 Oct 2009 13:12:06 -0400, PJ 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, ...