class documentation
class DRBD83CmdGenerator(BaseDRBDCmdGenerator):
Generates drbdsetup commands suited for the DRBD <= 8.3 syntax.
Method | __init__ |
Undocumented |
Method |
|
Undocumented |
Method |
|
Undocumented |
Method |
|
Undocumented |
Method |
|
Undocumented |
Method |
|
Undocumented |
Method |
|
Undocumented |
Method |
|
Undocumented |
Method |
|
Undocumented |
Method |
|
Undocumented |
Method |
|
Undocumented |
Method |
|
Undocumented |
Method |
|
Undocumented |
Method |
|
Undocumented |
Class Method | _ |
Compute the DRBD command line parameters for disk barriers |
Constant | _DISABLE |
Undocumented |
Constant | _DISABLE |
Undocumented |
Constant | _DISABLE |
Undocumented |
Constant | _DISABLE |
Undocumented |
Inherited from BaseDRBDCmdGenerator
:
Static Method | _ |
Return the path to a drbd device for a given minor. |
Instance Variable | _version |
Undocumented |
def GenNetInitCmds(self, minor, family, lhost, lport, rhost, rport, protocol, dual_pri, hmac, secret, params):
¶
Undocumented
@classmethod
def _ComputeDiskBarrierArgs(cls, vmaj, vmin, vrel, disabled_barriers, disable_meta_flush): ¶
def _ComputeDiskBarrierArgs(cls, vmaj, vmin, vrel, disabled_barriers, disable_meta_flush): ¶
Compute the DRBD command line parameters for disk barriers
Returns a list of the disk barrier parameters as requested via the disabled_barriers and disable_meta_flush arguments, and according to the supported ones in the DRBD version vmaj.vmin.vrel
If the desired option is unsupported, raises errors.BlockDeviceError.