Introduction
When working with shared disks attached to Crusoe cloud VMs, it’s important to note that these mounts do not automatically persist across reboots or restarts. To ensure the shared disk remains mounted after a system reboot, users must manually configure the system by adding an appropriate entry to the /etc/fstab file.
Prerequisites
- CLI
- Sudo (root) access
- Serial-console
- SSH access to the compute VM
- Shared disk attached to the VM
Step-by-Step Instructions
- Backup /etc/fstab file for recovery purposes
cp fstab fstab_bkup
- Enable serial-console access if not enabled already. This step is to ensure the VM can be recovered in case of boot failures due to incorrect /etc/fstab entries
- Add shared disk entry to /etc/fstab file
ubuntu@<vm>:~$sudo vi /etc/fstab
<name of shared disk> <path-to-mount> virtiofs defaults 0 0 - Verify that auto-mount works for the disk
ubuntu@<vm>:~$sudo mount -va
<path-to mount> : successfully mounted
Additional Resources