| Home | Trees | Indices | Help |
|---|
|
|
object --+
|
Device --+
|
StorageDevice --+
|
DMDevice --+
|
LVMLogicalVolumeDevice
An LVM Logical Volume
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
Inherited from Inherited from Inherited from Inherited from Inherited from |
|||
|
|||
_type = "lvmlv"
|
|||
_resizable = True
|
|||
_packages = ["lvm2"]
|
|||
size = property(StorageDevice._getSize, _setSize)
|
|||
|
Inherited from Inherited from |
|||
|
|||
|
Inherited from |
|||
|
|||
Create a LVMLogicalVolumeDevice instance.
Arguments:
name -- the device name (generally a device node's basename)
vgdev -- volume group (LVMVolumeGroupDevice instance)
Keyword Arguments:
size -- the device's size (in MB)
uuid -- the device's UUID
stripes -- number of copies in the vg (>1 for mirrored lvs)
logSize -- size of log volume (for mirrored lvs)
snapshotSpace -- sum of sizes of snapshots of this lv
sysfsPath -- sysfs device path
format -- a DeviceFormat instance
exists -- indicates whether this is an existing device
singlePV -- if true, maps this lv to a single pv
For new (non-existent) LVs only:
grow -- whether to grow this LV
maxsize -- maximum size for growable LV (in MB)
percent -- percent of VG space to take
|
repr(x)
|
|
|
|
Set the device's size to a new value.
|
Space occupied by this LV, not including snapshots.
|
This Logical Volume's Volume Group.
|
This device's device-mapper map name
|
Device node representing this device.
|
Return the dm-X (eg: dm-0) device node for this device.
|
This device's name.
|
The LV's name (not including VG name).
|
Test if vg exits and if it has all pvs.
|
Run setup method of all parent devices.
|
Open, or set up, a device.
|
Close, or tear down, a device.
|
Perform post-teardown operations.
|
|
Create the device.
|
Preparation and precondition checking for device destruction.
|
Destroy the device.
|
Resize the device. New size should already be set.
|
|
Check to make sure the size of the device is allowed by the format used. Returns: 0 - ok 1 - Too large -1 - Too small
|
| Home | Trees | Indices | Help |
|---|
| Generated by Epydoc 3.0.1 on Fri Mar 2 14:52:24 2012 | http://epydoc.sourceforge.net |