最後更新: 2021-02-11
目錄
- drbdadm
- drbdmon
- drbdmeta
- drbdsetup
drbdadm
Usage
drbdadm options command resource...
options
-d dry-run mode
command
attach / detach (Removes the backing storage device from a DRBD resource)
connect / disconnect (Go into StandAlone state)
up / down
primary (before any access to the devic) / secondary
syncer (Loads the resynchronization parameters into the device.)
pause-sync / resume-sync
dump (configure)
verify ( verify 之後 要 disconnect, connect 修復)
dstate | cstate | role
adjust ( 根據 "/etc/drbd.conf" Update setting )
outdate (mark the node's data as outdated)
invalidate / invalidate-remote (強制 re-sync 所有 data 一次)
很少用的 command:
create-md (first time only)
new-current-uuid
resize
check-resize (Calls drbdmeta to eventually move internal meta data)
drbdmon
drbdmeta