[DRBD-user] Drbd problem with lvm

Florian Haas f.g.haas at gmx.net
Mon Sep 5 14:57:29 CEST 2011

Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.


On 09/05/11 14:10, For at ll wrote:
> W dniu 05.09.2011 14:01, For at ll pisze:
>> Hi,
>>
>> I have two servers node1 and node2, I configured drbd + heartbeat v1.

Bad idea; use Pacemaker.

>> 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?

Take a look at the "LVM" resource agent. Better still, look here and see
how this kind of setup works in a Pacemaker context:

http://www.drbd.org/users-guide/s-lvm-pacemaker.html

Cheers,
Florian



More information about the drbd-user mailing list