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