Go to main content

Oracle® MiniCluster S7-2 Administration Guide

Exit Print View

Updated: October 2021
 
 

Add an External NFS to a VM Group (BUI)

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).

  1. (If needed) Check what the NFS server is sharing:
    1. Log into the mcmu CLI as a primary admin such as mcinstall.

      See Log in to the MCMU CLI.

    2. Ensure that an NFS is available form a server in your environment.

      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
    3. To check the version of the NFS service provided by the NFS server, type:
      % 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.

  2. Access the MCMU BUI as a primary admin, such as mcinstall.

    See Log in to the MCMU BUI.

  3. Navigate to the group profiles page.
    • 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.

  4. Click Edit.

    The Edit Virtual Machine Group Profile page is displayed. Locate this section:


    image:A screen shot showing the edit VM group profile page.
  5. Enter the required information.
    • 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.

  6. At the bottom of the screen, click Save.
  7. When prompted, click Done.
  8. In the DB VM Group Profiles page, click Edit.
  9. At the bottom of the screen, click Apply and confirm the change.
  10. When prompted, click Done.
  11. Change the permissions on the mount point in the VMs.

    You might need to lighten the permissions on the mount point so that users can access the file system.

    1. Log into a VM.

      See Accessing VMs.

    2. Assume the root role.
      % su root
      password: **************
    3. List the mount point permissions.

      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
    4. Change permissions on the mount point, and list the permissions.

      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
    5. Repeat Step 11 for each VM in the group.
  12. To access the network file system, log into the VM and perform Oracle Solaris commands.

    To access the file system:

    % cd /my_mountpoint

    List contents of the directory:

    % ls /my_mountpoint
    Downloads   Music   Pictures   Presentations  Templates   Texts  Videos

Related Information

Oracle Solaris 11.4

Oracle Solaris 11.3