Package pyanaconda :: Package storage :: Module devices :: Class LVMVolumeGroupDevice
[hide private]
[frames] | no frames]

Class LVMVolumeGroupDevice

source code

object --+            
         |            
    Device --+        
             |        
 StorageDevice --+    
                 |    
          DMDevice --+
                     |
                    LVMVolumeGroupDevice

An LVM Volume Group

XXX Maybe this should inherit from StorageDevice instead of
    DMDevice since there's no actual device.

Instance Methods [hide private]
 
__init__(self, name, parents, size=None, free=None, peSize=None, peCount=None, peFree=None, pvCount=None, uuid=None, exists=None, sysfsPath='')
Create a LVMVolumeGroupDevice instance.
source code
 
__repr__(self)
repr(x)
source code
 
dict(self) source code
 
writeKS(self, f, preexisting=False, noformat=False, s=None) source code
 
mapName(self)
This device's device-mapper map name
source code
 
path(self)
Device node representing this device.
source code
 
updateSysfsPath(self)
Update this device's sysfs path.
source code
 
status(self)
The device's status (True means active).
source code
 
_addDevice(self, device)
Add a new physical volume device to the volume group.
source code
 
_removeDevice(self, device)
Remove a physical volume from the volume group.
source code
 
_preSetup(self, orig=False)
Preparation and pre-condition checking for device setup.
source code
 
_teardown(self, recursive=None)
Close, or tear down, a device.
source code
 
_statusWindow(self, intf=None, title="", msg="") source code
 
_create(self, w)
Create the device.
source code
 
_preDestroy(self)
Preparation and precondition checking for device destruction.
source code
 
_destroy(self)
Destroy the device.
source code
 
reduce(self, pv_list)
Remove the listed PVs from the VG.
source code
 
_addLogVol(self, lv)
Add an LV to this VG.
source code
 
_removeLogVol(self, lv)
Remove an LV from this VG.
source code
 
_addPV(self, pv)
Add a PV to this VG.
source code
 
_removePV(self, pv)
Remove an PV from this VG.
source code
 
isModified(self)
Return True if the VG has changes queued that LVM is unaware of.
source code
 
snapshotSpace(self)
Total space used by snapshots in this volume group.
source code
 
reservedSpace(self)
Reserved space in this VG, in MB
source code
 
size(self)
The size of this VG
source code
 
extents(self)
Number of extents in this VG
source code
 
freeSpace(self)
The amount of free space in this VG (in MB).
source code
 
freeExtents(self)
The number of free extents in this VG.
source code
 
align(self, size, roundup=None)
Align a size to a multiple of physical extent size.
source code
 
pvs(self)
A list of this VG's PVs
source code
 
lvs(self)
A list of this VG's LVs
source code
 
complete(self)
Check if the vg has all its pvs in the system Return True if complete.
source code

Inherited from DMDevice: fstabSpec, getDMNode, setupPartitions, slave, teardownPartitions

Inherited from DMDevice (private): _setName

Inherited from StorageDevice: __str__, checkSize, create, currentSize, destroy, disks, encrypted, formatArgs, growable, isDisk, maxSize, minSize, model, notifyKernel, packages, partedDevice, partitionable, partitioned, preCommitFixup, removable, resizable, resize, serial, services, setup, setupParents, teardown, vendor

Inherited from Device: __deepcopy__, addChild, dependsOn, dracutSetupArgs, isleaf, mediaPresent, removeChild, teardownParents, type, typeDescription

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __subclasshook__

Class Variables [hide private]
  _type = "lvmvg"
  _packages = ["lvm2"]

Inherited from DMDevice: name

Inherited from DMDevice (private): _devDir

Inherited from StorageDevice: format, sysfsBlockDir, targetSize

Inherited from StorageDevice (private): _isDisk, _partitionable, _resizable

Inherited from Device (private): _id, _services

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, name, parents, size=None, free=None, peSize=None, peCount=None, peFree=None, pvCount=None, uuid=None, exists=None, sysfsPath='')
(Constructor)

source code 
Create a LVMVolumeGroupDevice instance.

Arguments:

    name -- the device name (generally a device node's basename)
    parents -- a list of physical volumes (StorageDevice)

Keyword Arguments:

    peSize -- physical extent size (in MB)
    exists -- indicates whether this is an existing device
    sysfsPath -- sysfs device path

    For existing VG's only:

        size -- the VG's size (in MB)
        free -- amount of free space in the VG
        peFree -- number of free extents
        peCount -- total number of extents
        pvCount -- number of PVs in this VG
        uuid -- the VG's UUID

Overrides: object.__init__

__repr__(self)
(Representation operator)

source code 

repr(x)

Overrides: object.__repr__
(inherited documentation)

dict(self)

source code 
Decorators:
  • @property
Overrides: Device.dict

writeKS(self, f, preexisting=False, noformat=False, s=None)

source code 
Overrides: Device.writeKS

mapName(self)

source code 

This device's device-mapper map name

Decorators:
  • @property
Overrides: DMDevice.mapName

path(self)

source code 

Device node representing this device.

Decorators:
  • @property
Overrides: StorageDevice.path

updateSysfsPath(self)

source code 

Update this device's sysfs path.

Overrides: StorageDevice.updateSysfsPath

status(self)

source code 

The device's status (True means active).

Decorators:
  • @property
Overrides: Device.status

_addDevice(self, device)

source code 
Add a new physical volume device to the volume group.

XXX This is for use by device probing routines and is not
    intended for modification of the VG.

_removeDevice(self, device)

source code 

Remove a physical volume from the volume group.

This is for cases like clearing of preexisting partitions.

_preSetup(self, orig=False)

source code 

Preparation and pre-condition checking for device setup.

Return True if setup should proceed or False if not.

Overrides: StorageDevice._preSetup
(inherited documentation)

_teardown(self, recursive=None)

source code 

Close, or tear down, a device.

Overrides: StorageDevice._teardown

_statusWindow(self, intf=None, title="", msg="")

source code 
Overrides: StorageDevice._statusWindow

_create(self, w)

source code 

Create the device.

Overrides: StorageDevice._create

_preDestroy(self)

source code 

Preparation and precondition checking for device destruction.

Overrides: StorageDevice._preDestroy
(inherited documentation)

_destroy(self)

source code 

Destroy the device.

Overrides: StorageDevice._destroy

isModified(self)

source code 

Return True if the VG has changes queued that LVM is unaware of.

Decorators:
  • @property

snapshotSpace(self)

source code 

Total space used by snapshots in this volume group.

Decorators:
  • @property

reservedSpace(self)

source code 

Reserved space in this VG, in MB

Decorators:
  • @property

size(self)

source code 

The size of this VG

Decorators:
  • @property
Overrides: size

extents(self)

source code 

Number of extents in this VG

Decorators:
  • @property

freeSpace(self)

source code 

The amount of free space in this VG (in MB).

Decorators:
  • @property

freeExtents(self)

source code 

The number of free extents in this VG.

Decorators:
  • @property

pvs(self)

source code 

A list of this VG's PVs

Decorators:
  • @property

lvs(self)

source code 

A list of this VG's LVs

Decorators:
  • @property

complete(self)

source code 

Check if the vg has all its pvs in the system Return True if complete.

Decorators:
  • @property