[DRBD-user] problem on create lvm upon drbd device

Joe,Yu smartjoe at gmail.com
Wed Jan 7 22:28:24 CET 2009

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


Hello list,

I met a problem when create lvm upon drbd device drbd8.3.0 on RHEL5.2.
Appreciate if anone can give me a clue.
btw: i have config two nodes tightly following the online manual. :-)

============================
*Below are the basic environment:*

[root at www ~]# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 5.2 (Tikanga)
[root at www ~]# uname -a
Linux www 2.6.18-92.el5 #1 SMP Tue Apr 29 13:16:15 EDT 2008 x86_64 x86_64
x86_64 GNU/Linux
[root at www ~]# rpm -qa|grep drbd
drbd-km-2.6.18_92.el5-8.3.0-3.x86_64
drbd-debuginfo-8.3.0-3.x86_64
drbd-8.3.0-3.x86_64

=============================
*Below are two nodes' /proc/drbd*

[root at www ~]# cat /proc/drbd
version: 8.3.0 (api:88/proto:86-89)
GIT-hash: 9ba8b93e24d842f0dd3fb1f9b90e8348ddb95829 build by root at www,
2009-01-07 23:50:57

 1: cs:Connected ro:Primary/Secondary ds:UpToDate/UpToDate C r---
    ns:10001208 nr:0 dw:160 dr:10002776 al:1 bm:611 lo:0 pe:0 ua:0 ap:0 ep:1
wo:b oos:0

[root at whitetux ~]# cat /proc/drbd
version: 8.3.0 (api:88/proto:86-89)
GIT-hash: 9ba8b93e24d842f0dd3fb1f9b90e8348ddb95829 build by root at whitetux,
2009-01-08 02:07:46

 1: cs:Connected ro:Secondary/Primary ds:UpToDate/UpToDate C r---
    ns:0 nr:10001208 dw:10001208 dr:0 al:0 bm:611 lo:0 pe:0 ua:0 ap:0 ep:1
wo:d oos:0
[root at whitetux ~]#
===================================
*Below is the drbd.conf  for two nodes:*

global {
  usage-count yes;
}
common {
  protocol C;
}
resource r0 {
  on www {
    device    /dev/drbd1;
    disk      /dev/sdb1;
    address   192.168.1.102:7789;
    meta-disk internal;
  }
  on whitetux {
    device    /dev/drbd1;
    disk      /dev/hda4;
    address   192.168.1.115:7789;
    meta-disk internal;
  }
}
===================================
*Below are the error information when create LVM*

[root at www ~]# pvcreate /dev/drbd1
  Physical volume "/dev/drbd1" successfully created
[root at www ~]# vgcreate vg_drbd /dev/drbd1
  Found duplicate PV Wt00IRhWTvGcAUCOfhVUeRdym5U2Dz5C: *using /dev/sdb1 not
/dev/drbd1*
  Found duplicate PV Wt00IRhWTvGcAUCOfhVUeRdym5U2Dz5C: *using /dev/drbd1 not
/dev/sdb1*
  Found duplicate PV Wt00IRhWTvGcAUCOfhVUeRdym5U2Dz5C: *using /dev/sdb1 not
/dev/drbd1*
  Found duplicate PV Wt00IRhWTvGcAUCOfhVUeRdym5U2Dz5C: *using /dev/drbd1 not
/dev/sdb1*
  Volume group "vg_drbd" successfully created
[root at www ~]# lvcreate --name lv_drbd --size 4G vg_drbd
  Found duplicate PV Wt00IRhWTvGcAUCOfhVUeRdym5U2Dz5C: *using /dev/sdb1 not
/dev/drbd1*
  *device-mapper: reload ioctl failed: Invalid argument*
  *Aborting. Failed to activate new LV to wipe the start of it.*
===================================


-- 
Joe Yu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linbit.com/pipermail/drbd-user/attachments/20090108/a906ca96/attachment.htm>


More information about the drbd-user mailing list