[DRBD-user] drbd lost lvm configuration

Digimer lists at alteeve.ca
Tue Jan 19 03:08:34 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.


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.

> 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