tldr/pages/common/zfs.md

28 lines
544 B
Markdown
Raw Normal View History

# zfs
> Manage ZFS filesystems.
- List all available zfs filesystems:
`zfs list`
- Create a new ZFS filesystem:
`zfs create {{pool_name/filesystem_name}}`
- Delete a ZFS filesystem:
`zfs destroy {{pool_name/filesystem_name}}`
- Create a Snapshot of a ZFS filesystem:
`zfs snapshot {{pool_name/filesystem_name}}@{{snapshot_name}}`
- Enable compression on a filesystem:
`zfs set compression=on {{pool_name/filesystem_name}}`
2017-07-20 21:53:15 +03:00
- Change mountpoint for a filesystem:
`zfs set mountpoint={{/my/mount/path}} {{pool_name/filesystem_name}}`