Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.
W dniu 05.09.2011 14:01, For at ll pisze: > Hi, > > I have two servers node1 and node2, I configured drbd + heartbeat v1. On > device drbd0 I created lvm pv nad vg. I have problem when I want promote > a node2 to a new primary, because the new primary node doesn't see lvm > volume group. > On the new primary node I must run vgchange -an volume_group to active. > How I can do that automaticly? > > For at ll Info about error message in log file: ResourceManager[8879]: 2011/09/05_14:06:52 info: Acquiring resource group: centos-drbd1 IPaddr::1.1.1.100/24/eth1 drbddisk Filesystem::/dev/vgdrbd/baza::/var/lib/pgsql::ext3 postgresql IPaddr[8906]: 2011/09/05_14:06:52 INFO: Resource is stopped ResourceManager[8879]: 2011/09/05_14:06:52 info: Running /etc/ha.d/resource.d/IPaddr 1.1.1.100/24/eth1 start IPaddr[9004]: 2011/09/05_14:06:53 INFO: Using calculated netmask for 1.1.1.100: 255.255.255.0 IPaddr[9004]: 2011/09/05_14:06:53 INFO: eval ifconfig eth1:0 1.1.1.100 netmask 255.255.255.0 broadcast 1.1.1.255 IPaddr[8975]: 2011/09/05_14:06:53 INFO: Success ResourceManager[8879]: 2011/09/05_14:06:53 info: Running /etc/ha.d/resource.d/drbddisk start Filesystem[9154]: 2011/09/05_14:06:53 WARNING: Couldn't find device [/dev/vgdrbd/baza]. Expected /dev/??? to exist Filesystem[9143]: 2011/09/05_14:06:53 INFO: Resource is stopped ResourceManager[8879]: 2011/09/05_14:06:53 info: Running /etc/ha.d/resource.d/Filesystem /dev/vgdrbd/baza /var/lib/pgsql ext3 start Filesystem[9229]: 2011/09/05_14:06:53 INFO: Running start for /dev/vgdrbd/baza on /var/lib/pgsql Filesystem[9229]: 2011/09/05_14:06:53 ERROR: Couldn't find device [/dev/vgdrbd/baza]. Expected /dev/??? to exist Filesystem[9218]: 2011/09/05_14:06:53 ERROR: Illegal argument ResourceManager[8879]: 2011/09/05_14:06:53 ERROR: Return code 2 from /etc/ha.d/resource.d/Filesystem ResourceManager[8879]: 2011/09/05_14:06:53 CRIT: Giving up resources due to failure of Filesystem::/dev/vgdrbd/baza::/var/lib/pgsql::ext3 ResourceManager[8879]: 2011/09/05_14:06:53 info: Releasing resource group: centos-drbd1 IPaddr::1.1.1.100/24/eth1 drbddisk Filesystem::/dev/vgdrbd/baza::/var/lib/pgsql::ext3 postgresql ResourceManager[8879]: 2011/09/05_14:06:53 info: Running /etc/init.d/postgresql stop ResourceManager[8879]: 2011/09/05_14:06:53 ERROR: Return code 1 from /etc/init.d/postgresql ResourceManager[8879]: 2011/09/05_14:06:54 info: Retrying failed stop operation [postgresql] ResourceManager[8879]: 2011/09/05_14:06:54 info: Running /etc/init.d/postgresql stop ResourceManager[8879]: 2011/09/05_14:06:54 ERROR: Return code 1 from /etc/init.d/postgresql ResourceManager[8879]: 2011/09/05_14:06:55 info: Retrying failed stop operation [postgresql]