PowerPath/Linux: "ERROR: can not use a target device that is in use" which trying to rename a device to emcpowerX
Resumen: PowerPath/Linux: "ERROR: can not use a target device that is in use" which trying to rename a device to emcpowerX
Este artículo se aplica a
Este artículo no se aplica a
Este artículo no está vinculado a ningún producto específico.
No se identifican todas las versiones del producto en este artículo.
Síntomas
The old device associated with pseudo name emcpowerX was removed and when a new device named emcpowerY (emcpowerb in this case) was attempted to rename to emcpowerX, it throws the error "ERROR: can not use a target device that is in use".
Causa
What seemed to be the issue in this case:
--The old device which was associated with emcpowerX was removed from the backend without removing the device from PowerPath level first.
--The PowerPath v7.3 was installed post uninstallation of v7.2 without performing cleanup of the older instance of PowerPath.
Even after trying to release the pseudo and multiple reboots, the emcpowerX entry was still getting listed under usedpseudos:
[root@xxxxx ~]# emcpadm getusedpseudos
PowerPath pseudo device names in use:
Pseudo Device Name Major# Minor#
emcpowerX 120 0
emcpowerb 120 16
emcpowerc 120 32
[root@xxxxxx ~]# emcpadm renamepseudo -s emcpowerb -t emcpowerX
<ERROR: can not use a target device that is in use>
--The old device which was associated with emcpowerX was removed from the backend without removing the device from PowerPath level first.
--The PowerPath v7.3 was installed post uninstallation of v7.2 without performing cleanup of the older instance of PowerPath.
Even after trying to release the pseudo and multiple reboots, the emcpowerX entry was still getting listed under usedpseudos:
[root@xxxxx ~]# emcpadm getusedpseudos
PowerPath pseudo device names in use:
Pseudo Device Name Major# Minor#
emcpowerX 120 0
emcpowerb 120 16
emcpowerc 120 32
[root@xxxxxx ~]# emcpadm renamepseudo -s emcpowerb -t emcpowerX
<ERROR: can not use a target device that is in use>
Resolución
In this case, manually cleaning up the PowerPath Database resolved the issue and the device could be renamed as per required:
1) Make sure all I/O is stopped and all of the file systems to the array are unmounted.
2) Stop PowerPath.
3) Remove the old config files /etc/emcp_devicesDB.dat and /etc/emcp_devicesDB.idx
4) Remove the /etc/emc/archive directory.
5) Start PowerPath.
6) Save the new configuration (powermt save).
NOTE: It's always recommended to remove the device from the PowerPath level first and then from the backend to avoid any kind of issues like this. Also, its always recommended to cleanup the older install instance in order to avoid any unexpected issues.
Productos afectados
PowerPath for LinuxPropiedades del artículo
Número del artículo: 000189392
Tipo de artículo: Solution
Última modificación: 27 ago 2022
Versión: 5
Encuentre respuestas a sus preguntas de otros usuarios de Dell
Servicios de soporte
Compruebe si el dispositivo está cubierto por los servicios de soporte.