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 層級移除。
--在解除安裝 PowerPath v7.2 後安裝 v7.3,但沒有清理舊的 PowerPath 例項。

即使在嘗試釋放虛擬裝置並多次重新開機後,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.