DRBD 9¶
Install the required packages¶
Check the module installation
Enable and start the DRBD cluster manager service
Configure the DRBD 9 cluster¶
Create the drbdpool volume group on the desired PVs.
Initialize drbdmanage on the master node with your parameters.
Add the volume and resources.
Note: it also creates an associated resource with the same name as the volume.Deploy the resources to the nodes.
If you want to allocate volumes on a desired PV, perform this step.
Create the filesystem and mount it.
In DRBD 9, the mount action automatically triggers a Secondary -> Primary change to allow a read-write mount.Node types¶
All node types share a block device, including diskless nodes.
Control node¶
- Control volume (.drbdctrl): local (can be primary or secondary)
- Resources: local (can be primary or secondary)
Cluster startup is performed using drbdmanage init. The node also becomes a control node.
Pure controller node¶
- Control volume (.drbdctrl): local (can be primary or secondary)
- Resources: local (can be primary or secondary)
This node functions like a control node. Because it has no storage, it acts only as a control node or a satellite.
Satellite node¶
- Control volume (.drbdctrl): remote, via TCP (can be primary or secondary)
- Resources: local (can be primary or secondary)
Pure client node¶
- Control volume (.drbdctrl): remote, via TCP (can be primary or secondary)
- Resources: remote, via TCP (can be primary or secondary)
Utilities¶
drbdmanage nodes: Displays cluster nodes and their available space.drbdmanage resources: Displays resources.drbdmanage volumes: Displays volumes.drbdmanage uninit <node-name>: Removes a node from the cluster. All resources on that node will be lost.drbdmanage peer-disk-options --common <options>: Modifies disk options.drbdmanage net-options --common <options>: Modifies network options.drbdsetup status: Displays resource status and synchronization progress. Use--verbosefor details.