Safe Haskell | Safe-Infered |
---|
DRBD Data Types
This module holds the definition of the data types describing the status of DRBD.
- data DRBDStatus = DRBDStatus {}
- data VersionInfo = VersionInfo {}
- data DeviceInfo
- = UnconfiguredDevice Int
- | DeviceInfo {
- minorNumber :: Int
- connectionState :: ConnState
- resourceRoles :: LocalRemote Role
- diskStates :: LocalRemote DiskState
- replicationProtocol :: Char
- ioFlags :: String
- perfIndicators :: PerfIndicators
- syncStatus :: Maybe SyncStatus
- resync :: Maybe AdditionalInfo
- actLog :: Maybe AdditionalInfo
- instName :: Maybe String
- data ConnState
- = StandAlone
- | Disconnecting
- | Unconnected
- | Timeout
- | BrokenPipe
- | NetworkFailure
- | ProtocolError
- | TearDown
- | WFConnection
- | WFReportParams
- | Connected
- | StartingSyncS
- | StartingSyncT
- | WFBitMapS
- | WFBitMapT
- | WFSyncUUID
- | SyncSource
- | SyncTarget
- | PausedSyncS
- | PausedSyncT
- | VerifyS
- | VerifyT
- | Unconfigured
- data LocalRemote a = LocalRemote {}
- data Role
- data DiskState
- = Diskless
- | Attaching
- | Failed
- | Negotiating
- | Inconsistent
- | Outdated
- | DUnknown
- | Consistent
- | UpToDate
- data PerfIndicators = PerfIndicators {
- networkSend :: Int
- networkReceive :: Int
- diskWrite :: Int
- diskRead :: Int
- activityLog :: Int
- bitMap :: Int
- localCount :: Int
- pending :: Int
- unacknowledged :: Int
- applicationPending :: Int
- epochs :: Maybe Int
- writeOrder :: Maybe Char
- outOfSync :: Maybe Int
- data SyncStatus = SyncStatus {
- percentage :: Double
- partialSyncSize :: Int
- totalSyncSize :: Int
- syncUnit :: SizeUnit
- timeToFinish :: Time
- speed :: Int
- want :: Maybe Int
- speedSizeUnit :: SizeUnit
- speedTimeUnit :: TimeUnit
- data SizeUnit
- data Time = Time {}
- data TimeUnit = Second
- data AdditionalInfo = AdditionalInfo {}
- data DrbdInstMinor = DrbdInstMinor {
- dimNode :: String
- dimMinor :: Int
- dimInstName :: String
- dimDiskIdx :: String
- dimRole :: String
- dimPeer :: String
Documentation
data DRBDStatus Source
Data type contaning all the data about the status of DRBD.
DRBDStatus | |
|
Eq DRBDStatus | |
Show DRBDStatus | |
JSON DRBDStatus | The DRBDStatus instance of JSON. |
data VersionInfo Source
Data type describing the DRBD version.
Eq VersionInfo | |
Show VersionInfo | |
JSON VersionInfo | The VersionInfo instance of JSON. |
data DeviceInfo Source
Data type describing a device.
UnconfiguredDevice Int | An DRBD minor marked as unconfigured |
DeviceInfo | A configured DRBD minor |
|
Eq DeviceInfo | |
Show DeviceInfo | |
JSON DeviceInfo | The DeviceInfo instance of JSON. |
Data type describing the state of the connection.
StandAlone | No network configuration available |
Disconnecting | Temporary state during disconnection |
Unconnected | Prior to a connection attempt |
Timeout | Following a timeout in the communication |
BrokenPipe | After the connection to the peer was lost |
NetworkFailure | After the connection to the partner was lost |
ProtocolError | After the connection to the partner was lost |
TearDown | The peer is closing the connection |
WFConnection | Waiting for the peer to become visible |
WFReportParams | Waiting for first packet from peer |
Connected | Connected, data mirroring active |
StartingSyncS | Source of a full sync started by admin |
StartingSyncT | Target of a full sync started by admin |
WFBitMapS | Source of a just starting partial sync |
WFBitMapT | Target of a just starting partial sync |
WFSyncUUID | Synchronization is about to begin |
SyncSource | Source of a running synchronization |
SyncTarget | Target of a running synchronization |
PausedSyncS | Source of a paused synchronization |
PausedSyncT | Target of a paused synchronization |
VerifyS | Source of a running verification |
VerifyT | Target of a running verification |
Unconfigured | The device is not configured |
data LocalRemote a Source
Algebraic data type describing something that has a local and a remote value.
Eq a => Eq (LocalRemote a) | |
Show a => Show (LocalRemote a) |
Data type describing.
Data type describing disk states.
Diskless | No local block device assigned to the DRBD driver |
Attaching | Reading meta data |
Failed | I/O failure |
Negotiating | Attach on an already-connected device |
Inconsistent | The data is inconsistent between nodes. |
Outdated | Data consistent but outdated |
DUnknown | No network connection available |
Consistent | Consistent data, but without network connection |
UpToDate | Consistent, up-to-date. This is the normal state |
data PerfIndicators Source
Data type containing data about performance indicators.
PerfIndicators | |
|
Eq PerfIndicators | |
Show PerfIndicators | |
JSON PerfIndicators | The PerfIndicators instance of JSON. |
data SyncStatus Source
Data type containing data about the synchronization status of a device.
SyncStatus | |
|
Eq SyncStatus | |
Show SyncStatus | |
JSON SyncStatus | The SyncStatus instance of JSON. |
Data type describing a size unit for memory.
Data type describing a time (hh:mm:ss).
Data type describing a time unit.
data AdditionalInfo Source
Additional device-specific cache-like information produced by drbd <= 8.0.
Internal debug information exported by old DRBD versions. Undocumented both in DRBD and here.
Eq AdditionalInfo | |
Show AdditionalInfo |
data DrbdInstMinor Source
Data type representing the pairing of a DRBD minor with an instance.
DrbdInstMinor | |
|
Show DrbdInstMinor | |
JSON DrbdInstMinor | The DrbdInstMinor instance of JSON. |