ZFS file system and pool creation example

If you want to use the Mount resource to monitor the ZFS file system, perform the following steps.

Create the tank storage pool and file system on the disk device c1t0d0 for example.

# zpool create tank c1t0d0

Create the home file system in tank.

# zfs create tank/home

Set the value of the MountPoint attribute to legacy.

# zfs set mountpoint=legacy tank/home

Set the Mount agent's attributes. The following is an example of this configuration's main.cf file.

Mount m1 (
    MountPoint = "/mp1"
    BlockDevice = "tank/home"
    FSType = zfs
    MountOpt = rw
    FsckOpt = "-n"
)