Go to main content

Oracle® MiniCluster S7-2 Administration Guide

Exit Print View

Updated: October 2021
 
 

Enable or Disable Shared Storage (CLI)

Use this procedure to enable or disable access to the shared storage and NFS for a DB VM group or an App VM group. For more details about this administrative task, see Enable or Disable NFS (BUI).

The shared storage provides storage space for any storage purpose, and is available to all VMs within a group.


Caution

Caution  -  Systems deployed in highly secured environments should disable shared storage. For more information, refer to the Oracle MiniCluster S7-2 Security Guide.


  1. To see if shared storage is currently enabled or disabled, view the DB VM group or App VM group in the BUI.
    • For a DB VM group – Go to Database → Virtual Machine Group Profile.

    • For an App VM group – Go to Application → Virtual Machine Group Profile.


    Note -  You can also enable or disable the shared storage from those BUI pages.
  2. Log into the mcmu CLI as a primary admin, such as mcinstall.

    See Log in to the MCMU CLI.

  3. Identify the VMgroupID for the group you plan to enable or disable shared storage.

    Perform one of these commands:

    • To obtain the VMgroupID for an App VM group:

      % mcmu tenant -A -l
      Listing APP VM Group...
      
      Status : Active
      EditStatus :
      Description :
      deletable : True
      progress : False
      VMgroupName : ff18
      editable : True
      VMgroupID : 2
      
    • To obtain the VMgroupID for a DB VM group:

      % mcmu tenant -P -l
      Listing DB VM Group Profile..
      Status : Active
      EditStatus :
      Description : Initial DB VM Group
       - NORMAL redundancy
       - Shared Storage
       - CIS
      deletable : True
      progress : False
      VMgroupName : dbgp1
      editable : True
      VMgroupID : 1 
  4. Enable or disable the shared storage.

    When you perform this step, the mcmu CLI toggles the setting. In other words, if shared storage is enabled, this command disables it. If it is disabled, this command enables it.

    Use this syntax:

    mcmu tenant -X -t VMgroupID

    where:

    • X – Is either G for a DB VM group, or V for an app VM group.

    • VMgroupID – Is the VM group ID that you identified in the previous step.

    % mcmu tenant -V -t 2
    Getting APP VM Group...
    
    Shared Storage Enabled: True
    Are you sure you want to toggle shared storage for this VM Group?
    Enter Y/N (N): Y
    INFO SSH login to mc-n1.us.example.com successfully.
    INFO:MCMU.controllers.common.pexpect_util:SSH login to 
    mc-n1.us.example.com successfully.
    INFO su to user root successfully.
    INFO:MCMU.controllers.common.pexpect_util:su to user root successfully.
    INFO zlogin to ff18-vm1-mc5qt-n1 successful.
    INFO:MCMU.controllers.common.pexpect_util:zlogin to ff18-vm1-mc5qt-n1 
    successful.
    INFO SSH login to mc-n1.us.example.com successfully.
    INFO:MCMU.controllers.common.pexpect_util:SSH login to 
    mc-n1.us.example.com successfully.
    INFO su to user root successfully.
    INFO:MCMU.controllers.common.pexpect_util:su to user root successfully.
    INFO zlogin to ff18-vm1-mc5qt-n2 successful.
    INFO:MCMU.controllers.common.pexpect_util:zlogin to ff18-vm1-mc5qt-n2 
    successful.
    toggle operation completed successfully
  5. Verify the change by repeating Step 1.
  6. Access the shared file system by logging into the VM and perform Oracle Solaris commands.

    To access the file system:

    % cd /sharedstore

    To list contents of the directory:


    Note -  The /sharedstore directory is empty until you put software in the directory.
    % ls /sharedstore
    Downloads      Music     Pictures    Presentations   Templates   Texts   Videos

Related Information