- Cause:
Attaching a volume to a VM instance is a dynamic operation, while the /etc/fstab configuration file for the VM instance is static. After attaching the volume to the VM instance, you modify the fstab file of the VM instance, encapsulate the VM instance as an image online, and use this image to create another new VM instances. The fstab file does not contain the corresponding mount information so that the created VM instances are hung and cannot be started,
- Solution:
- After the Linux VM instance attaches the volume, we recommend that you do not modify the /etc/fstab file.
- Recommended method:
- Go to /etc/rc.d/rc.local, and run mount to mount the volume:
# chmod +x /etc/rc.d/rc.local # mount -U <the file system UUID> <the target mount path>
Note: We recommend that you use the file system UUID of the volume to mount the VM instance rather than use the drive letter similar to /dev/vdb.
- Go to /etc/rc.d/rc.local, and run mount to mount the volume:
After attaching a volume to a Linux VM instance, modify the /etc/fstab file of the VM instance. When encapsulating the VM instance as an image online and using this image to create other VM instances, the created VM instances will be hung a Print
Created by: ZStack Support
Modified on: Mon, 28 Mar, 2022 at 11:43 AM
Did you find it helpful? Yes No
Send feedbackSorry we couldn't be helpful. Help us improve this article with your feedback.