User Tools

Site Tools


Action unknown: copypageplugin__copy
public:fbsd_gmirror_gstripe

FreeBSD: gmirror & gstripe


gmirror

add this line to /boot/loader.conf

/boot/loader.conf
geom_mirror_load="YES"

modify kern.geom.debugflags sysctl variable

sysctl kern.geom.debugflags=16

create the mirror with the first drive ad6

kldload geom_mirror
gmirror label -v -b round-robin gm0 /dev/ad6

edit /etc/fstab

# Device                Mountpoint      FStype  Options         Dump    Pass#
# /dev/ad6s1b   none            swap    sw              0       0
# /dev/ad6s1a   /               ufs     rw,noatime      1       1
/dev/mirror/gm0s1b      none            swap    sw              0       0
/dev/mirror/gm0s1a      /               ufs     rw,noatime      1       1

reboot, then add a second drive ad4

gmirror insert gm0 /dev/ad4
 
gmirror status
      Name    Status  Components
mirror/gm0  DEGRADED  ad6 (ACTIVE)
                      ad4 (SYNCHRONIZING, 17%)



gstripe

add this line to /boot/loader.conf

/boot/loader.conf
geom_stripe_load="YES"

make the stripe array

gstripe label -v st0 /dev/ad2 /dev/ad3

IF this is a boot volume add

fdisk -vBI /dev/stripe/st0

make a partition table

bsdlabel -wB /dev/stripe/st0
newfs -U /dev/stripe/st0a

edit fstab adding a line like this

/etc/fstab
/dev/stripe/st0a /mnt ufs rw 2 2


return to gimbo wiki home page

public/fbsd_gmirror_gstripe.txt · Last modified: by 127.0.0.1