LVM class for performing LVM operations.
Bases: os_brick.executor.Executor
LVM object to enable various LVM related operations.
Ensure that logical volume/snapshot logical volume is activated.
| Parameters: | 
  | 
|---|---|
| Raises: | putils.ProcessExecutionError  | 
Creates a snapshot of a logical volume.
| Parameters: | 
  | 
|---|
Creates a thin provisioning pool for this VG.
The syntax here is slightly different than the default lvcreate -T, so we’ll just write a custom cmd here and do it.
| Parameters: | 
  | 
|---|---|
| Returns: | The size string passed to the lvcreate command  | 
Creates a logical volume on the object’s VG.
| Parameters: | 
  | 
|---|
Delete logical volume or snapshot.
| Parameters: | name – Name of LV to delete | 
|---|
Extend the size of an existing volume.
Static method to get all PVs on a system.
| Parameters: | 
  | 
|---|---|
| Returns: | List of Dictionaries with PV info  | 
Static method to get all VGs on a system.
| Parameters: | 
  | 
|---|---|
| Returns: | List of Dictionaries with VG info  | 
Retrieve info about LVs (all, in a VG, or a single LV).
| Parameters: | 
  | 
|---|---|
| Returns: | List of Dictionaries with LV info  | 
Static method to get LVM version from system.
| Parameters: | root_helper – root_helper to use for execute | 
|---|---|
| Returns: | version 3-tuple | 
Get all PVs associated with this instantiation (VG).
| Returns: | List of Dictionaries with PV info | 
|---|
Get reference object of volume specified by name.
| Returns: | dict representation of Logical Volume if exists | 
|---|
Get all LV’s associated with this instantiation (VG).
| Returns: | List of Dictionaries with LV info | 
|---|
Change the name of an existing volume.
Revert an LV from snapshot.
| Parameters: | snapshot_name – Name of snapshot to revert | 
|---|
Property indicating whether lvchange can ignore skip activation.
Check for LVM version >= 2.02.99. (LVM2 git: ab789c1bc add –ignoreactivationskip to lvchange)
Property indicating whether snap activation changes are supported.
Check for LVM version >= 2.02.91. (LVM2 git: e8a40f6 Allow to activate snapshot)
| Returns: | True/False indicating support | 
|---|
Static method to check for thin LVM support on a system.
| Parameters: | root_helper – root_helper to use for execute | 
|---|---|
| Returns: | True if supported, False otherwise | 
Update VG info for this instantiation.
Used to update member fields of object and provide a dict of info for caller.
| Returns: | Dictionaries of VG info | 
|---|