Hi all,
I want to remove some multipath device without rebooting our server.
When I run the below command, I'll face with "map in use" error:
multipath -f {Multipath Alias}
Also I've checked the below command but it doesn't work:
dmsetup remove -f
device-mapper: remove ioctl on * failed: Device or resource busy
Command failed
When I've checked the disks by lsof command, it seems the disks are locked by oracle user or process:
| oracle | 48814 | oracle 256u | BLK | 8,145 | 0t0 18446612238820801832 /dev/oracleasm/disks/* |
| oracle | 48814 | oracle 258u | BLK | 65,1 | 0t0 18446612238800092520 /dev/oracleasm/disks/* |
| oracle | 48814 | oracle 259u | BLK | 67,1 | 0t0 18446612238820564264 /dev/oracleasm/disks/* |
| oracle | 48814 | oracle 261u | BLK | 65,33 | 0t0 18446612238959295848 /dev/oracleasm/disks/* |
| oracle | 48814 | oracle 264u | BLK | 252,16 | 0t0 18446612238800089320 /dev/oracleasm/disks/* |
| oracle | 48814 | oracle 265u | BLK | 252,17 | 0t0 18446612402307540456 /dev/oracleasm/disks/* |
Here is our OS information:
| LSB Version: | :base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch |
Distributor ID: OracleServer
| Description: | Oracle Linux Server release 6.6 |
| Release: | 6.6 |
Kernel:
3.8.13-44.1.1.el6uek.x86_64
Is there any way to resolve it without reboot or stop oracle process?