Use this procedure to add a network file system (NFS) to a DB VM group or an App VM group.
The NFS service must be at minimum NFSv4. The NFS that you add can be any whole or partial directory tree or a file hierarchy, including a single file that is shared by and NFS server.
When you add external NFS to a group, the remote file system is immediately accessible to all the VMs in the group. External NFS is only made available to VMs in a group if shared storage is enabled. See Enable or Disable NFS (BUI).
There are a variety of ways to perform this step, depending on the type of server. This is an example of an Oracle Solaris command that shows what file systems a server is sharing:
% /usr/sbin/showmount -e NFSserver_name_or_IPaddress
% rpcinfo -p NFSserver_name_or_IPaddress | egrep nfs 100003 4 tcp 2049 nfs
The second column displays the version number. You might see several lines of output. One of them must report version 4.
For a DB VM group, select the Database → Virtual Machine Group Profiles page.
For an App VM group, select the Application → Virtual Machine Group Profiles page.
The Edit Virtual Machine Group Profile page is displayed. Locate this section:
Server IP – Specify the IP address of the NFS server.
Share – Specify the NFS file system that is being shared by your NFS server. For example: /my_nfs
Mount – Specify the mount point. For example: /my_mountpoint MCMU will create the mount point and make it available to the VMs in the group.
You might need to lighten the permissions on the mount point so that users can access the file system.
See Accessing VMs.
% su root password: **************
In this example, my_mountpoint is the mount point, and the permissions are read, write, execute for the root user which doesn't allow any other users access.
# ls -ld /my_mountpoint drwx------ 2 root root 6 Oct 25 17:20 my_mountpoint
In this example, the permissions are set to read, write, and execute for the owner and group, and set to read-only for others.
# chmod 774 /my_mountpoint # ls -ld /my_mountpoint drwxrwxr-- 2 root root 2 Oct 27 09:03 my_mountpoint
To access the file system:
% cd /my_mountpoint
List contents of the directory:
% ls /my_mountpoint Downloads Music Pictures Presentations Templates Texts Videos
Oracle Solaris 11.4
Oracle Solaris 11.3