Nethence Newdoc Olddoc Lab Your IP BBDock  

Warning: those guides are mostly obsolete, please have a look at the new documentation.


FreeBSD GEOM mirror configuration
Initiate the mirror (start with one disk),
sysctl kern.geom.debugflags=17
gmirror label -vb round-robin gm0 /dev/ad4
gmirror load
Note. change 'ad4' accordingly
Eventually enable the mirror at boot,
echo 'geom_mirror_load="YES"' >> /boot/loader.conf
Fix the mount points,
vi /etc/fstab
Reboot on gm0s1a,
shutdown -r now
Check everything's fine,
cat /etc/fstab
Insert the second disk to make the mirror,
gmirror insert gm0 /dev/ad6
and check how it is going regulary,
gmirror status
That's all. If a disk fails some day, unconfigure it,
gmirror forget ad6
and put a new one,
gmirror insert gm0 /dev/ad7

(obsolete, see the new doc)