thx http://onlamp.com/lpt/a/6309

# sync ;sync ;sync ;sync ;
# gmirror label -v -b round-robin gm0 /dev/ad0
gmirror: Can't store metadata on /dev/ad8: Operation not permitted.
# sysctl kern.geom.debugflags=16
kern.geom.debugflags: 0 -> 16
# gmirror label -v -b round-robin gm0 /dev/ad0
Metadata value stored on /dev/ad8.
Done.
# echo geom_mirror_load="YES" > /boot/loader.conf

# cp /etc/fstab /etc/fstab.orig
# vim /etc/fstab

-> all /dev/ad0s1a to becomes /dev/mirror/gm0s1a.

# gmirror insert gm0 /dev/ad1
GEOM_MIRROR: Device gm0: provider ad2 detected.
GEOM_MIRROR: Device gm0: rebuilding provider ad2.

# gmirror status
Name    Status    Components
mirror/gm0    DEGRADED    ad0
            ad2 (2%)

------------END
GEOM_MIRROR: Device gm0: rebuilding provider ad1.
GEOM_MIRROR: Device gm0: rebuilding provider ad1 finished.

# shutdown -r now

    全站熱搜

    zgod 發表在 痞客邦 留言(0) 人氣()