Document navigation

Issue/Introduction

This article describes how to troubleshoot a VM instance that cannot start after its host restarts. It applies to the initial diagnosis and resolution of similar issues in ZStack Cloud.

Environment

  • Product: ZCF
  • Component: Cloud
  • Version: 3.x-5.5.30

Symptoms

The VM instance cannot start normally, and local primary storage is disconnected.

Possible causes

After the host restarts, the local storage directory is not mounted to the corresponding disk.

Resolution

  1. Run the following commands in sequence on the corresponding host to manually mount local storage to the corresponding directory:
Note:

Before running the commands, confirm the host where the local storage resides and the disk UUID, and replace $DISK_UUID with the actual value.

  # Obtain the disk UUID
  [root@localhost ~]# ll /dev/disk/by-uuid/
  # Mount the directory
  [root@localhost ~]# mount /dev/disk/by-uuid/$DISK_UUID /zstack_ps
  1. Run the following commands in sequence on the corresponding host to configure automatic mounting:
  # Obtain the disk UUID
  [root@localhost ~]# echo sleep 5 >> /etc/rc.d/rc.local
  [root@localhost ~]# echo mount /dev/disk/by-uuid/$DISK_UUID /zstack_ps >> /etc/rc.d/rc.local
  # Check the mount status
  [root@localhost ~]# df -Th
VM instance cannot start after its host restarts | 故障排查 · KB | ZStack Resource Center