PowerPath/Linux:尝试将设备重命名为 emcpowerX 时出现“ERROR: can not use a target device that is in use”

Resumen: PowerPath/Linux:尝试将设备重命名为 emcpowerX 时出现“ERROR: can not use a target device that is in use”

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

与伪名称 emcpowerX 关联的旧设备已被删除,当尝试将名为 emcpowerY(在此例中为 emcpowerb)的新设备重命名为 emcpowerX 时抛出错误“ERROR: can not use a target device that is in use”。

Causa

在此情况下的问题:

— 从后端删除了与 emcpowerX 关联的旧设备,而没有先从 PowerPath 级别删除设备。
— 在卸载 v7.2 后没有清理旧的 PowerPath 实例就安装了 PowerPath v7.3。

即使在尝试释放伪名称并多次重新启动后,emcpowerX 条目仍在 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



Resolución

在这种情况下,手动清理 PowerPath 数据库可以解决问题,并且可以根据需要重命名设备:
 

1) 确保所有 I/O 均已停止,并且阵列上的所有文件系统均已卸载。

2) 停止 PowerPath。

3) 删除旧的配置文件 /etc/emcp_devicesDB.dat/etc/emcp_devicesDB.idx

4) 删除 /etc/emc/archive 目录。

5) 启动 PowerPath。

6) 保存新配置 (powermt save)。

提醒:始终建议先从 PowerPath 级别删除设备,然后再从后端删除设备,以避免出现此类问题。此外,始终建议清理较旧的安装实例,以避免任何意外问题。

Productos afectados

PowerPath for Linux
Propiedades 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.