Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 19 Oct 2009 17:56:11 -0500
From:      Adam Vande More <amvandemore@gmail.com>
To:        PJ <af.gourmet@videotron.ca>
Cc:        Johan Hendriks <Johan@double-l.nl>, Polytropon <freebsd@edvax.de>, freebsd-questions@freebsd.org
Subject:   Re: glabel clarification
Message-ID:  <6201873e0910191556u2bc433b5y857ba8fda1e4b8c3@mail.gmail.com>
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>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Oct 19, 2009 at 4:58 PM, PJ <af.gourmet@videotron.ca> wrote:

> Adam Vande More wrote:
> > On Mon, Oct 19, 2009 at 12:12 PM, PJ <af.gourmet@videotron.ca> 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



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