Logo Search packages:      
Sourcecode: ganeti version File versions  Download package

lib::bdev::DRBD8 Class Reference

Inheritance diagram for lib::bdev::DRBD8:

lib::bdev::BaseDRBD lib::bdev::BlockDev

List of all members.


Detailed Description

DRBD v8.x block device.

This implements the local host part of the DRBD device, i.e. it
doesn't do anything to the supposed peer. If you need a fully
connected DRBD pair, you need to use this class on both hosts.

The unique_id for the drbd device is the (local_ip, local_port,
remote_ip, remote_port) tuple, and it must have two children: the
data device and the meta_device. The meta device is checked for
valid size and is zeroed on create.

Definition at line 1599 of file bdev.py.


Public Member Functions

def __init__
def __repr__
def AddChildren
def Assemble
def Attach
def Close
def CombinedSyncStatus
def Create
def GetStatus
def GetSyncStatus
def Open
def Remove
def RemoveChildren
def Rename
def SetInfo
def SetSyncSpeed
def Shutdown

Public Attributes

 dev_path
 major
 minor
 unique_id

Static Public Attributes

int STATUS_EXISTING = 1
dictionary STATUS_MAP
int STATUS_ONLINE = 3
int STATUS_STANDBY = 2
int STATUS_UNKNOWN = 0

Private Member Functions

def _AssembleLocal
def _AssembleNet
def _FindUnusedMinor
def _GetDevInfo
def _GetShowParser
def _InitMeta
def _IsValidMeta
def _MatchesLocal
def _MatchesNet
def _ShutdownAll
def _ShutdownLocal
def _ShutdownNet

Private Attributes

 _children
 _rport

Static Private Attributes

int _MAX_MINORS = 255
 _PARSE_SHOW = None

The documentation for this class was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index