Problem
When provisioning Linux VMs on Azure, /mnt folder is automatically created and pointed to Resource Disk. In some case, we need to have more fine-grained control over /mnt folder (for instance for backward compatibility) and map Resource Disk to its sub-folder, e.g. /mnt/tmp
Solution
Azure provides fantastic support for Linux VMs called Microsoft Azure Linux Agent.
sudo service waagent restart
vi /etc/waagent.conf
# Mount point for the resource disk
ResourceDisk.MountPoint=/mnt/resources
Restart waagent service
sudo service waagent restart
No comments:
Post a Comment