[DRBD-user] drbd lost lvm configuration

EDV at bauerfunken.de EDV at bauerfunken.de
Tue Jan 19 08:54:51 CET 2016

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


Gesendet: Dienstag, 19. Januar 2016 03:08
An: EDV at bauerfunken.de; drbd-user at lists.linbit.com
Betreff: Re: [DRBD-user] drbd lost lvm configuration

>On 18/01/16 03:37 PM, EDV at bauerfunken.de wrote:
>> Hello to all,
>>
>> I've setup a drbd cluster of 2 nodes. Both nodes use a physical
>> partition type 8e (Linux LVM) and synced by drbd successfully.
>> The response of drbd-overview seems to be ok, because it say
>> UpToDate/UpToDate on both nodes.
>>
>> Now, when I create a logical volume by pvcreate, vgcreate and lvcreate
>> on this drbd-device it create this volume successfully too, but when
>> I check the configuration by th following way:
>>
>> Primary node:
>>
>> vgchange -a n <vg>
>> drbdadm secondary <drbd>
>>
>> Secondary node:

>You need to 'drbdadm primary res' before anything can read the
>/dev/drbdX device.

Sorry,  but I did it before changing the state of this volumegroup.

So I did:

drbdadm primary <drbd>
vgchange -a y <vg>

When I do a pvscan after changing the primary node, no pv's were found
and the same, by changing the primary again.

>> vgchange -a y <vg>
>>
>> Now every configuration is lost and node 2 doesn't find any volumegroup.
>>
>> When I change primary to the old node, pvscan doesn't find any logical
>> devices.
>>
>> Any suggestions what's going wrong, or where I've made a mistake ?
>>
>> My configuration:
>>
>> vg0drbd.res
>>
>> resource vg0drbd
>>  {
>>  on filer05 {
>>   device /dev/drbd0;
>>   disk /dev/cciss/c0d0p4;
>>   address 192.168.2.10:7788;
>>   meta-disk internal;
>>  }
>>  on filer06 {
>>   device /dev/drbd0;
>>   disk /dev/cciss/c0d0p4;
>>   address 192.168.2.11:7788;
>>   meta-disk internal;
>>  }
>> }
>>
>> filter in lvm.conf
>>
>> filter = [ "a|drbd[0-9]|", "r|.*|" ]
>>
>>
> Best regards
>>
>>
>>
>> Andreas Weigand


--
Digimer
Papers and Projects: https://alteeve.ca/w/
What if the cure for cancer is trapped in the mind of a person without
access to education?



More information about the drbd-user mailing list