A.4. Changes to the drbdadm command

A.4.1. Changes to pass-through options

Prior to DRBD 8.4, if you wanted drbdadm to pass special options through to drbdsetup, you had to use the arcane -- --<option> syntax, as in the following example:

Pre-DRBD 8.4 drbdadm pass-through options. 

drbdadm -- --discard-my-data connect <resource>

Instead, drbdadm now accepts those pass-through options as normal options:

DRBD 8.4 drbdadm pass-through options. 

drbdadm connect --discard-my-data <resource>

[Note]Note

The old syntax is still supported, but its use is strongly discouraged. However, if you choose to use the new, more straightforward syntax, you must specify the option (--discard-my-data) after the subcommand (connect) and before the resource identifier.

A.4.2. --force option replaces --overwrite-data-of-peer

The --overwrite-data-of-peer option is no longer present in DRBD 8.4. It has been replaced by the simpler --force. Thus, to kick off an initial resource synchronization, you no longer use the following command:

Pre-DRBD 8.4 initial sync drbdadm commands. 

drbdadm -- --overwrite-data-of-peer primary <resource>

Use the command below instead:

DRBD 8.4 initial sync drbdadm commands. 

drbdadm primary --force <resource>