<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:m="http://schemas.microsoft.com/office/2004/12/omml" 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 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";
mso-fareast-language:EN-US;}
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-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri","sans-serif";
mso-fareast-language:EN-US;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.WordSection1
{page:WordSection1;}
--></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=FR-CA link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span lang=EN-CA>Hi guys,<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-CA><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-CA> Some times when we delete volumes, I’ve noticed that tgtd seems to keep a lock on the LVM.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-CA>I’ve been able to force delete the target from tgtd but I still cannot delete the logical volume. Seems <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-CA>like a bug in tgtd. Did you ever experience this behavior?<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-CA><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-CA>Thank you,<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-CA><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-CA>Dave<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-CA><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-CA>We can see the session was disconnected from the compute (well, maybe not totally but we don’t<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-CA>see it any longer in iscsiadm sessions…<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-CA>[root@compute05 ~]# iscsiadm -m session<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-CA>tcp: [21] 10.130.0.11:3260,1 iqn.2010-10.org.openstack:volume-892ef2b5-57b8-4c2e-9e54-050da70418b1<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-CA><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-CA>But in tgtd, it’s shown as still connected:<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-CA>[root@cinder01 ~]# tgt-admin -s | less<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-CA>Target 33: iqn.2010-10.org.openstack:volume-4bd794a3-611c-444f-9ca7-891f0e471b41<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-CA> System information:<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-CA> Driver: iscsi<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-CA> State: ready<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-CA> I_T nexus information:<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-CA> I_T nexus: 63<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-CA> Initiator: iqn.1994-05.com.redhat:cce2bb2d6ea5<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-CA> Connection: 0<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-CA> IP Address: 10.1.2.3<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-CA> </span>LUN information:<o:p></o:p></p><p class=MsoNormal> LUN: 0<o:p></o:p></p><p class=MsoNormal> Type: controller<o:p></o:p></p><p class=MsoNormal> SCSI ID: IET 00210000<o:p></o:p></p><p class=MsoNormal> <span lang=EN-CA>SCSI SN: beaf330<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-CA> Size: 0 MB, Block size: 1<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-CA> Online: Yes<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-CA> Removable media: No<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-CA> Prevent removal: No<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-CA> Readonly: No<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-CA> Backing store type: null<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-CA> Backing store path: None<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-CA> Backing store flags:<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-CA> LUN: 1<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-CA> Type: disk<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-CA> SCSI ID: IET 00210001<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-CA> SCSI SN: beaf331<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-CA> Size: 107374 MB, Block size: 512<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-CA> Online: Yes<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-CA> Removable media: No<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-CA> Prevent removal: No<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-CA> Readonly: No<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-CA> Backing store type: rdwr<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-CA> Backing store path: /dev/cinder-volumes/volume-4bd794a3-611c-444f-9ca7-891f0e471b41<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-CA> Backing store flags:<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-CA> Account information:<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-CA> </span>ACL information:<o:p></o:p></p></div></body></html>