Hello list,<br><br>I met a problem when create lvm upon drbd device drbd8.3.0 on RHEL5.2. Appreciate if anone can give me a clue.<br>btw: i have config two nodes tightly following the online manual. :-)<br><br>============================<br>
<b>Below are the basic environment:</b><br><br>[root@www ~]# cat /etc/redhat-release<br>Red Hat Enterprise Linux Server release 5.2 (Tikanga)<br>[root@www ~]# uname -a<br>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<br>
[root@www ~]# rpm -qa|grep drbd<br>drbd-km-2.6.18_92.el5-8.3.0-3.x86_64<br>drbd-debuginfo-8.3.0-3.x86_64<br>drbd-8.3.0-3.x86_64<br><br>=============================<br><b>Below are two nodes' /proc/drbd</b><br><br>[root@www ~]# cat /proc/drbd<br>
version: 8.3.0 (api:88/proto:86-89)<br>GIT-hash: 9ba8b93e24d842f0dd3fb1f9b90e8348ddb95829 build by root@www, 2009-01-07 23:50:57<br><br> 1: cs:Connected ro:Primary/Secondary ds:UpToDate/UpToDate C r---<br> 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<br>
<br>[root@whitetux ~]# cat /proc/drbd<br>version: 8.3.0 (api:88/proto:86-89)<br>GIT-hash: 9ba8b93e24d842f0dd3fb1f9b90e8348ddb95829 build by root@whitetux, 2009-01-08 02:07:46<br><br> 1: cs:Connected ro:Secondary/Primary ds:UpToDate/UpToDate C r---<br>
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<br>[root@whitetux ~]#<br>===================================<br><b>Below is the drbd.conf for two nodes:</b><br><br>global {<br> usage-count yes;<br>
}<br>common {<br> protocol C;<br>}<br>resource r0 {<br> on www {<br> device /dev/drbd1;<br> disk /dev/sdb1;<br> address <a href="http://192.168.1.102:7789">192.168.1.102:7789</a>;<br> meta-disk internal;<br>
}<br> on whitetux {<br> device /dev/drbd1;<br> disk /dev/hda4;<br> address <a href="http://192.168.1.115:7789">192.168.1.115:7789</a>;<br> meta-disk internal;<br> }<br>}<br>===================================<br>
<b>Below are the error information when create LVM</b><br><br>[root@www ~]# pvcreate /dev/drbd1<br> Physical volume "/dev/drbd1" successfully created<br>[root@www ~]# vgcreate vg_drbd /dev/drbd1<br> Found duplicate PV Wt00IRhWTvGcAUCOfhVUeRdym5U2Dz5C: <b>using /dev/sdb1 not /dev/drbd1</b><br>
Found duplicate PV Wt00IRhWTvGcAUCOfhVUeRdym5U2Dz5C: <b>using /dev/drbd1 not /dev/sdb1</b><br> Found duplicate PV Wt00IRhWTvGcAUCOfhVUeRdym5U2Dz5C: <b>using /dev/sdb1 not /dev/drbd1</b><br> Found duplicate PV Wt00IRhWTvGcAUCOfhVUeRdym5U2Dz5C: <b>using /dev/drbd1 not /dev/sdb1</b><br>
Volume group "vg_drbd" successfully created<br>[root@www ~]# lvcreate --name lv_drbd --size 4G vg_drbd<br> Found duplicate PV Wt00IRhWTvGcAUCOfhVUeRdym5U2Dz5C: <b>using /dev/sdb1 not /dev/drbd1</b><br> <b>device-mapper: reload ioctl failed: Invalid argument</b><br>
<b>Aborting. Failed to activate new LV to wipe the start of it.</b><br>===================================<br><br><br>-- <br>Joe Yu<br><br>