From owner-freebsd-questions@FreeBSD.ORG Mon Oct 19 22:56:12 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 C644B106566B for ; Mon, 19 Oct 2009 22:56:12 +0000 (UTC) (envelope-from amvandemore@gmail.com) Received: from mail-yx0-f171.google.com (mail-yx0-f171.google.com [209.85.210.171]) by mx1.freebsd.org (Postfix) with ESMTP id 79D3D8FC13 for ; Mon, 19 Oct 2009 22:56:12 +0000 (UTC) Received: by yxe1 with SMTP id 1so4351018yxe.3 for ; Mon, 19 Oct 2009 15:56:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=Qy6nvIp61zpcPLt7yezfLVE53m4wHE+3GrJF48ObVyE=; b=c85JWdad57tVUCm5QRyFfkfFmo0UIapeyesA61As3LIHJcZn/FaxnEhonHgX9GnUy9 6AQDM1ILnf2cORhDIkDNyUTMNM2eju9Lyhr/AJDtp6AzDRc3+LGIH02Nq6hKQ7g8gpXC KmVVFgjlNrxbKvHcRFT/7rNB9kxH6hZQnis4o= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=FolG+PL4Z+yI/zOekjyb0GZwQSFnN3B8opX/bLwmd5eU5Kp1ddg7zJcW9xCQlFRvCj eQH6wqxPMuJ/ho0bYzMZ+eveb1EBuRhkxYiaXeXGGEIFkJKSk0pPeJsXgODjpNQKdM6B 1bhqjjQaAForhyLIwxnKXIPDLZOkXqfg2zhao= MIME-Version: 1.0 Received: by 10.150.251.27 with SMTP id y27mr9127055ybh.227.1255992971571; Mon, 19 Oct 2009 15:56:11 -0700 (PDT) In-Reply-To: <4ADCE105.7020604@videotron.ca> References: <4ADC6D89.10600@videotron.ca> <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> <6201873e0910191157pe43a335r25f17463863006d0@mail.gmail.com> <4ADCE105.7020604@videotron.ca> Date: Mon, 19 Oct 2009 17:56:11 -0500 Message-ID: <6201873e0910191556u2bc433b5y857ba8fda1e4b8c3@mail.gmail.com> From: Adam Vande More To: PJ Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: 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 List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Oct 2009 22:56:12 -0000 On Mon, Oct 19, 2009 at 4:58 PM, PJ wrote: > Adam Vande More wrote: > > On Mon, Oct 19, 2009 at 12:12 PM, PJ wrote: > > > > > >> # Device Mountpoint FStype Options Dump Pass# > >> /dev/label/swap none swap sw 0 0 > >> /dev/label/rootfs / ufs rw 1 1 > >> /dev/label/backups /backups ufs rw 2 2 > >> /dev/label/home /home ufs rw 2 2 > >> /dev/label/tmp /tmp ufs rw 2 2 > >> /dev/label/usr /usr ufs rw 2 2 > >> /dev/label/var /var ufs rw 2 2 > >> /dev/acd0 /cdrom cd9660 ro,noauto 0 0 > >> linproc /usr/compat/linux/proc linprocfs rw 0 0 > >> > >> 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 need to use gmirror. If you get it to clone a disk following these > > instructions > > > > http://www.freebsd.org/doc/en/books/handbook/geom-mirror.html > > > > the disk will boot up on the new machine no problem provided hardware > > compatibility. Get rid of any label/fstab work you've done so far and > > follow that page. > > > I am trying to digest the procedure. > Forgive me if I am a little slow, but I want to be sure to do it right. > 1. this procedure requres that both diisks be identical... ?? This is > not always possible... I'm not sure I have that possibility at the > moment and I don't want to empty other disks from other machines. > No if you have one smaller disk you should use that as the base mirror disk, then add the larger to the mirror. Of course there would be some unused space on the larger drive, but that usually not a problem. > 2. I am trying to under stand if the procedure is to be done from the > active disk, say ad4 and the idea is to copy ad4 to say ad6? Or should I > be running on a third disk, say ad12 and be copying ad4 to ad6? > >From your example assuming ad4 is the smallest of disk sizes you use. sysctl kern.geom.debugflags=17 gmirror label -vb round-robin gm0 /dev/ad4 echo 'geom_mirror_load="YES"' >> /boot/loader.conf Edit the /etc/fstab file shutdown -r now gmirror insert gm0 /dev/ad6 wait until drives are synced. verify by gmirror status. power down. pull ad6 and insert into new system. Power it on. you are done. repeat as necessary. -- Adam Vande More