class documentation

class DRBD84CmdGenerator(BaseDRBDCmdGenerator):

View In Hierarchy

Generates drbdsetup commands suited for the DRBD >= 8.4 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
Static Method _GetResource Return the resource name for a given minor.
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, disabled_barriers, disable_meta_flush):

Compute the DRBD command line parameters for disk barriers

@staticmethod
def _GetResource(minor):

Return the resource name for a given minor.

Currently we don't support DRBD volumes which share a resource, so we generate the resource name based on the minor the resulting volumes is assigned to.

_DISABLE_DISK_OPTION: str =

Undocumented

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

Undocumented

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

Undocumented

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

Undocumented

Value
'--md-flushes=no'