mirroring two data disks (no system files on them)

Christian Caron christian.caron at videotron.ca
Sun Apr 3 19:18:36 PDT 2005


Hi,

my setup is:

- one disk ad0 (15GB) with FreeBSD 5.3 installed
- two identical disks ad2 and ad3 (15GB) with no data on it

I just want to have a mirrored data disk (consisting of two identical 
disks).

I found http://people.freebsd.org/~rse/mirror/, but it applies for 
mirroring a system disk.

I went through:

gmirror label -v -n -b round-robin gm0s1 /dev/ad3s1
gmirror load
gmirror configure -a gm0s1
gmirror insert gm0s1 /dev/ad2s1
add 'geom_mirror_load="YES"' in /boot/loader.conf

It loads ok and if I type:

"gmirror list"

I get the "Providers" and "Consumers" list which all looks ok.

But how do I access the mirror? Where can I put my data?

I tried adding /dev/mirror/gm0s1 to /etc/fstab, but it dies when loading...

Any hints?

Christian


More information about the freebsd-geom mailing list