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

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

This article applies to This article does not apply to This article is not tied to any specific product. Not all product versions are identified in this article.

Symptoms

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

Cause

在此情况下的问题:

— 从后端删除了与 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



Resolution

在这种情况下,手动清理 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 级别删除设备,然后再从后端删除设备,以避免出现此类问题。此外,始终建议清理较旧的安装实例,以避免任何意外问题。

Affected Products

PowerPath for Linux
Article Properties
Article Number: 000189392
Article Type: Solution
Last Modified: 27 Aug 2022
Version:  5
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.