<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Thu, Nov 27, 2014 at 4:43 PM, Zdenek Kabelac <span dir="ltr"><<a href="mailto:zkabelac@redhat.com" target="_blank">zkabelac@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span class=""><br>
Thanks!<br>
here it is:<br>
<a href="https://drive.google.com/file/d/0BwoPbcrMv8mvellaS1FtVXpqU2c/view?usp=sharing" target="_blank">https://drive.google.com/file/<u></u>d/<u></u>0BwoPbcrMv8mvellaS1FtVXpqU2c/<u></u>view?usp=sharing</a><br>
<br>
<br>
</span></blockquote>
<br>
Well yes - it shows the device is being held open - lvm2 retries to several times if the device does not get close - but it doesn't so it refuses o deactivate.<br>
<br>
So if you are sure there is no user - then maybe you have some kpartx partition this device ?<br></blockquote><div><br></div><div>No, the PV is the whole disk and the VG is composed only of this LV that uses all the PEs</div><div><br></div><div><div>[root@orapr2 ~]# pvs /dev/mapper/360a9800037543544465d424130533177</div><div>  PV                                            VG          Fmt  Attr PSize    PFree</div><div>  /dev/mapper/360a9800037543544465d424130533177 VG_AAA_TEMP lvm2 a--  1020.00m    0 </div></div><div><br></div><div><div>[root@orapr2 ~]# fdisk -l /dev/mapper/360a9800037543544465d424130533177</div><div><br></div><div>Disk /dev/mapper/360a9800037543544465d424130533177: 1073 MB, 1073741824 bytes</div><div>255 heads, 63 sectors/track, 130 cylinders</div><div>Units = cylinders of 16065 * 512 = 8225280 bytes</div><div>Sector size (logical/physical): 512 bytes / 4096 bytes</div><div>I/O size (minimum/optimal): 4096 bytes / 65536 bytes</div><div>Disk identifier: 0x00000000</div></div><div><br></div><div><div>[root@orapr2 ~]# vgdisplay -v VG_AAA_TEMP</div><div>    Using volume group(s) on command line</div><div>    Finding volume group "VG_AAA_TEMP"</div><div>  --- Volume group ---</div><div>  VG Name               VG_AAA_TEMP</div><div>  System ID             </div><div>  Format                lvm2</div><div>  Metadata Areas        1</div><div>  Metadata Sequence No  56</div><div>  VG Access             read/write</div><div>  VG Status             resizable</div><div>  MAX LV                0</div><div>  Cur LV                1</div><div>  Open LV               1</div><div>  Max PV                0</div><div>  Cur PV                1</div><div>  Act PV                1</div><div>  VG Size               1020.00 MiB</div><div>  PE Size               4.00 MiB</div><div>  Total PE              255</div><div>  Alloc PE / Size       255 / 1020.00 MiB</div><div>  Free  PE / Size       0 / 0   </div><div>  VG UUID               3sItFO-bvAo-FINS-R6Mj-Fcl7-4kF2-gmzY4M</div><div>   </div><div>  --- Logical volume ---</div><div>  LV Path                /dev/VG_AAA_TEMP/LV_AAA_TEMP</div><div>  LV Name                LV_AAA_TEMP</div><div>  VG Name                VG_AAA_TEMP</div><div>  LV UUID                azFNtf-L1CY-3rdz-OQLA-7oF4-3rMX-uWfXpH</div><div>  LV Write Access        read/write</div><div>  LV Creation host, time , </div><div>  LV Status              available</div><div>  # open                 1</div><div>  LV Size                1020.00 MiB</div><div>  Current LE             255</div><div>  Segments               1</div><div>  Allocation             inherit</div><div>  Read ahead sectors     auto</div><div>  - currently set to     256</div><div>  Block device           253:49</div><div>   </div><div>  --- Physical volumes ---</div><div>  PV Name               /dev/mapper/360a9800037543544465d424130533177     </div><div>  PV UUID               LnsWgD-XfYe-axfJ-nBgC-Gew5-jBH3-oXpiIO</div><div>  PV Status             allocatable</div><div>  Total PE / Free PE    255 / 0</div></div><div><br></div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<br>
I'd probably need to see your whole 'dmsetup table'<br>
(at least do a grep for VG_AAA_TEMP/LV_AAA_TEMP minor)</blockquote><div><br></div><div><br></div><div>[root@orapr2 ~]# dmsetup table | egrep "AAA_TEMP|360a9800037543544465d424130533177|253:4"<br></div><div><div>VG_AAA_TEMP-LV_AAA_TEMP: 0 2088960 linear 253:4 384</div><div>360a9800037543544465d424130533177: 0 2097152 multipath 4 queue_if_no_path pg_init_retries 50 retain_attached_hw_handler 1 alua 2 1 round-robin 0 4 1 66:160 1 69:192 1 133:224 1 8:288 1 round-robin 0 4 1 8:96 1 68:48 1 129:32 1 130:128 1 </div></div><div><br></div><div>It seems no sempahores to be cleaned...</div><div><div>[root@orapr2 ~]# dmsetup udevcomplete_all 1</div><div>This operation will destroy all semaphores older than 1 minutes with keys that have a prefix 3405 (0xd4d).</div><div>Do you really want to continue? [y/n]: y</div><div>0 semaphores with keys prefixed by 3405 (0xd4d) destroyed. 0 skipped.</div></div><div><br></div></div>and still</div><div class="gmail_extra"><div class="gmail_extra">[root@orapr2 ~]# lvchange -an VG_AAA_TEMP/LV_AAA_TEMP</div><div class="gmail_extra">  Logical volume VG_AAA_TEMP/LV_AAA_TEMP in use.</div><div><br></div><div>;-(</div></div></div>