/proc/drbd 的状态解释

/proc/drbd 的状态解释

/proc/drbd 是 DRBD 环境中, 一个关键的系统状态文件. 可通过以下一个样例来理解其具体含义:

[root@admon ~]# cat /proc/drbd
version: 0.7.25 (api:79/proto:74)
GIT-hash: 3a9c7c136a9af8df921b3628129dafbe212ace9f build by root @ admon.org, 2008-11-08 08:33:43
0: cs:Connected st:Secondary/Primary ld:Consistent  
    ns:0 nr:1276 dw:1276 dr:0 al:0 bm:0 lo:0 pe:0 ua:0 ap:0
1: cs:Connected st:Secondary/Primary ld:Consistent  
    ns:0 nr:359392588 dw:359392588 dr:0 al:0 bm:21583 lo:0 pe:0 ua:0 ap:0


Field        说明                  值:
cs         连接状态               出现的值:
                    o Unconfigured:设备在等待配置。
                    o Unconnected:连接模块时的过渡状态。
                    o WFConnection:设备等待另一测的配置。
                    o WFReportParams:过渡状态,等待新TCP 连接的第一个数据包时。.
                    o SyncingAll:正将主节点的所有模块复制到次级节点上。.
                    o SyncingQuick:通过复制已被更新的模块(因为现在次级节点已经离开了集群)来更新次级节点。
                    o Connected:一切正常。
                    o Timeout:过渡状态。
st         状态(设备的作用)      可能的值为:
                    o 本地/远程一级状态
                    o 二级状态
                    o 未知(这不是一种作用)
ns    网络发送    模块号码
nr    网络接收    模块号码
dw   磁盘写入    模块号码
dr   磁盘读取    模块号码
of    运行中(过时的)模块号码
pe   待解决的    模块号码
ua    未答复的    模块号码(最好为0)

官方英文版地址: http://www.drbd.org/users-guide/ch-admin.html

  • cs (connection state). Status of the network connection. See the section called “Connection states” for details about the              various connection states.
  • st (states). Roles of the nodes. The role of the local node is                displayed first, followed by the role of the partner                node shown after the slash. See the section called “Resource roles” for details about the                possible resource roles.


  • ds (disk states). State of the hard disks. Prior to the slash the                state of the local node is displayed, after the slash                the state of the hard disk of the partner node is                shown. See the section called “Disk states” for details about the various                connection states.
  • ns (network send). Volume of net data sent to the partner via the                network connection; in Kibyte.
  • nr (network receive). Volume of net data received by the partner via                the network connection; in Kibyte.
  • dw (disk write). Net data written on local hard disk; in                Kibyte.
  • dr (disk read). Net data read from local hard disk; in Kibyte.             
  • al (activity log). Number of updates of the AL area of the meta                data.
  • bm (bit map). Number of updates of the bitmap area of the meta                data.
  • lo (local count). Number of open requests to the local I/O sub-system                issued by DRBD.
  • pe (pending). Number of requests sent to the partner, but that                have not yet been answered by the latter.
  • ua (unacknowledged). Number of requests received by the partner via the                network connection, but that have not yet been                answered.
  • ap (application pending). Number of block I/O requests forwarded to DRBD, but                not yet answered by DRBD.



.

      
学习下