Adam Vande More
amvandemore at gmail.com
Mon Oct 19 22:56:12 UTC 2009
On Mon, Oct 19, 2009 at 4:58 PM, PJ <af.gourmet at videotron.ca> wrote:
> Adam Vande More wrote:
> > On Mon, Oct 19, 2009 at 12:12 PM, PJ <af.gourmet at 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.
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
Adam Vande More
More information about the freebsd-questions