Is your OnApp new VM in Read-only Mode? We can help you.
As part of our Server Virtualization Technologies and Services, we assist our customers with several OnApp queries.
Today, let us see how our support techs fix this issue.
OnApp New VM in Read-only Mode
The major symptoms we see are as follows:
- After we create the VMs go read-only.
- The lvdisplay command will show that new LVM partitions are NOT available.
- New VMs will show up in read-only mode even though everything is fine with the template.
This can happen on OnApp 5.x.x, NFS 4, Static and cloud-boot environments.
In addition, the NFS mounts on HVs and Backup servers:
Generally, OnApp 5.0, and all earlier versions do not support NFS version 4 due to some incompatibilities regarding attributes, permissions, etc.
Our Support Techs also recommend using NFS version 3.
This is because nfsv4 does some extra attr checks on files. Hence, when OnApp tries to mount the filesystem, it doesn’t have the right attributions/permissions.
377.235.95.01:/onapp/templates on /onapp/templates type nfs (rw,vers=4,addr=377.235.95.01)
How to fix OnApp New VM in Read-only Mode?
In order to solve this, the best way is to use NFS3 instead of NFS4.
Here are the steps our Support Techs employ to do the same.
1) Initially, we need to SSH to the Hypervisor in question.
2) Then we need to check the currently mounted devices. To do so, we run:
3) As we can see, here, the version in use is version 4 (vers\):
377.235.95.01:/onapp/backups on /onapp/backups type nfs (rw,vers=4,addr=377.235.95.01)
4) To switch these over to NFSv3, we run:
mount -o vers=3 nfs/path /directory
Make sure to replace nfs/path and /directory with the correct information.
So, using the example above, we run the command like this:
mount -o vers=3 377.235.95.01:/onapp/templates /onapp/backups
5) Once done, we run the mount command to make sure the NFS mount changes versions successfully.
Our output will be similar to this:
377.235.95.01:/onapp/backups on /onapp/backups type nfs (rw,vers=3,addr=377.235.95.01)
In short, we saw how our Support Techs go about New VM in Read-only Mode in OnApp.