DRBD Quick Reference PDF
DRBD Quick Reference PDF
Trademark notice
DRBD® and LINBIT® are trademarks or registered trademarks of LINBIT in Austria, the United States, and other
countries. Other names mentioned in this document may be trademarks or registered trademarks of their respective
owners.
License information
The text and illustrations in this document are licensed under a Creative Commons Attribution-NonCommercial-
NoDerivs 3.0 Unported license ("CC BY-NC-ND").
• In accordance with CC BY-NC-ND, if you distribute this document, you must provide the URL for the original version.
The following command reference aims to give you an overview over some of the most important
shell commands for manipulating DRBD resources.
1. Initializing�a�DRBD�resource
In order to create the DRBD meta-data for a given resource, use:
In order to define the Primary node for a freshly created DRBD resource, and at the same time
kick off the initial full synchronization, use the following command:
Warning
This will cause DRBD to overwrite any data for this resource on the peer node.
2. Frequently�used�drbdadm�commands
To enable a DRBD resource on a host, use:
drbdadm up <resource>
1
DRBD Quick Command Reference
3. Advanced�use�of�drbdadm
To attach a resource to its backing device, use:
Warning
Shrinking requires you to follow the right order! See the Resizing resources chapter
in the DRBD User’s Guide.
4. Gathering�information�on�DRBD�resources
To gather information about existing DRBD resources via the /proc pseudo filesystem, use:
cat /proc/drbd
5. DRBD�Configuration
To set the syncer rate for a specific DRBD resource on the fly, use:
2
DRBD Quick Command Reference
To adjust the configuration of a resource after having changed the configuration file, use:
6. Manually�resolving�a�split�brain�situation
On the split brain victim, issue this command:
7. Interrupting�the�resynchronisation�process
To pause a currently running resynchronisation process, use:
8. DRBD�Proxy
To list connections:
drbd-proxy-ctl -c show