4 Storage pool type: `lvm`
6 LVM is a thin software layer on top of hard disks and partitions. It
7 can be used to split available disk space into smaller logical
8 volumes. LVM is widely used on Linux and makes managing hard drives
11 Another use case is to put LVM on top of a big iSCSI LUN. That way you
12 can easily manage space on that iSCSI LUN, which would not be possible
13 otherwise, because the iSCSI specification does not define a
14 management interface for space allocation.
19 The LVM backend supports the common storage properties `content`, `nodes`,
20 `disable`, and the following LVM specific properties:
24 LVM volume group name. This must point to an existing volume group.
28 Base volume. This volume is automatically activated before accessing
29 the storage. This is mostly useful when the LVM volume group resides
30 on a remote iSCSI server.
34 Zero-out data when removing LVs. When removing a volume, this makes
35 sure that all data gets erased.
37 `saferemove_throughput`::
39 Wipe throughput ('cstream -t' parameter value).
41 .Configuration Example ('/etc/pve/storage.cfg')
45 content rootdir,images
48 File naming conventions
49 ~~~~~~~~~~~~~~~~~~~~~~~
51 The backend use basically the same naming conventions as the ZFS pool
54 vm-<VMID>-<NAME> // normal VM images
59 LVM is a typical block storage, but this backend does not support
60 snapshot and clones. Unfortunately, normal LVM snapshots are quite
61 inefficient, because they interfere all writes on the whole volume
62 group during snapshot time.
64 One big advantage is that you can use it on top of a shared storage,
65 for example an iSCSI LUN. The backend itself implement proper cluster
68 TIP: The newer LVM-thin backend allows snapshot and clones, but does
69 not support shared storage.
72 .Storage features for backend `lvm`
73 [width="100%",cols="m,m,3*d",options="header"]
74 |==============================================================================
75 |Content types |Image formats |Shared |Snapshots |Clones
76 |images rootdir |raw |possible |no |no
77 |==============================================================================
82 List available volume groups: