class documentation
class ExtStorageDevice(base.BlockDev):
A block device provided by an ExtStorage Provider.
This class implements the External Storage Interface, which means handling of the externally provided block devices.
| Class Method | |
Create a new extstorage device. |
| Method | __init__ |
Attaches to an extstorage block device. |
| Method | |
Assemble the device. |
| Method | |
Attach to an existing extstorage device. |
| Method | |
Notifies that the device will no longer be used for I/O. |
| Method | |
Generate KVM userspace URIs to be used as `-drive file` settings. |
| Method | |
Grow the Volume. |
| Method | |
Make the device ready for I/O. |
| Method | |
Remove the extstorage device. |
| Method | |
Rename this device. |
| Method | |
Update metadata with info text. |
| Method | |
Shutdown the device. |
| Method | |
Take a snapshot of the block device. |
| Instance Variable | attached |
Undocumented |
| Instance Variable | dev |
Undocumented |
| Instance Variable | driver |
Undocumented |
| Instance Variable | ext |
Undocumented |
| Instance Variable | major |
Undocumented |
| Instance Variable | minor |
Undocumented |
| Instance Variable | name |
Undocumented |
| Instance Variable | uris |
Undocumented |
| Instance Variable | uuid |
Undocumented |
| Instance Variable | vol |
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 | |
Builds the shell command for importing data to device. |
| Method | |
Pause/Resume the sync of the mirror. |
| Method | |
Adjust the synchronization parameters of the mirror. |
| 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.CreateCreate a new extstorage device.
Provision a new volume using an extstorage provider, which will then be mapped to a block device.
overrides
ganeti.storage.base.BlockDev.AttachAttach to an existing extstorage device.
This method maps the extstorage volume that matches our name with a corresponding block device and then attaches to this device.
overrides
ganeti.storage.base.BlockDev.CloseNotifies that the device will no longer be used for I/O.
Generate KVM userspace URIs to be used as `-drive file` settings.
| See Also | |
base.BlockDev.GetUserspaceAccessUri |
overrides
ganeti.storage.base.BlockDev.GrowGrow the Volume.
| Parameters | |
| amount:integer | the amount (in mebibytes) to grow with |
| dryrun:boolean | whether to execute the operation in simulation mode only, without actually increasing the size |
| backingstore | Undocumented |
| excl | Undocumented |