class documentation

class DRBD83CmdGenerator(BaseDRBDCmdGenerator):

View In Hierarchy

Generates drbdsetup commands suited for the DRBD <= 8.3 syntax.

Method __init__ Undocumented
Method GenDetachCmd Undocumented
Method GenDisconnectCmd Undocumented
Method GenDownCmd Undocumented
Method GenInitMetaCmd Undocumented
Method GenLocalInitCmds Undocumented
Method GenNetInitCmds Undocumented
Method GenPauseSyncCmd Undocumented
Method GenPrimaryCmd Undocumented
Method GenResizeCmd Undocumented
Method GenResumeSyncCmd Undocumented
Method GenSecondaryCmd Undocumented
Method GenShowCmd Undocumented
Method GenSyncParamsCmd Undocumented
Class Method _ComputeDiskBarrierArgs Compute the DRBD command line parameters for disk barriers
Constant _DISABLE_DISK_OPTION Undocumented
Constant _DISABLE_DRAIN_OPTION Undocumented
Constant _DISABLE_FLUSH_OPTION Undocumented
Constant _DISABLE_META_FLUSH_OPTION Undocumented

Inherited from BaseDRBDCmdGenerator:

Static Method _DevPath Return the path to a drbd device for a given minor.
Instance Variable _version Undocumented
def __init__(self, version):
def GenDetachCmd(self, minor):
def GenDisconnectCmd(self, minor, family, lhost, lport, rhost, rport):
def GenDownCmd(self, minor):
def GenInitMetaCmd(self, minor, meta_dev):
def GenLocalInitCmds(self, minor, data_dev, meta_dev, size_mb, params):
def GenNetInitCmds(self, minor, family, lhost, lport, rhost, rport, protocol, dual_pri, hmac, secret, params):
def GenPauseSyncCmd(self, minor):
def GenPrimaryCmd(self, minor, force):
def GenResizeCmd(self, minor, size_mb):
def GenResumeSyncCmd(self, minor):
def GenSecondaryCmd(self, minor):
def GenShowCmd(self, minor):
def GenSyncParamsCmd(self, minor, params):
@classmethod
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.

_DISABLE_DISK_OPTION: str =

Undocumented

Value
'--no-disk-barrier'
_DISABLE_DRAIN_OPTION: str =

Undocumented

Value
'--no-disk-drain'
_DISABLE_FLUSH_OPTION: str =

Undocumented

Value
'--no-disk-flushes'
_DISABLE_META_FLUSH_OPTION: str =

Undocumented

Value
'--no-md-flushes'