Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Question
Thursday, August 29, 2019 6:10 PM
Hello,
How do you change the /mnt/resource file system mount point name on Azure RHEL linux system?
Thank you.
All replies (2)
Friday, August 30, 2019 10:37 AM
HI,
Are you looking to Change the "/mnt/resource" to some other directory?
We can do that.
Settings for that temporary disk is managed by linux agent in the file /etc/waagent.conf
Settings specific to the temp disk is listed here. That disk is called as the resource disk in that file.
# Format if unformatted. If 'n', resource disk will not be mounted.
ResourceDisk.Format=y
# File system on the resource disk
# Typically ext3 or ext4. FreeBSD images should use 'ufs2' here.
ResourceDisk.Filesystem=ext4
# Mount point for the resource disk
ResourceDisk.MountPoint=/mnt/resource
# Create and use swapfile on resource disk.
ResourceDisk.EnableSwap=y
# Size of the swapfile.
ResourceDisk.SwapSizeMB=2048
# Comma-seperated list of mount options. See man(8) for valid options.
ResourceDisk.MountOptions=None
In the file chnage the value for "ResourceDisk.MountPoint" to a new directory.
Then reboot the machine. After that you can issue df -h to see that the resource disk is attached to the new directory.
Note that data stored in resource disk can be lost during reboot. So the temporary and swap data only has to be stored on that.
You can also disable the resource disk creation.
Also let me know your end goal so that i can suggest the best solution.
For the benefit of the community, Please click on "mark as answer" if this reply solves your problem.
Wednesday, September 11, 2019 9:45 AM
Hello,
Do you have any update on the issue?
Just checking in to see if you got a chance to check the previous reply.
If the suggested answer has solved your query, do click on "Mark as Answer" and “Vote as Helpful” on the post that helps you, this can be beneficial to other community members.
Thanks.