Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.
On Wed, 2 Aug 2006, Du wrote:
> Hi, I'm using drbd7 under Debian and when I try "drbdsetup /dev/drbd0
> primary" it works, but if I try "drbdadm primary drbd0" it says 'drbd0'
> not defined in your config.
Hi!
You need to use drbd resource name in command line and not the device name.
If you have defined in drbd.conf:
resource mydrbd {
...
}
then you should run "drbdadm primary mydrbd" or you can run
"drbdadm primary all" to switch all configured resources to primary state.