howto software raid under FreeBSD?

Matthias F. Brandstetter haimat at lame.at
Wed Nov 3 09:57:23 PST 2004


---------- quoting Christian Hiris ----------
> If you use the whole disk as provider and your disk has left free 512
> bytes after the end of the last slice, gmirror setup works very easy and
> fast (no need to use dump/restore or dd):
>
> - Boot into the live-filesystem.
> - Do a 'gmirror load' and label your "old" disk with 'gmirror label -v
> ...'. - Mount the (now mirrored) / partition on /mnt.
> - echo 'geom_mirror_load="YES"' >> /mnt/boot/loader.conf
> - echo 'swapoff="YES"' >> /mnt/etc/rc.conf
> - Edit /mnt/etc/fstab to reflect the newly created mirror devices.
> - Reboot.
> - Add a second disk to the mirror: 'gmirror insert -v ...'.
> - If you use gdm replace 'reboot' by 'shutdown -r now'.

thanks for this, it worked liked a charm!
greets, Matthias

-- 
I don't want to look like a weirdo.  I'll just go with a muumuu.

  -- Homer Simpson
     King-Size Homer


More information about the freebsd-questions mailing list