Changeset View
Changeset View
Standalone View
Standalone View
head/en_US.ISO8859-1/books/handbook/zfs/chapter.xml
Show First 20 Lines • Show All 1,875 Lines • ▼ Show 20 Lines | tank custom:costcenter 1234 local</screen> | ||||
are still recorded in the pool's history).</para> | are still recorded in the pool's history).</para> | ||||
<screen>&prompt.root; <userinput>zfs inherit -r <replaceable>custom</replaceable>:<replaceable>costcenter</replaceable> <replaceable>tank</replaceable></userinput> | <screen>&prompt.root; <userinput>zfs inherit -r <replaceable>custom</replaceable>:<replaceable>costcenter</replaceable> <replaceable>tank</replaceable></userinput> | ||||
&prompt.root; <userinput>zfs get <replaceable>custom</replaceable>:<replaceable>costcenter</replaceable> <replaceable>tank</replaceable></userinput> | &prompt.root; <userinput>zfs get <replaceable>custom</replaceable>:<replaceable>costcenter</replaceable> <replaceable>tank</replaceable></userinput> | ||||
NAME PROPERTY VALUE SOURCE | NAME PROPERTY VALUE SOURCE | ||||
tank custom:costcenter - - | tank custom:costcenter - - | ||||
&prompt.root; <userinput>zfs get all <replaceable>tank</replaceable> | grep <replaceable>custom</replaceable>:<replaceable>costcenter</replaceable></userinput> | &prompt.root; <userinput>zfs get all <replaceable>tank</replaceable> | grep <replaceable>custom</replaceable>:<replaceable>costcenter</replaceable></userinput> | ||||
&prompt.root;</screen> | &prompt.root;</screen> | ||||
<sect3 xml:id="zfs-zfs-set-share"> | |||||
<title>Getting and Setting Share Properties</title> | |||||
<para>Two commonly used and useful dataset properties are the | |||||
<acronym>NFS</acronym> and <acronym>SMB</acronym> share options. | |||||
Setting these define if and how <acronym>ZFS</acronym> datasets | |||||
may be shared on the network. At present, only setting sharing | |||||
via <acronym>NFS</acronym> is supported on &os;. To get the | |||||
current status of a share, enter:</para> | |||||
<screen>&prompt.root; <userinput>zfs get sharenfs <replaceable>mypool/usr/home</replaceable></userinput> | |||||
NAME PROPERTY VALUE SOURCE | |||||
mypool/usr/home sharenfs on local | |||||
&prompt.root; <userinput>zfs get sharesmb <replaceable>mypool/usr/home</replaceable></userinput> | |||||
NAME PROPERTY VALUE SOURCE | |||||
mypool/usr/home sharesmb off local</screen> | |||||
<para>To enable sharing of a dataset, enter:</para> | |||||
<screen>&prompt.root; <userinput> zfs set sharenfs=on <replaceable>mypool/usr/home</replaceable></userinput></screen> | |||||
<para>It is also possible to set additional options for sharing | |||||
datasets through <acronym>NFS</acronym>, such as | |||||
<option>-alldirs</option>, <option>-maproot</option> and | |||||
<option>-network</option>. To set additional options to a | |||||
dataset shared through NFS, enter:</para> | |||||
<screen>&prompt.root; <userinput> zfs set sharenfs="-alldirs,-maproot=<replaceable>root</replaceable>,-network=<replaceable>192.168.1.0/24</replaceable> <replaceable>mypool/usr/home</replaceable></userinput></screen> | |||||
</sect3> | |||||
</sect2> | </sect2> | ||||
<sect2 xml:id="zfs-zfs-snapshot"> | <sect2 xml:id="zfs-zfs-snapshot"> | ||||
<title>Managing Snapshots</title> | <title>Managing Snapshots</title> | ||||
<para><link linkend="zfs-term-snapshot">Snapshots</link> are one | <para><link linkend="zfs-term-snapshot">Snapshots</link> are one | ||||
of the most powerful features of <acronym>ZFS</acronym>. A | of the most powerful features of <acronym>ZFS</acronym>. A | ||||
snapshot provides a read-only, point-in-time copy of the | snapshot provides a read-only, point-in-time copy of the | ||||
▲ Show 20 Lines • Show All 2,427 Lines • Show Last 20 Lines |