9 Storage pool type: `zfspool`
11 This backend allows you to access local ZFS pools (or ZFS file systems
18 The backend supports the common storage properties `content`, `nodes`,
19 `disable`, and the following ZFS specific properties:
23 Select the ZFS pool/filesystem. All allocations are done within that
28 Set ZFS blocksize parameter.
32 Use ZFS thin-provisioning. A sparse volume is a volume whose
33 reservation is not equal to the volume size.
37 The mount point of the ZFS pool/filesystem. Changing this does not
38 affect the `mountpoint` property of the dataset seen by `zfs`.
39 Defaults to `/<pool>`.
41 .Configuration Example (`/etc/pve/storage.cfg`)
45 content rootdir,images
50 File naming conventions
51 ~~~~~~~~~~~~~~~~~~~~~~~
53 The backend uses the following naming scheme for VM images:
55 vm-<VMID>-<NAME> // normal VM images
56 base-<VMID>-<NAME> // template VM image (read-only)
57 subvol-<VMID>-<NAME> // subvolumes (ZFS filesystem for containers)
61 This specifies the owner VM.
65 This can be an arbitrary name (`ascii`) without white space. The
66 backend uses `disk[N]` as default, where `[N]` is replaced by an
67 integer to make the name unique.
73 ZFS is probably the most advanced storage type regarding snapshot and
74 cloning. The backend uses ZFS datasets for both VM images (format
75 `raw`) and container data (format `subvol`). ZFS properties are
76 inherited from the parent dataset, so you can simply set defaults
77 on the parent dataset.
79 .Storage features for backend `zfs`
80 [width="100%",cols="m,m,3*d",options="header"]
81 |==============================================================================
82 |Content types |Image formats |Shared |Snapshots |Clones
83 |images rootdir |raw subvol |no |yes |yes
84 |==============================================================================
90 It is recommended to create an extra ZFS file system to store your VM images:
92 # zfs create tank/vmdata
94 To enable compression on that newly allocated file system:
96 # zfs set compression=on tank/vmdata
98 You can get a list of available ZFS filesystems with:
107 * link:/wiki/Storage[Storage]
109 * link:/wiki/ZFS_on_Linux[ZFS on Linux]