Trees | Indices | Help |
|
---|
|
Logical Volume block device.
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
objects.BlockDevStatus |
|
||
|
|||
|
|||
tuple |
|
||
|
|||
|
|||
float |
|
||
|
|||
|
|||
Inherited from Inherited from |
|
|||
BlockDev |
|
||
list |
|
||
tuple |
|
||
float |
|
||
tuple |
|
||
list |
|
||
|
|||
|
|||
|
|
|||
float |
|
||
integer |
|
||
|
|||
|
|
|||
_VALID_NAME_RE = re.compile("^[a-zA-Z0-9+_.-]*$")
|
|||
_PARSE_PV_DEV_RE = re.compile(r"^([^ ()]+)\([0-9]+\)$")
|
|||
_INVALID_NAMES = compat.UniqueFrozenset([".", "..", "snapshot"
|
|||
_INVALID_SUBSTRINGS = compat.UniqueFrozenset(["_mlog", "_mimag
|
|
|||
Inherited from |
|
Attaches to a LV device. The unique_id is a tuple (vg_name, lv_name)
|
Return the the standard PV size (used with exclusive storage).
|
Compute the number of PVs needed for an LV (with exclusive storage).
|
Create a new logical volume.
|
Returns LVM Volume infos using lvm_cmd
|
Get the free space info for PVs in a volume group.
|
Return info (size/free) about PVs.
|
Return the free disk space in the given VG, in exclusive storage mode.
|
Get the free space info for specific VGs.
|
Get the free space info for specific VGs.
|
Validates that a given name is valid as VG or LV name. The list of valid characters and restricted names is taken out of the lvm(8) manpage, with the simplification that we enforce both VG and LV restrictions on the names. |
Remove this logical volume.
|
Rename this logical volume.
|
Attach to an existing LV. This method will try to see if an existing and active LV exists which matches our name. If so, its major/minor will be recorded.
|
Assemble the device. We always run `lvchange -ay` on the LV to ensure it's active before use, as there were cases when xenvg was not active after boot (also possibly after disk issues).
|
Shutdown the device. This is a no-op for the LV device type, as we don't deactivate the volumes on shutdown.
|
Returns the sync status of the device. If this device is a mirroring device, this function returns the status of the mirror. For logical volumes, sync_percent and estimated_time are always None (no recovery in progress, as we don't handle the mirrored LV case). The is_degraded parameter is the inverse of the ldisk parameter. For the ldisk parameter, we check if the logical volume has the 'virtual' type, which means it's not backed by existing storage anymore (read from it return I/O error). This happens after a physical disk failure and subsequent 'vgreduce --removemissing' on the volume group. The status was already read in Attach, so we just return it.
|
Make the device ready for I/O. This is a no-op for the LV device type.
|
Notifies that the device will no longer be used for I/O. This is a no-op for the LV device type.
|
Create a snapshot copy of an lvm block device.
|
Update metadata with info text.
|
Return how much the disk can grow with exclusive storage.
|
Grow the logical volume.
|
Return the number of spindles used.
|
|
_INVALID_NAMES
|
_INVALID_SUBSTRINGS
|
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Tue Apr 12 13:38:57 2016 | http://epydoc.sourceforge.net |