Creating a GEOM Mirror
Just after the install is done, but before you exit the installer, run these steps:
Switch to the Rescue TTY via Alt+F4.
Run
csh
to get a shell with command history.
Run
sysctl kern.geom.debugflags=16
.
Run:
gmirror label -v -b round-robin gm0 /dev/ad2
.
Add
geom_mirror_load="YES"
to /boot/loader.conf.
Open /etc/fstab in vi and run
:%s#ad2#mirror/gm0#
Switch back to the installer with Alt+F1.
Exit the installer and reboot, removing the CD you installed off of.
Login as root and sync the disks with:
gmirror insert gm0 /dev/ad3
Watch the build with
gmirror status
, it will look something like this:
Name Status Components mirror/gm0 DEGRADED ad2 ad3 (4%)