Safe Haskell | None |
---|
DRBD Data Types
This module holds the definition of the data types describing the status of DRBD.
Synopsis
- 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
- data LocalRemote a = LocalRemote {}
- data Role
- data DiskState
- 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 | |
|
Instances
Eq DRBDStatus # | |
Defined in Ganeti.Storage.Drbd.Types (==) :: DRBDStatus -> DRBDStatus -> Bool (/=) :: DRBDStatus -> DRBDStatus -> Bool | |
Show DRBDStatus # | |
Defined in Ganeti.Storage.Drbd.Types showsPrec :: Int -> DRBDStatus -> ShowS show :: DRBDStatus -> String showList :: [DRBDStatus] -> ShowS | |
JSON DRBDStatus # | The DRBDStatus instance of JSON. |
Defined in Ganeti.Storage.Drbd.Types readJSON :: JSValue -> Result DRBDStatus showJSON :: DRBDStatus -> JSValue readJSONs :: JSValue -> Result [DRBDStatus] showJSONs :: [DRBDStatus] -> JSValue |
data VersionInfo Source #
Data type describing the DRBD version.
Instances
Eq VersionInfo # | |
Defined in Ganeti.Storage.Drbd.Types (==) :: VersionInfo -> VersionInfo -> Bool (/=) :: VersionInfo -> VersionInfo -> Bool | |
Show VersionInfo # | |
Defined in Ganeti.Storage.Drbd.Types showsPrec :: Int -> VersionInfo -> ShowS show :: VersionInfo -> String showList :: [VersionInfo] -> ShowS | |
JSON VersionInfo # | The VersionInfo instance of JSON. |
Defined in Ganeti.Storage.Drbd.Types readJSON :: JSValue -> Result VersionInfo showJSON :: VersionInfo -> JSValue readJSONs :: JSValue -> Result [VersionInfo] showJSONs :: [VersionInfo] -> JSValue |
data DeviceInfo Source #
Data type describing a device.
UnconfiguredDevice Int | An DRBD minor marked as unconfigured |
DeviceInfo | A configured DRBD minor |
|
Instances
Eq DeviceInfo # | |
Defined in Ganeti.Storage.Drbd.Types (==) :: DeviceInfo -> DeviceInfo -> Bool (/=) :: DeviceInfo -> DeviceInfo -> Bool | |
Show DeviceInfo # | |
Defined in Ganeti.Storage.Drbd.Types showsPrec :: Int -> DeviceInfo -> ShowS show :: DeviceInfo -> String showList :: [DeviceInfo] -> ShowS | |
JSON DeviceInfo # | The DeviceInfo instance of JSON. |
Defined in Ganeti.Storage.Drbd.Types readJSON :: JSValue -> Result DeviceInfo showJSON :: DeviceInfo -> JSValue readJSONs :: JSValue -> Result [DeviceInfo] showJSONs :: [DeviceInfo] -> JSValue |
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.
Instances
Eq a => Eq (LocalRemote a) # | |
Defined in Ganeti.Storage.Drbd.Types (==) :: LocalRemote a -> LocalRemote a -> Bool (/=) :: LocalRemote a -> LocalRemote a -> Bool | |
Show a => Show (LocalRemote a) # | |
Defined in Ganeti.Storage.Drbd.Types showsPrec :: Int -> LocalRemote a -> ShowS show :: LocalRemote a -> String showList :: [LocalRemote a] -> ShowS |
Data type describing.
Primary | The device role is primary |
Secondary | The device role is secondary |
Unknown | The device role is unknown |
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 | |
|
Instances
Eq PerfIndicators # | |
Defined in Ganeti.Storage.Drbd.Types (==) :: PerfIndicators -> PerfIndicators -> Bool (/=) :: PerfIndicators -> PerfIndicators -> Bool | |
Show PerfIndicators # | |
Defined in Ganeti.Storage.Drbd.Types showsPrec :: Int -> PerfIndicators -> ShowS show :: PerfIndicators -> String showList :: [PerfIndicators] -> ShowS | |
JSON PerfIndicators # | The PerfIndicators instance of JSON. |
Defined in Ganeti.Storage.Drbd.Types readJSON :: JSValue -> Result PerfIndicators showJSON :: PerfIndicators -> JSValue readJSONs :: JSValue -> Result [PerfIndicators] showJSONs :: [PerfIndicators] -> JSValue |
data SyncStatus Source #
Data type containing data about the synchronization status of a device.
SyncStatus | |
|
Instances
Eq SyncStatus # | |
Defined in Ganeti.Storage.Drbd.Types (==) :: SyncStatus -> SyncStatus -> Bool (/=) :: SyncStatus -> SyncStatus -> Bool | |
Show SyncStatus # | |
Defined in Ganeti.Storage.Drbd.Types showsPrec :: Int -> SyncStatus -> ShowS show :: SyncStatus -> String showList :: [SyncStatus] -> ShowS | |
JSON SyncStatus # | The SyncStatus instance of JSON. |
Defined in Ganeti.Storage.Drbd.Types readJSON :: JSValue -> Result SyncStatus showJSON :: SyncStatus -> JSValue readJSONs :: JSValue -> Result [SyncStatus] showJSONs :: [SyncStatus] -> JSValue |
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.
Instances
Eq AdditionalInfo # | |
Defined in Ganeti.Storage.Drbd.Types (==) :: AdditionalInfo -> AdditionalInfo -> Bool (/=) :: AdditionalInfo -> AdditionalInfo -> Bool | |
Show AdditionalInfo # | |
Defined in Ganeti.Storage.Drbd.Types showsPrec :: Int -> AdditionalInfo -> ShowS show :: AdditionalInfo -> String showList :: [AdditionalInfo] -> ShowS |
data DrbdInstMinor Source #
Data type representing the pairing of a DRBD minor with an instance.
DrbdInstMinor | |
|
Instances
Show DrbdInstMinor # | |
Defined in Ganeti.Storage.Drbd.Types showsPrec :: Int -> DrbdInstMinor -> ShowS show :: DrbdInstMinor -> String showList :: [DrbdInstMinor] -> ShowS | |
JSON DrbdInstMinor # | The DrbdInstMinor instance of JSON. |
Defined in Ganeti.Storage.Drbd.Types readJSON :: JSValue -> Result DrbdInstMinor showJSON :: DrbdInstMinor -> JSValue readJSONs :: JSValue -> Result [DrbdInstMinor] showJSONs :: [DrbdInstMinor] -> JSValue |