FreeBSD gmirror raid 1 setup

FreeBSD gmirror raid 1 setup:

After installing the system on disk ad0, and wanting it to be mirrored at disk ad1.

Eventually see:

http://www.freebsd.org/doc/en/books/handbook/geom-mirror.html

sysctl kern.geom.debugflags=17
gmirror label -vb round-robin gm0 /dev/ad0
gmirror load
echo ‘geom_mirror_load=”YES”‘ >> /boot/loader.conf
cp /etc/fstab /etc/fstab.old

# vi /etc/fstab
Replace all old ad0 references with mirror/gm0 by typing :%s/ad/mirror\/gm/g.

reboot

gmirror insert gm0 /dev/ad1
gmirror status

The mirror is being build, which takes a while. Check with gmirror status..

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>