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

Class MDRaidArrayDevice

source code

object --+        
         |        
    Device --+    
             |    
 StorageDevice --+
                 |
                MDRaidArrayDevice

An mdraid (Linux RAID) device.

Instance Methods [hide private]
 
__init__(self, name, level=None, major=None, minor=None, size=None, memberDevices=None, totalDevices=None, uuid=None, format=None, exists=None, metadataVersion=None, parents=None, sysfsPath='')
Create a MDRaidArrayDevice instance.
source code
 
smallestMember(self) source code
 
size(self) source code
 
description(self) source code
 
__repr__(self)
repr(x)
source code
 
dict(self) source code
 
writeKS(self, f, preexisting=False, noformat=False, s=None) source code
 
mdadmConfEntry(self)
This array's mdadm.conf entry.
source code
 
totalDevices(self)
Total number of devices in the array, including spares.
source code
 
_getMemberDevices(self) source code
 
_setMemberDevices(self, number) source code
 
_getSpares(self) source code
 
_setSpares(self, spares) source code
 
updateSysfsPath(self)
Update this device's sysfs path.
source code
 
_addDevice(self, device)
Add a new member device to the array.
source code
 
_removeDevice(self, device)
Remove a component device from the array.
source code
 
status(self)
This device's status.
source code
 
degraded(self)
Return True if the array is running in degraded mode.
source code
 
devices(self)
Return a list of this array's member device instances.
source code
 
_setup(self, intf=None, orig=False)
Open, or set up, a device.
source code
 
teardown(self, recursive=None)
Close, or tear down, a device.
source code
 
preCommitFixup(self, *args, **kwargs)
Determine create parameters for this set
source code
 
_statusWindow(self, intf=None, title="", msg="") source code
 
_postCreate(self)
Perform post-create operations.
source code
 
_create(self, w)
Create the device.
source code
 
formatArgs(self)
Device-specific arguments to format creation program.
source code
 
mediaPresent(self) source code
 
model(self) source code
 
partitionable(self) source code
 
isDisk(self) source code
 
dracutSetupArgs(self) source code

Inherited from StorageDevice: __str__, checkSize, create, currentSize, destroy, disks, encrypted, fstabSpec, growable, maxSize, minSize, notifyKernel, packages, partedDevice, partitioned, path, removable, resizable, resize, serial, services, setup, setupParents, vendor

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

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

Class Variables [hide private]
  _type = "mdarray"
  _packages = ["mdadm"]
  memberDevices = property(_getMemberDevices, _setMemberDevices,...
  spares = property(_getSpares, _setSpares)

Inherited from StorageDevice: format, sysfsBlockDir, targetSize

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

Inherited from Device (private): _id, _services

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, name, level=None, major=None, minor=None, size=None, memberDevices=None, totalDevices=None, uuid=None, format=None, exists=None, metadataVersion=None, parents=None, sysfsPath='')
(Constructor)

source code 
Create a MDRaidArrayDevice instance.

Arguments:

    name -- the device name (generally a device node's basename)

Keyword Arguments:

    level -- the device's RAID level (a string, eg: '1' or 'raid1')
    metadataVersion -- the version of the device's md metadata
    parents -- list of member devices (StorageDevice instances)
    size -- the device's size (units/format TBD)
    uuid -- the device's UUID
    minor -- the device minor
    sysfsPath -- sysfs device path
    format -- a DeviceFormat instance
    exists -- indicates whether this is an existing device

Overrides: object.__init__

smallestMember(self)

source code 
Decorators:
  • @property

size(self)

source code 
Decorators:
  • @property
Overrides: size

description(self)

source code 
Decorators:
  • @property

__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

mdadmConfEntry(self)

source code 

This array's mdadm.conf entry.

Decorators:
  • @property

totalDevices(self)

source code 

Total number of devices in the array, including spares.

Decorators:
  • @property

updateSysfsPath(self)

source code 

Update this device's sysfs path.

Overrides: StorageDevice.updateSysfsPath

_addDevice(self, device)

source code 
Add a new member device to the array.

XXX This is for use when probing devices, not for modification
    of arrays.

_removeDevice(self, device)

source code 

Remove a component device from the array.

XXX This is for use by clearpart, not for reconfiguration.

status(self)

source code 
This device's status.

For now, this should return a boolean:
    True    the device is open and ready for use
    False   the device is not open

Decorators:
  • @property
Overrides: Device.status

degraded(self)

source code 

Return True if the array is running in degraded mode.

Decorators:
  • @property

devices(self)

source code 

Return a list of this array's member device instances.

Decorators:
  • @property

_setup(self, intf=None, orig=False)

source code 

Open, or set up, a device.

Overrides: StorageDevice._setup

teardown(self, recursive=None)

source code 

Close, or tear down, a device.

Overrides: Device.teardown

preCommitFixup(self, *args, **kwargs)

source code 

Determine create parameters for this set

Overrides: StorageDevice.preCommitFixup

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

source code 
Overrides: StorageDevice._statusWindow

_postCreate(self)

source code 

Perform post-create operations.

Overrides: StorageDevice._postCreate
(inherited documentation)

_create(self, w)

source code 

Create the device.

Overrides: StorageDevice._create

formatArgs(self)

source code 

Device-specific arguments to format creation program.

Decorators:
  • @property
Overrides: StorageDevice.formatArgs
(inherited documentation)

mediaPresent(self)

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

model(self)

source code 
Decorators:
  • @property
Overrides: StorageDevice.model

partitionable(self)

source code 
Decorators:
  • @property
Overrides: StorageDevice.partitionable

isDisk(self)

source code 
Decorators:
  • @property
Overrides: StorageDevice.isDisk

dracutSetupArgs(self)

source code 
Overrides: Device.dracutSetupArgs

Class Variable Details [hide private]

memberDevices

Value:
property(_getMemberDevices, _setMemberDevices, doc= "number of member \
devices")