From 60a66146dd984d7d3991d8305836fc262ce15f10 Mon Sep 17 00:00:00 2001 From: Tom Rhodes Date: Wed, 12 Jul 2006 02:17:07 +0000 Subject: [PATCH] MFp4: Fast document ggate. --- .../books/handbook/geom/chapter.sgml | 46 +++++++++++++++++++ 1 file changed, 46 insertions(+) diff --git a/en_US.ISO8859-1/books/handbook/geom/chapter.sgml b/en_US.ISO8859-1/books/handbook/geom/chapter.sgml index 24b325ced6..539c113eb7 100644 --- a/en_US.ISO8859-1/books/handbook/geom/chapter.sgml +++ b/en_US.ISO8859-1/books/handbook/geom/chapter.sgml @@ -406,6 +406,52 @@ OK? boot + + + GEOM Gate Network Devices + + GEOM supports the remote use of devices, such as disks, + CD-ROMs, files, etc. through the use of the gate utilities. + This is similar to NFS. + + To begin, an exports file must be created. This file + specifies who is permitted to access the exported resources and + what level of access they are offered. For example, to export + the forth slice on the first SCSI disk, the + following /etc/gg.exports is more than + adequate: + + 192.168.1.0/24 RW /dev/da0s4d + + It will allow all hosts inside the private network access + the file system on the da0s4d + partition. + + To export this device, ensure it is not currently mounted, + and start the &man.ggated.8; server daemon: + + &prompt.root; ggated + + Now to mount the device on the client + machine, issue the following commands: + + &prompt.root; ggatec create -o rw 192.168.1.1 /dev/da0s4d + ggate0 + &prompt.root; mount /dev/ggate0 /mnt + + From here on, the device may be accessed through the + /mnt mount point. + + + It should be pointed out that this will fail if the device + is currently mounted on either the server machine or any other + machine on the network. + + + When the device is no longer needed, it may be safely + unmounted with the &man.umount.8; command, similar to any other + disk device. +