Trees | Indices | Help |
|
---|
|
Logical Volume block device.
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
objects.BlockDevStatus |
|
||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from Inherited from |
|
|||
|
|||
list |
|
||
list |
|
||
|
|
|||
|
|
|||
_VALID_NAME_RE = re.compile("^[a-zA-Z0-9+_.-]*$")
|
|||
_INVALID_NAMES = frozenset([".", "..", "snapshot", "pvmove"])
|
|||
_INVALID_SUBSTRINGS = frozenset(["_mlog", "_mimage"])
|
|
|||
Inherited from |
|
Attaches to a LV device. The unique_id is a tuple (vg_name, lv_name)
|
Create a new logical volume.
|
Returns LVM Volumen infos using lvm_cmd
|
Get the free space info for PVs in a volume group.
|
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.
|
Grow the logical volume.
|
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Tue Jul 24 16:51:20 2012 | http://epydoc.sourceforge.net |