gmirror + ggate
Pawel Jakub Dawidek
pjd at FreeBSD.org
Wed Feb 1 18:29:17 PST 2006
On Wed, Feb 01, 2006 at 02:35:21PM -0800, Gustavo A. Baratto wrote:
+> Hey all...
+>
+> ggate doesnt seem to have a start script like other geom classes.
+>
+> What's the best way to mount a gmirrored ggated device at start up?
+>
+> Before gmirror was running in this server, I just created a simple script in /usr/local/etc/rc.d to mount the ggate devices:
+> ---------
+> #!/bin/sh
+>
+> /sbin/ggatec create -R 262144 -S 262144 -o rw 10.10.10.3 /dev/da0s1g
+> /sbin/ggatec create -R 262144 -S 262144 -o rw 10.10.10.4 /dev/da0s1g
+>
+> /sbin/mount /dev/ggate0 /mount_point_0
+> /sbin/mount /dev/ggate1 /mount_point_1
+> ---------
+>
+> Now... If at boot time I want to startup these two ggate devices gmirrored, what's the best approach?
+>
+> I was thinking I could add 'geom_mirror_load="YES"' in loader.conf, then then run 'gmirror configure -h gm0'
So just has to create ggate provider (with ggatec), gmirror(8) will
handle the rest automatically.
+> Is that the recommended approach? If yes, do I still need to run the script above to plumb the ggate devices, or -h does that for us?
You don't need -h and you don't need to use gmirror in your script at
all.
There is currently no rc.d/ scripts for ggate, but you can check out
freebsd-geom@ archives, I think someone post such scripts some time ago,
but I haven't had time to look into it yet.
--
Pawel Jakub Dawidek http://www.wheel.pl
pjd at FreeBSD.org http://www.FreeBSD.org
FreeBSD committer Am I Evil? Yes, I Am!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-geom/attachments/20060202/5d4affdf/attachment.bin
More information about the freebsd-geom
mailing list