Drbd
DRBD 沒有輸出 cat /proc/drbd
我同步我的新磁碟,輸出
drbdtop
:Resource: myres: (Overall danger score: 14) Local Disc(Primary): volume 0 (/dev/drbd0): UpToDate(normal disk state) volume 1 (/dev/drbd1): UpToDate(normal disk state) volume 2 (/dev/drbd2): Inconsistent(data is not accessible or usable until resync is complete) Connection to zfs.user.osdc2(Secondary): Connected(connected to zfs.user.osdc2) volume 0: UpToDate(normal disk state) volume 1: UpToDate(normal disk state) volume 2: Replication:SyncTarget(local volume is being synchronized with data from zfs.user.osdc2) 95.6% remaining UpToDate(normal disk state)
cat /proc/drbd
但是關於我的資源沒有輸出。僅有的:version: 9.0.9-1 (api:2/proto:86-112) GIT-hash: f7b979e7af01813e031aac579140237640c94569 build by mockbuild@, 2017-09-14 17:45:45 Transports (api:16): tcp (9.0.9-1)
為什麼沒有輸出?我應該如何解決這個問題?
/proc/drbd 文件已在 DRBD 9.x 版本中刪除。您應該改為使用
drbdadm status
來獲取 DRBD 資源的目前狀態。如果你真的堅持舊的 /proc/drbd 輸出,你現在可以在 sysfs 中找到它。請注意,這僅適用於每個連接。它位於:
/sys/kernel/debug/drbd/resources/${resource_name}/connections/${hostname}/0/proc_drbd