<div dir="ltr"><div class="gmail_quote">Hi,<div dir="ltr"><div><br></div><div>Recently I tried to delete 1TB disk created on top ~3TB LUN from ovirtengine.</div><div>Disk is preallocated and I backuped data to other disk so I could recreate it once again as thin volume. I couldn&#39;t remove this disk when it was attached to a VM. But once I detached it I could remove it permanently. The thing is it only disappeared from ovirtengine GUI. </div><div><br></div><div>I&#39;ve got 4 hosts with FC HBA attached to storage array and all of them are saying that this 1TB disk which should be gone is opened by all hosts simultaneously.</div><div><br></div><div>[root@wrops1 BLUE ~]# lvdisplay -m /dev/e69d1c16-36d1-4375-aaee-69f5a5ce1616/ee53af81-820d-4916-b766-5236ca99daf8<br></div><div><div>  --- Logical volume ---                                                                                                                                                                                                                      </div><div>  LV Path                /dev/e69d1c16-36d1-4375-aaee-69f5a5ce1616/ee53af81-820d-4916-b766-5236ca99daf8                                                                                                                                       </div><div>  LV Name                ee53af81-820d-4916-b766-5236ca99daf8                                                                                                                                                                                 </div><div>  VG Name                e69d1c16-36d1-4375-aaee-69f5a5ce1616                                                                                                                                                                                 </div><div>  LV UUID                sBdBRk-tNyZ-Rval-F4lw-ka6X-wOe8-AQenTb                                                                                                                                                                               </div><div>  LV Write Access        read/write                                                                                                                                                                                                           </div><div>  LV Creation host, time wrops1.blue, 2015-07-31 10:40:57 +0200                                                                                                                                                                               </div><div>  LV Status              available                                                                                                                                                                                                            </div><div>  # open                 1                                                                                                                                                                                                                    </div><div>  LV Size                1.00 TiB                                                                                                                                                                                                             </div><div>  Current LE             8192                                                                                                                                                                                                                 </div><div>  Segments               1                                                                                                                                                                                                                    </div><div>  Allocation             inherit                                                                                                                                                                                                              </div><div>  Read ahead sectors     auto                                                                                                                                                                                                                 </div><div>  - currently set to     8192                                                                                                                                                                                                                 </div><div>  Block device           253:29                                                                                                                                                                                                               </div><div>                                                                                                                                                                                                                                              </div><div>  --- Segments ---</div><div>  Logical extents 0 to 8191:</div><div>    Type                linear</div><div>    Physical volume     /dev/mapper/3600000e00d0000000024057200000000</div><div>    Physical extents    8145 to 16336</div></div><div><br></div><div>Deactivating LV doesn&#39;t work:</div><div><div>[root@wrops1 BLUE ~]# lvchange -an /dev/e69d1c16-36d1-4375-aaee-69f5a5ce1616/ee53af81-820d-4916-b766-5236ca99daf8</div></div><div><div>  Logical volume e69d1c16-36d1-4375-aaee-69f5a5ce1616/ee53af81-820d-4916-b766-5236ca99daf8 is used by another device.</div></div><div><br></div><div><br></div><div>Removing from hypervisor doesn&#39;t work either.</div><div><div>[root@wrops1 BLUE ~]# lvremove --force /dev/e69d1c16-36d1-4375-aaee-69f5a5ce1616/ee53af81-820d-4916-b766-5236ca99daf8</div></div><div><div>  Logical volume e69d1c16-36d1-4375-aaee-69f5a5ce1616/ee53af81-820d-4916-b766-5236ca99daf8 is used by another device.</div></div><div><br></div><div>I tried and rebooted one host and as soon as it booted the volume became opened once again. Lsof on all hosts doesn&#39;t give anything meaningful regarding this LV. As opposed to other LV which are used by qemu-kvm. </div><div><br></div><div>Has anyone encountered similar problem? How can I remove this LV?</div><div><br></div><div>Regards</div><div>Krzysztof Dajka</div></div>
</div><br></div>