MFen 1.22 -> 1.24
Submitted by: delphij Obtained from: The FreeBSD Simplified Chinese Project
This commit is contained in:
parent
90f6e69720
commit
e4f481a5af
Notes:
svn2git
2020-12-08 03:00:23 +00:00
svn path=/head/; revision=28345
1 changed files with 43 additions and 1 deletions
|
@ -2,7 +2,7 @@
|
|||
The FreeBSD Documentation Project
|
||||
The FreeBSD Simplified Chinese Project
|
||||
|
||||
Original Revision: 1.22
|
||||
Original Revision: 1.24
|
||||
$FreeBSD$
|
||||
-->
|
||||
|
||||
|
@ -380,6 +380,48 @@ OK? <userinput>boot</userinput></screen>
|
|||
</sect3>
|
||||
</sect2>
|
||||
</sect1>
|
||||
|
||||
<sect1 id="geom-ggate">
|
||||
<title>GEOM Gate 网络设备</title>
|
||||
|
||||
<para>通过 gate 工具, GEOM 支持以远程方式使用设备, 例如磁盘、
|
||||
CD-ROM、 文件等等。 这和 <acronym>NFS</acronym> 类似。</para>
|
||||
|
||||
<para>在开始工作之前, 首先要创建一个导出文件。
|
||||
这个文件的作用是指定谁可以访问导出的资源,
|
||||
以及提供何种级别的访问授权。 例如,
|
||||
要把第一块 <acronym>SCSI</acronym> 盘的第四个 slice 导出,
|
||||
对应的 <filename>/etc/gg.exports</filename> 会是类似下面的样子:</para>
|
||||
|
||||
<programlisting>192.168.1.0/24 RW /dev/da0s4d</programlisting>
|
||||
|
||||
<para>这表示允许同属私有子网的所有机器访问
|
||||
<devicename>da0s4d</devicename> 分区上的文件系统。</para>
|
||||
|
||||
<para>要导出这个设备, 首先请确认它没有被挂接,
|
||||
然后是启动 &man.ggated.8; 服务:</para>
|
||||
|
||||
<screen>&prompt.root; <userinput>ggated</userinput></screen>
|
||||
|
||||
<para>现在我们将在客户机上 <command>mount</command> 该设备,
|
||||
使用下面的命令:</para>
|
||||
|
||||
<screen>&prompt.root; <userinput>ggatec create -o rw 192.168.1.1 /dev/da0s4d</userinput></screen>
|
||||
<screen>ggate0</screen>
|
||||
<screen>&prompt.root; <userinput>mount /dev/ggate0 /mnt</userinput></screen>
|
||||
|
||||
<para>到此为止, 设备应该已经可以通过挂接点
|
||||
<filename role="directory">/mnt</filename> 访问了。</para>
|
||||
|
||||
<note>
|
||||
<para>请注意, 如果设备已经被服务器或网络上的任何其他机器挂接,
|
||||
则前述操作将会失败。</para>
|
||||
</note>
|
||||
|
||||
<para>如果不再需要使用这个设备,
|
||||
就可以使用 &man.umount.8; 命令来安全地将其卸下了,
|
||||
这一点和其他磁盘设备类似。</para>
|
||||
</sect1>
|
||||
</chapter>
|
||||
|
||||
<!--
|
||||
|
|
Loading…
Reference in a new issue