Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.
I'm trying to setup a single "backup" node as the failover for two
front-end nodes, each with a separate resource. If either production
node fails, the backup server should become primary on its resource.
This means the backup node will have two resources and each front-end
node will only have one.
Here's how I tried to set it up. In this config snippet, test01 and
test02 are the front-end production nodes and hyperaxe is the solitary
backup node. I'm using the drbd-utils package that ships with Ubuntu
Hardy (8.0.11) and whatever version of the module is part of the
2.6.24-19 kernel.
-------------------------------------------------------------------------------------------
resource mysql {
on test01 {
disk /dev/vg0/mysql_data;
device /dev/drbd0;
address 10.99.99.1:7788;
meta-disk internal;
}
on hyperaxe {
disk /dev/vg0/mysql_data;
device /dev/drbd0;
address 10.99.99.3:7788;
meta-disk internal;
}
}
resource www {
on test02 {
disk /dev/vg0/www;
device /dev/drbd1;
address 10.99.99.2:7789;
meta-disk internal;
}
on hyperaxe {
disk /dev/vg0/www;
device /dev/drbd1;
address 10.99.99.3:7789;
meta-disk internal;
}
}
-------------------------------------------------------------------------------------------
When I try to set up the resources using that config, I get this error:
root at test01:~# drbdadm create-md mysql
/etc/drbd.conf:32: in resource www, on test02 { ... } ... on hyperaxe { ... }:
There are multiple host sections for the peer.
Maybe misspelled local host name 'test01'?
/etc/drbd.conf:32: in resource www, there is no host section for this host.
Missing 'on test01 {...}' ?
Is what I'm trying to do not possible? Or am I just doing it wrong?
Thanks!
-Ben