A Pod Fails to Be Created and Logs Show "Get DMDevice by alias: dm-* failed"
Symptom
When a Pod is created, the Pod is in the ContainerCreating status for a long time. In addition, the following error message is reported in the logs of huawei-csi-node (for details, see Viewing Huawei CSI Logs ):
check device: dm-16 is a partition device failed. error: Get DMDevice by alias:dm-* failed. error: Can not get DMDevice by alias: dm-*
Root Cause Analysis
In the DM-Multipath configuration file, the user_friendly_names parameter is not set to yes.
Solution or Workaround
Check whether the worker node where the Pod is running has volumes in use. If the node has volumes in use, migrate the Pod in use to another node.
Configure the /etc/multipath.con file by following the instructions in Checking the Host Multipathing Configuration .
Run the following command to restart the multipathing software.
systemctl reload multipathd.service systemctl restart multipathd
Restarting the multipathing software may cause I/O interruption. Ensure that the worker node where the Pod is running has no volume in use before restarting the multipathing software.