Changeset View
Changeset View
Standalone View
Standalone View
head/en_US.ISO8859-1/books/handbook/zfs/chapter.xml
Show First 20 Lines • Show All 2,710 Lines • ▼ Show 20 Lines | &prompt.user; <userinput>zfs send -R <replaceable>mypool/home</replaceable>@<replaceable>monday</replaceable> | ssh <replaceable>someuser@backuphost</replaceable> zfs recv -dvu <replaceable>recvpool/backup</replaceable></userinput></screen> | ||||
in very much the same way, but only count the space | in very much the same way, but only count the space | ||||
used by the dataset itself, excluding snapshots and child | used by the dataset itself, excluding snapshots and child | ||||
datasets. Similarly, | datasets. Similarly, | ||||
<link linkend="zfs-term-userquota">user</link> and | <link linkend="zfs-term-userquota">user</link> and | ||||
<link linkend="zfs-term-groupquota">group</link> quotas can be | <link linkend="zfs-term-groupquota">group</link> quotas can be | ||||
used to prevent users or groups from using all of the | used to prevent users or groups from using all of the | ||||
space in the pool or dataset.</para> | space in the pool or dataset.</para> | ||||
<para>The following examples assume that the users already | |||||
exist in the system. Before adding a user to the system, | |||||
make sure to create their home dataset first and set the | |||||
<option>mountpoint</option> to | |||||
<literal>/home/<replaceable>bob</replaceable></literal>. | |||||
Then, create the user and make the home directory point to | |||||
the dataset's <option>mountpoint</option> location. This will | |||||
properly set owner and group permissions without shadowing any | |||||
pre-existing home directory paths that might exist.</para> | |||||
<para>To enforce a dataset quota of 10 GB for | <para>To enforce a dataset quota of 10 GB for | ||||
<filename>storage/home/bob</filename>:</para> | <filename>storage/home/bob</filename>:</para> | ||||
<screen>&prompt.root; <userinput>zfs set quota=10G storage/home/bob</userinput></screen> | <screen>&prompt.root; <userinput>zfs set quota=10G storage/home/bob</userinput></screen> | ||||
<para>To enforce a reference quota of 10 GB for | <para>To enforce a reference quota of 10 GB for | ||||
<filename>storage/home/bob</filename>:</para> | <filename>storage/home/bob</filename>:</para> | ||||
▲ Show 20 Lines • Show All 1,621 Lines • Show Last 20 Lines |