Reading your infos, I understand that /dev/md2 is at the same time the backing device of vg1 (pvdisplay recognizes md2 as a valid PV) and drbd1, which is nonsense. I'd rather expect you put vg1 on top of drbd1, not md2, or you create 2 resources drbd1 and drbd2 that would use vg1-vm1 and vg1-vm2 as their respective backing store. Drbd resources and pvs have their own metadata structures that potentially overlap in your current configuration, so your problems I guess...
Could you send us the results of vgdisplay -v vg1 to confirm this ?


I have created the volume group on /dev/drbd1
I think the command was   vgcreate vg1 /dev/drbd1

but now i see the vg1 is on /dev/md2 so it mess up :(


[root@wirt ~]#  vgdisplay -v vg1
   Using volume group(s) on command line
   Finding volume group "vg1"
/dev/drbd1: read failed after 0 of 4096 at 1892425662464: Input/output error /dev/drbd1: read failed after 0 of 4096 at 1892425728000: Input/output error
 /dev/drbd1: read failed after 0 of 4096 at 0: Input/output error
 /dev/drbd1: read failed after 0 of 4096 at 4096: Input/output error
   /dev/drbd1: read failed after 0 of 4096 at 0: Input/output error
 --- Volume group ---
 VG Name               vg1
 System ID
 Format                lvm2
 Metadata Areas        1
 Metadata Sequence No  6
 VG Access             read/write
 VG Status             resizable
 MAX LV                0
 Cur LV                2
 Open LV               2
 Max PV                0
 Cur PV                1
 Act PV                1
 VG Size               1.72 TiB
 PE Size               4.00 MiB
 Total PE              451189
 Alloc PE / Size       409600 / 1.56 TiB
 Free  PE / Size       41589 / 162.46 GiB
 VG UUID               TIp3Ii-v6u4-E23S-wELl-2PzS-CQ4S-zSaAwS

 --- Logical volume ---
 LV Path                /dev/vg1/vm1
 LV Name                vm1
 VG Name                vg1
 LV UUID                cQ47kS-QJHW-rVR8-3PC1-PDyD-r9md-SEwDtW
 LV Write Access        read/write
 LV Creation host, time wirt.feb.net.pl, 2013-12-17 21:41:19 +0100
 LV Status              available
 # open                 1
 LV Size                1.17 TiB
 Current LE             307200
 Segments               1
 Allocation             inherit
 Read ahead sectors     auto
 - currently set to     512
 Block device           253:0

 --- Logical volume ---
 LV Path                /dev/vg1/vm2
 LV Name                vm2
 VG Name                vg1
 LV UUID                PHNzo5-y4UW-KUBT-9hcG-HsmE-5St4-KpGWK7
 LV Write Access        read/write
 LV Creation host, time wirt.feb.net.pl, 2014-02-15 00:09:53 +0100
 LV Status              available
 # open                 1
 LV Size                400.00 GiB
 Current LE             102400
 Segments               1
 Allocation             inherit
 Read ahead sectors     auto
 - currently set to     512
 Block device           253:4

 --- Physical volumes ---
 PV Name               /dev/md2
 PV UUID               5i9EaO-fJKs-e10m-fr0i-0oC2-QaKm-OSel3f
 PV Status             allocatable
 Total PE / Free PE    451189 / 41589


_______________________________________________
drbd-user mailing list
[email protected]
http://lists.linbit.com/mailman/listinfo/drbd-user

Reply via email to