class documentation
class PersistentBlockDevice(base.BlockDev):
A block device with persistent node
May be either directly attached, or exposed through DM (e.g. dm-multipath). udev helpers are probably required to give persistent, human-friendly names.
For the time being, pathnames are required to lie under /dev.
Class Method |
|
Create a new device |
Method | __init__ |
Attaches to a static block device. |
Method |
|
Assemble the device. |
Method |
|
Attach to an existing block device. |
Method |
|
Notifies that the device will no longer be used for I/O. |
Method |
|
Grow the logical volume. |
Method |
|
Builds the shell command for importing data to device. |
Method |
|
Make the device ready for I/O. |
Method |
|
Remove a device |
Method |
|
Rename this device. |
Method |
|
Shutdown the device. |
Instance Variable | attached |
Undocumented |
Instance Variable | dev |
Undocumented |
Instance Variable | major |
Undocumented |
Instance Variable | minor |
Undocumented |
Inherited from BlockDev
:
Method | __eq__ |
Undocumented |
Method | __repr__ |
Undocumented |
Method |
|
Calculate the mirror status recursively for our children. |
Method |
|
Builds the shell command for exporting data from device. |
Method |
|
Return the actual disk size and number of spindles used. |
Method |
|
Return the actual disk size. |
Method |
|
Return the actual number of spindles used. |
Method |
|
Returns the sync status of the device. |
Method |
|
Return URIs hypervisors can use to access disks in userspace mode. |
Method |
|
Pause/Resume the sync of the mirror. |
Method |
|
Update metadata with info text. |
Method |
|
Adjust the synchronization parameters of the mirror. |
Method |
|
Creates a snapshot of the block device. |
Instance Variable | dyn |
Undocumented |
Instance Variable | params |
Undocumented |
Instance Variable | size |
Undocumented |
Instance Variable | unique |
Undocumented |
Instance Variable | _children |
Undocumented |
@classmethod
def Create(cls, unique_id, children, size, spindles, params, excl_stor, dyn_params, **kwargs): ¶
def Create(cls, unique_id, children, size, spindles, params, excl_stor, dyn_params, **kwargs): ¶
overrides
ganeti.storage.base.BlockDev.Create
Create a new device
This is a noop, we only return a PersistentBlockDevice instance
overrides
ganeti.storage.base.BlockDev.__init__
Attaches to a static block device.
The unique_id is a path under /dev.
overrides
ganeti.storage.base.BlockDev.Close
Notifies that the device will no longer be used for I/O.
overrides
ganeti.storage.base.BlockDev.Import
Builds the shell command for importing data to device.
See Also | |
BlockDev.Import for details |