ZFS: Difference between revisions

imported>2r
OpenZFS documentation for Root on ZFS is now available
imported>2r
Mount datasets without legacy mountpoint
Line 576: Line 576:
<pre>
<pre>
zpool scrub $pool
zpool scrub $pool
</pre>
==Mount datasets without legacy mountpoint==
Contrary to public knowledge, <code>mountpoint=legacy</code> is not required for mounting datasets. The trick is to use <code>mount -t zfs -o zfsutil path/to/dataset</code>.
Also, legacy mountpoints are also inconvienent in that the mounts can not be natively handled by <code>zfs mount</code> command, hence <code>legacy</code> in the name.
An example configuration of mounting non-legacy dataset is the following:
<pre>
{
  fileSystems."/tank" =
    { device = "tank_pool/data";
      fsType = "zfs"; options = [ "zfsutil" ];
    };
}
</pre>
</pre>