On Tue, Jan 10, 2012 at 11:04 PM, Yuan Luo <yuan....@ericsson.com> wrote:
> Hi,
>
> Thanks for your reply.
>
> Node2 is DRBD primary. As I mentioned before, in another set of production 
> environment, I've successfully established DRBD(P+S) + Pacemaker and failover 
> works perfect.
> So please assume the default DRBD configuration were correct. Ebs02 is 
> primary, ebs01 is secondary. /dev/sda1 is a 300GB physical partition in both 
> nodes and is expected to create a drbd.
>
> ipworks-ebs02:~ # rcdrbd status
> drbd driver loaded OK; device status:
> version: 8.3.7 (api:88/proto:86-91)
> GIT-hash: ea9e28dbff98e331a62bcbcc63a6135808fe2917 build by phil@fat-tyre, 
> 2010-01-13 17:17:27
> m:res  cs         ro                 ds                 p  mounted  fstype
> 0:r0   Connected  Primary/Secondary  UpToDate/UpToDate  C
>
> I also modified  /etc/lvm/lvm.conf +line 35 as:
> filter = [ "a|^/dev/drbd|", "a/sda/", "a/sdb/", "r/.*/" ]
>
> Now the situation is, pv /dev/drbd0 created ok, vg ipwdg created ok, but lv 
> ipwvol created failed.
> ipworks-ebs02:~ # lvcreate -n ipwvol -L 50G ipwdg
>  WARNING: Locking disabled. Be careful! This could corrupt your metadata.
>  device-mapper: reload ioctl failed: Invalid argument
>  Aborting. Failed to activate new LV to wipe the start of it.
>
> ipworks-ebs02:~ # pvs
>  WARNING: Locking disabled. Be careful! This could corrupt your metadata.
>  PV         VG    Fmt  Attr PSize   PFree
>  /dev/sda1  ipwdg lvm2 a-   299.98G 299.98G

Ok, here is the problem: it is using the underlaying device directly
(sda1)...  It should be using /dev/drbd0 on primary, and volume group
should be invisible on the secondary.

There are some errors on your lvm.conf ... I have not time to dig into
details right now, but I hope this at least put you into the right
direction.

Ildefonso

>
> ipworks-ebs02:~ # pvdisplay
>  WARNING: Locking disabled. Be careful! This could corrupt your metadata.
>  --- Physical volume ---
>  PV Name               /dev/sda1
>  VG Name               ipwdg
>  PV Size               299.99 GB / not usable 2.62 MB
>  Allocatable           yes
>  PE Size (KByte)       4096
>  Total PE              76796
>  Free PE               76796
>  Allocated PE          0
>  PV UUID               iEopx7-vr09-FKGx-wUWq-hXLm-OVKn-4k3Lq5
>
> ipworks-ebs02:~ # vgdisplay
>  WARNING: Locking disabled. Be careful! This could corrupt your metadata.
>  --- Volume group ---
>  VG Name               ipwdg
>  System ID
>  Format                lvm2
>  Metadata Areas        1
>  Metadata Sequence No  7
>  VG Access             read/write
>  VG Status             resizable
>  Clustered             yes
>  Shared                no
>  MAX LV                0
>  Cur LV                0
>  Open LV               0
>  Max PV                0
>  Cur PV                1
>  Act PV                1
>  VG Size               299.98 GB
>  PE Size               4.00 MB
>  Total PE              76796
>  Alloc PE / Size       0 / 0
>  Free  PE / Size       76796 / 299.98 GB
>  VG UUID               AATSOL-Fnua-HNwR-n8Ph-waHt-WkMj-k3P7Zy
>
> lvs command output: empty
> Of course ;) no lv is created.
>
> This problem is really a little tricky. Thanks in advance.
>
> BRs,
> Yuan Luo
>
> P.S. I attached the verbose info of the lvcreate:
> The following line is suspecious, but I'm not sure about the root cause. Is 
> it related with Kernel? But in another completely same configured 
> environment, lv creation worked ...
_______________________________________________
drbd-user mailing list
drbd-user@lists.linbit.com
http://lists.linbit.com/mailman/listinfo/drbd-user

Reply via email to