class documentation
class DRBD8(object):
Various methods to deals with the DRBD system as a whole.
This class provides a set of methods to deal with the DRBD installation on the node or with uninitialized devices as opposed to a DRBD device.
Static Method |
|
Find an unused DRBD device. |
Static Method |
|
Creates a suitable BaseDRBDCmdGenerator based on the given info. |
Static Method |
|
Reads and parses information from /proc/drbd. |
Static Method |
|
Compute the list of used DRBD minors. |
Static Method |
|
Returns DRBD usermode_helper currently set. |
Static Method |
|
Deactivate the device. |
Constant | _MAX |
Undocumented |
Constant | _USERMODE |
Undocumented |
Find an unused DRBD device.
This is specific to 8.x as the minors are allocated dynamically, so non-existing numbers up to a max minor count are actually free.
Returns | |
int | Undocumented |
Creates a suitable BaseDRBDCmdGenerator
based on the given info.
Parameters | |
info:DRBD8Info | Undocumented |
Returns | |
BaseDRBDCmdGenerator | Undocumented |
Reads and parses information from /proc/drbd.
Returns | |
DRBD8Info | a DRBD8Info instance containing the current /proc/drbd info |
Returns DRBD usermode_helper currently set.
Parameters | |
filename:string | the filename to read the usermode helper from |
Returns | |
string | the currently configured DRBD usermode helper |