DRBD 9¶
Install required packages¶
Check module install
Enable and start drbd cluster manager service
Configure drbd9 cluster¶
Create drbdpool volume group on desired PVs
Initialize the drbdmanage in the master node with own parameters
Add volume and resources
Note: It will create and associated resource with the same volume-name.Deploy resources to nodes
Just if you want to allocate volumes on desired PV
Create filesystem and mount
In drbd9 mount action will automatically trigger a Secondary -> Primary change to allow rw mount.Types of nodes¶
In all types what it is shared is a block device, also in diskless nodes.
Control node¶
- Control volume (.drbdctrl): local (could be pri/sec)
- Resources: local (could be pri/sec) The cluster startup is done with drbdmanage init and it will become also a control node.
Pure controller node¶
- Control volume (.drbdctrl): local (could be pri/sec)
- Resources: local (could be pri/sec) It is like a control node but as it won't have storage, will only act a a control node or a satellite.
Satellite node¶
- Control volume (.drbdctrl): remote, via TCP. (could be pri/sec)
- Resources: local (could be pri/sec)
Pure client node¶
- Control volume (.drbdctrl): remote, via TCP. (could be pri/sec)
- Resources: remote, via TCP. (could be pri/sec)
Utils¶
- drbdmanage nodes: Show nodes in cluster with available space
- drbdmanage resources: show resources
- drbdmanage volumes: Show volumes
- drbdmanage uninit
: Remove node from cluster. All resources on that node will be lost. - drbdmanage peer-disk-options --common
: Modify disk options. - drbdmanage net-options --common
: Modify net options - drbdsetup status: Show resource status and synchronization progress. Use --verbose for details.