Method to mirror a single partition across the net.

Steve Kargl sgk at
Wed Nov 5 13:36:11 PST 2008

On Wed, Nov 05, 2008 at 10:01:24PM +0100, Wojciech Puchar wrote:
> >following issue.
> >
> >I would like to mirror a single partition on system A to a
> >a partition on system B.  It would appear a combination of
> >gmirror and ggated would work, but I haven't found any
> >example on setting up two systems.
> you are right.
> just create device with ggatec and insert it to the mirror.

Thanks for the reply.  Perhaps, I'm missing an important detail,
but gmirror(8) seems to suggest that it operates on an entire
disk.  Note, in my original email I used the word partition
but showed a disk slice.  I really do mean a partition within
a slice.  Does the following work where I want to mirror only to


  # umount /dev/ad4s1e
  # echo " RW /dev/ad4s1e" > /etc/gg.exports
  # ggated


  # ggatec create -o rw /dev/ad4s1e
  # gmirror label  data /dev/ad4s1e
  # gmirror insert data /dev/ggate0

and /etc/fstab becomes

# Device                Mountpoint      FStype  Options         Dump    Pass#
/dev/ad4s1b             none            swap    sw              0       0
/dev/ad4s1a             /               ufs     rw              1       1
/dev/ad4s1d             /usr            ufs     rw              2       2
/dev/mirror/data        /data           ufs     rw              2       2


More information about the freebsd-questions mailing list