Can NOT Delete LV (in Use) Problem…

Home » CentOS » Can NOT Delete LV (in Use) Problem…
CentOS 2 Comments

We have CentOS 5.6 on DELL server. I create VG and LV on one SSD disk. after couple weeks I decide to delete it.

I unmount file system but can not delete LV. It say “in use”. I try following but still NOT work:

# lvchange -an /dev/VG0-SSD910/LV01-SSD910
LV VG0-SSD910/LV01-SSD910 in use: not deactivating
# kpartx -d /dev/VG0-SSD910/LV01-SSD910
# lvchange -an /dev/VG0-SSD910/LV01-SSD910
LV VG0-SSD910/LV01-SSD910 in use: not deactivating

Anyone have ideal how to delete it?

Thanks.

2 thoughts on - Can NOT Delete LV (in Use) Problem…

  • This might not help though if there are kpartx maps linked to that volume. In that case you can use “dmsetup ls –tree” to see if that is the case.

    Regards,
    Dennis

LEAVE A COMMENT