Lines 1879-1886
Link Here
|
1879 |
&prompt.root; <userinput>zfs get <replaceable>custom</replaceable>:<replaceable>costcenter</replaceable> <replaceable>tank</replaceable></userinput> |
1879 |
&prompt.root; <userinput>zfs get <replaceable>custom</replaceable>:<replaceable>costcenter</replaceable> <replaceable>tank</replaceable></userinput> |
1880 |
NAME PROPERTY VALUE SOURCE |
1880 |
NAME PROPERTY VALUE SOURCE |
1881 |
tank custom:costcenter - - |
1881 |
tank custom:costcenter - - |
1882 |
&prompt.root; <userinput>zfs get all <replaceable>tank</replaceable> | grep <replaceable>custom</replaceable>:<replaceable>costcenter</replaceable></userinput> |
1882 |
&prompt.root; <userinput>zfs get all <replaceable>tank</replaceable> | grep <replaceable>custom</replaceable>:<replaceable>costcenter</replaceable></userinput></screen> |
1883 |
&prompt.root;</screen> |
1883 |
|
|
|
1884 |
<sect3 xml:id="zfs-zfs-set-share"> |
1885 |
<title>Getting and Setting Share Properties</title> |
1886 |
|
1887 |
<para>Two commonly used and useful dataset properties are the |
1888 |
<acronym>NFS</acronym> and <acronym>SMB</acronym> share |
1889 |
options. Setting these define if and how <acronym>ZFS |
1890 |
</acronym> datasets may be shared on the network. Getting the |
1891 |
current status of a share is easy, for example:</para> |
1892 |
|
1893 |
<screen>&prompt.root; <userinput>zfs get sharenfs <replaceable>mypool/usr/home</replaceable></userinput> |
1894 |
NAME PROPERTY VALUE SOURCE |
1895 |
mypool/usr/home sharenfs on local |
1896 |
|
1897 |
&prompt.root; <userinput>zfs get sharesmb$ <replaceable>mypool/usr/home</replaceable></userinput> |
1898 |
|
1899 |
NAME PROPERTY VALUE SOURCE |
1900 |
mypool/usr/home sharesmb off local</screen> |
1901 |
|
1902 |
<para>Enabling sharing on a dataset is equally simple:</para> |
1903 |
|
1904 |
<screen>&prompt.root; <userinput> zfs set sharenfs=on <replaceable>mypool/usr/home</replaceable></userinput></screen> |
1905 |
|
1906 |
<para>It is also possible to set additional options for sharing |
1907 |
datasets through <acronym>NFS</acronym>. These include |
1908 |
<option>-alldirs</option>, <option>-maproot</option> and |
1909 |
<option>-network</option>. These options are applied as per |
1910 |
the following example:</para> |
1911 |
|
1912 |
<screen>&prompt.root; <userinput> zfs set sharenfs="-alldirs |
1913 |
-maproot=<replaceable>root</replaceable> |
1914 |
-network=<replaceable>192.168.1.0/24</replaceable></userinput></screen> |
1915 |
</sect3> |
1884 |
</sect2> |
1916 |
</sect2> |
1885 |
|
1917 |
|
1886 |
<sect2 xml:id="zfs-zfs-snapshot"> |
1918 |
<sect2 xml:id="zfs-zfs-snapshot"> |