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 層級移除。
--在解除安裝 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
--移除與 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
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 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.