<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns:p="urn:schemas-microsoft-com:office:powerpoint" xmlns:a="urn:schemas-microsoft-com:office:access" xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" xmlns:s="uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882" xmlns:rs="urn:schemas-microsoft-com:rowset" xmlns:z="#RowsetSchema" xmlns:b="urn:schemas-microsoft-com:office:publisher" xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet" xmlns:c="urn:schemas-microsoft-com:office:component:spreadsheet" xmlns:oa="urn:schemas-microsoft-com:office:activation" xmlns:html="http://www.w3.org/TR/REC-html40" xmlns:q="http://schemas.xmlsoap.org/soap/envelope/" xmlns:D="DAV:" xmlns:x2="http://schemas.microsoft.com/office/excel/2003/xml" xmlns:ois="http://schemas.microsoft.com/sharepoint/soap/ois/" xmlns:dir="http://schemas.microsoft.com/sharepoint/soap/directory/" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:dsp="http://schemas.microsoft.com/sharepoint/dsp" xmlns:udc="http://schemas.microsoft.com/data/udc" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:sub="http://schemas.microsoft.com/sharepoint/soap/2002/1/alerts/" xmlns:ec="http://www.w3.org/2001/04/xmlenc#" xmlns:sp="http://schemas.microsoft.com/sharepoint/" xmlns:sps="http://schemas.microsoft.com/sharepoint/soap/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:udcxf="http://schemas.microsoft.com/data/udc/xmlfile" xmlns:wf="http://schemas.microsoft.com/sharepoint/soap/workflow/" xmlns:mver="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns:mrels="http://schemas.openxmlformats.org/package/2006/relationships" xmlns:ex12t="http://schemas.microsoft.com/exchange/services/2006/types" xmlns:ex12m="http://schemas.microsoft.com/exchange/services/2006/messages" xmlns:Z="urn:schemas-microsoft-com:" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:SimSun;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:"\@SimSun";
        panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.EmailStyle18
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=EN-US link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><span style='color:#1F497D'>Hi,<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>I’m trying to debug this
problem and so far am unsuccessful. I sincerely hope someone on this list can
provide some solution. I also googled around but most of the solutions that
seemed to work for other people did not work for me.<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>I have the following setup:<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>DRBD<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>LVM<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>Multipath<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>Physical disks<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>As soon as I run drbdadm attach
resource I get the following error:<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>/dev/drbd1: Failure: (114) Lower
device is already claimed. This usually means it is mounted.<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>=========================================================================<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>Here is my drbd.conf:<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>[root@fileserver1 ~]# more
/etc/drbd.conf<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'># SAMPLE :
/usr/share/doc/drbd/drbd.conf<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>#<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>global {<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'> usage-count yes;<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>}<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>common {<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'> protocol C;<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>}<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>resource mysql {<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'> handlers {<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'> outdate-peer
"/usr/lib64/heartbeat/drbd-peer-outdater";<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'> }<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'> startup {<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'> wfc-timeout
0;<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>
degr-wfc-timeout 120; # 2 minutes.<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'> }<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'> disk {<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>
on-io-error detach;<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>
fencing resource-only;<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'> }<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'> net {<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>
timeout 60;<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>
connect-int 10;<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>
ping-int 10;<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>
max-buffers 4096;<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'> max-epoch-size
4096;<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'> }<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'> syncer {<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'> rate 500M;<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'> al-extents
257;<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'> verify-alg
crc32c;<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'> }<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'> on fileserver1 {<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>
device /dev/drbd1;<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>
disk /dev/mapper/mpath0p3;<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>
address 10.100.40.11:7789;<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'> meta-disk
/dev/mapper/mpath0p1[0];<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'> }<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'> on fileserver2 {<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>
device /dev/drbd1;<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>
disk /dev/mapper/mpath2p3;<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>
address 10.100.40.13:7789;<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'> meta-disk
/dev/mapper/mpath2p1[0];<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'> }<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>}<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>resource sqlite {<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'> handlers {<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'> outdate-peer
"/usr/lib64/heartbeat/drbd-peer-outdater";<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'> }<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'> startup {<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'> wfc-timeout
0;<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>
degr-wfc-timeout 120; # 2 minutes.<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'> }<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'> disk {<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>
on-io-error detach;<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>
fencing resource-only;<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'> }<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'> net {<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>
timeout 60;<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>
connect-int 10;<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>
ping-int 10;<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>
max-buffers 4096;<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>
max-epoch-size 4096;<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'> }<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'> syncer {<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'> rate 500M;<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'> al-extents
257;<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'> verify-alg
crc32c;<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'> }<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'> on fileserver1 {<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>
device /dev/drbd2;<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>
disk /dev/mapper/mpath0p4;<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>
address 10.100.40.11:7790;<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'> meta-disk
/dev/mapper/mpath0p2[0];<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'> }<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'> on fileserver2 {<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>
device /dev/drbd2;<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>
disk /dev/mapper/mpath2p4;<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>
address 10.100.40.13:7790;<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'> meta-disk
/dev/mapper/mpath2p2[0];<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'> }<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>}<o:p></o:p></span></p>
<div style='mso-element:para-border-div;border:none;border-bottom:double windowtext 2.25pt;
padding:0in 0in 1.0pt 0in'>
<p class=MsoNormal style='border:none;padding:0in'><span style='color:#1F497D'><o:p> </o:p></span></p>
</div>
<p class=MsoNormal><span style='color:#1F497D'>dmsetup table gives me this:<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>[root@fileserver1 ~]# dmsetup table<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>mpath0: 0 23437498368 multipath
1 queue_if_no_path 0 1 1 round-robin 0 2 1 8:32 100 8:48 100<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>mysql_volgrp-mysql: 0 392577024
linear 253:3 384<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>mpath0p4: 0 6363281250 linear
253:0 472656251<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>mpath0p3: 0 392578125 linear
253:0 80078126<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>mpath0p2: 0 41015625 linear
253:0 39062501<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>mpath0p1: 0 39062467 linear
253:0 34<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>sqlite_volgrp-sqlite: 0
6363275264 linear 253:4 384<o:p></o:p></span></p>
<div style='mso-element:para-border-div;border:none;border-bottom:double windowtext 2.25pt;
padding:0in 0in 1.0pt 0in'>
<p class=MsoNormal style='border:none;padding:0in'><span style='color:#1F497D'><o:p> </o:p></span></p>
</div>
<p class=MsoNormal><span style='color:#1F497D'>[root@fileserver1 ~]# find
/sys/block/ -path "*/holder/s*" -o -path "*/slaves/*" -ls<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'> 28238 0
lrwxrwxrwx 1 root
root 0 Jul 30
20:25
/sys/block/dm-2/sla
-0 -> ../../../block/dm-0<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'> 28243 0
lrwxrwxrwx 1 root
root 0 Jul 30
20:25
/sys/block/dm-1/sla
-0 -> ../../../block/dm-0<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'> 28244 0
lrwxrwxrwx 1 root
root 0 Jul 30
20:25
/sys/block/dm-6/sla
-4 -> ../../../block/dm-4<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'> 28245 0
lrwxrwxrwx 1 root
root 0 Jul 30
20:25
/sys/block/dm-5/sla
-3 -> ../../../block/dm-3<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'> 28246 0
lrwxrwxrwx 1 root
root 0 Jul 30
20:25
/sys/block/dm-4/sla
-0 -> ../../../block/dm-0<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'> 28247 0
lrwxrwxrwx 1 root
root 0 Jul 30
20:25
/sys/block/dm-3/sla
-0 -> ../../../block/dm-0<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'> 28248 0
lrwxrwxrwx 1 root
root 0 Jul 30
20:25
/sys/block/dm-0/sla
d -> ../../../block/sdd<o:p></o:p></span></p>
<div style='mso-element:para-border-div;border:none;border-bottom:double windowtext 2.25pt;
padding:0in 0in 1.0pt 0in'>
<p class=MsoNormal style='border:none;padding:0in'><span style='color:#1F497D'> 28249
0 lrwxrwxrwx 1 root
root 0 Jul 30
20:25
/sys/block/dm-0/sla
c -> ../../../block/sdc<o:p></o:p></span></p>
</div>
<p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>Can someone please tell me which
device has access to the block device and how I can fix it?<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>Any help is greatly appreciated.<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>Thanks,<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>Nikhil<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p>
</div>
</body>
</html>