Troubleshooting DRBD

Use the following to troubleshoot problems with your DRBD setup:

Configuration

If the initial drbd setup does not work as expected, there is probably something wrong with your configuration.

To get information about the configuration:

  1. Open a terminal console, then log in as the root user or equivalent.

  2. Test the configuration file by running drbdadm with the -d option. Enter

    drbdadm -d adjust r0
    

    In a dry run of the adjust option, drbdadm compares the actual configuration of the DRBD resource with your DRBD configuration file, but it does not execute the calls. Review the output to make sure you know the source and cause of any errors.

  3. If there are errors in the drbd.conf file, correct them before continuing.

  4. If the partitions and settings are correct, run drbdadm again without the -d option. Enter

    drbdadm adjust r0
    

    This applies the configuration file to the DRBD resource.

Host Names

Please note that for DRBD, hostnames are case sensitive and therefore Node0 would be a different host than node0.

TCP Port 7788

If your system is unable to connect to the peer, this also may be a problem of a local firewall. By default, DRBD uses the TCP port 7788 to access the other node. Make sure that this port is accessible on both nodes.

The --do-what-i-say Option

The --do-what-i-say option has been renamed to --overwrite-data-of-peer in the recent versions of DRBD.


SUSEŽ Linux Enterprise Server Storage Administration Guide 10