| Author: | Johan Wiren |
|---|
New in version 1.1.
Manages ZFS file systems on Solaris and FreeBSD. Can manage file systems, volumes and snapshots. See zfs(1M) for more information about the properties.
| parameter | required | default | choices | comments |
|---|---|---|---|---|
| aclinherit | no |
|
The aclinherit property. | |
| aclmode | no |
|
The aclmode property. | |
| atime | no |
|
The atime property. | |
| canmount | no |
|
The canmount property. | |
| casesensitivity | no |
|
The casesensitivity property. | |
| checksum | no |
|
The checksum property. | |
| compression | no |
|
The compression property. | |
| copies | no |
|
The copies property. | |
| dedup | no |
|
The dedup property. | |
| devices | no |
|
The devices property. | |
| exec | no |
|
The exec property. | |
| jailed | no |
|
The jailed property. | |
| logbias | no |
|
The logbias property. | |
| mountpoint | no | The mountpoint property. | ||
| name | yes | File system, snapshot or volume name e.g. rpool/myfs |
||
| nbmand | no |
|
The nbmand property. | |
| normalization | no |
|
The normalization property. | |
| primarycache | no |
|
The primarycache property. | |
| quota | no | The quota property. | ||
| readonly | no |
|
The readonly property. | |
| recordsize | no | The recordsize property. | ||
| refquota | no | The refquota property. | ||
| refreservation | no | The refreservation property. | ||
| reservation | no | The reservation property. | ||
| secondarycache | no |
|
The secondarycache property. | |
| setuid | no |
|
The setuid property. | |
| shareiscsi | no |
|
The shareiscsi property. | |
| sharenfs | no | The sharenfs property. | ||
| sharesmb | no | The sharesmb property. | ||
| snapdir | no |
|
The snapdir property. | |
| state | yes |
|
Whether to create (present), or remove (absent) a file system, snapshot or volume. |
|
| sync | no |
|
The sync property. | |
| utf8only | no |
|
The utf8only property. | |
| volblocksize | no | The volblocksize property. | ||
| volsize | no | The volsize property. | ||
| vscan | no |
|
The vscan property. | |
| xattr | no |
|
The xattr property. | |
| zoned | no |
|
The zoned property. |
# Create a new file system called myfs in pool rpool
- zfs: name=rpool/myfs state=present
# Create a new volume called myvol in pool rpool.
- zfs: name=rpool/myvol state=present volsize=10M
# Create a snapshot of rpool/myfs file system.
- zfs: name=rpool/myfs@mysnapshot state=present
# Create a new file system called myfs2 with snapdir enabled
- zfs: name=rpool/myfs2 state=present snapdir=enabled