OPERATING DRBD

START

drbdadm up all
#drbdadm up r1

storage1

drbdadm primary r1
drbdadm primary r3

storage2

drbdadm primary r2
drbdadm primary r1

storage3

drbdadm primary r3
drbdadm primary r2

STATUS

lsmod | egrep 'drbd|lru_cache'
cat /proc/drbd # module version
drbdadm | grep -A1 ^Version # tools version
#drbd-overview
#drbdsetup status
drbdadm status
#drbdadm status r1
/etc/rc.d/init.d/drbd status

STOP

both nodes

drbdadm down all
#drbdadm down r1

RELOAD

do some change and populate

vi /etc/drbd.conf
scp /etc/drbd.conf storage2:/etc/
scp /etc/drbd.conf storage3:/etc/

APPLY ON EVERY NODE

drbdadm adjust-with-progress r1 --dry-run
drbdadm adjust-with-progress r2 --dry-run
drbdsetup disk-options 1 --set-defaults --read-balancing=least-pending
drbdsetup disk-options 2 --set-defaults --read-balancing=least-pending
drbdsetup all show

and show resource configuration

drbdsetup all show
drbdsetup r1 show

RESOURCES

drbdadm - Utility for DRBD administration https://docs.linbit.com/man/v9/drbdadm-8/

drbd.conf - DRBD Configuration Files https://docs.linbit.com/man/v9/drbd-conf-5/


Nethence | Pub | Lab | Pbraun | SNE Russia | xhtml