H Setting Up Access to the ZFS Storage Appliance for a vServer

This section describes how to set up access to the ZFS Storage Appliance for a vServer.

The procedure to enable vServers to access ZFS shares involves the following steps:

  1. Identifying the IP Address of the vServer

  2. Identifying the ipmp4 Address of the Storage Appliance

  3. Creating and Configuring a Share on the ZFS Storage appliance

  4. Mounting the Share in the File System of the vServer

H.1 Identifying the IP Address of the vServer

To configure a vServer for accessing the storage appliance, you must know the IP address of the vServer in the IPoIB-vserver-shared-storage network.

Note:

For a vServer to be able to access ZFS shares, the IPoIB-vserver-shared-storage network should have been assigned to the vServer as described in step 16 of Section 9.2.8, "Creating vServers."

  1. Log in to Exalogic Control as a Cloud User.

  2. From the navigation pane on the left, select vDC Management.

  3. Under vDC Accounts, expand the name of your account, and select the vServer for which you want to configure access to the storage appliance.

    The vServer dashboard is displayed.

  4. Select the Network tab, and note the IP address of the vServer for the IPoIB-vserver-shared-storage network.

H.2 Identifying the ipmp4 Address of the Storage Appliance

To mount a ZFS share on the vServer, you must identify the IP address of the storage appliance on the IPoIB-vserver-shared-storage network, also known as the ipmp4 address.

  1. SSH to the ZFS Storage Appliance as root.

  2. Run the following command:

    storage_node> configuration net interfaces show
    
  3. From the output of the command, note the ipmp4 address.

    slce23sn01:> configuration net interfaces show
    Interfaces:
     
    INTERFACE   STATE    CLASS LINKS       ADDRS                  LABEL
    igb0        up       ip    igb0        10.244.64.60/21        igb0
    igb1        offline  ip    igb1        10.244.64.61/21        igb1
    ipmp1       up       ipmp  pffff_ibp1  192.168.10.15/24       ipmp1
                               pffff_ibp0
    ipmp2       up       ipmp  p8001_ibp0  192.168.20.9/24        IB_IF_8001
                               p8001_ibp1
    ipmp3       up       ipmp  p8002_ibp0  192.168.21.9/24        IB_IF_8002
                               p8002_ibp1
    ipmp4       up       ipmp  p8005_ibp0  172.17.0.9/16          IB_IF_8005
                               p8005_ibp1
    p8001_ibp0  up       ip    p8001_ibp0  0.0.0.0/8              ibp0.8001
    p8001_ibp1  up       ip    p8001_ibp1  0.0.0.0/8              ibp1.8001
    p8002_ibp0  up       ip    p8002_ibp0  0.0.0.0/8              ibp0.8002
    p8002_ibp1  up       ip    p8002_ibp1  0.0.0.0/8              ibp1.8002
    p8005_ibp0  up       ip    p8005_ibp0  0.0.0.0/8              ibp0.8005
    p8005_ibp1  up       ip    p8005_ibp1  0.0.0.0/8              ibp1.8005
    pffff_ibp0  up       ip    pffff_ibp0  0.0.0.0/8              ibp0
    pffff_ibp1  up       ip    pffff_ibp1  0.0.0.0/8              ibp1
    

    In the example output, the ipmp4 address is 172.17.0.9.

H.3 Creating and Configuring a Share on the ZFS Storage appliance

Create a share as described in the "Creating Custom Shares" section of the Exalogic Elastic Cloud Machine Owner's Guide.

H.4 Mounting the Share in the File System of the vServer

Perform the following steps to mount the share you created in the file system of the vServer:

  1. Log in to the ZFS Storage Appliance as root.

  2. Select the Shares tab, and locate the share you created.

  3. Click the edit entry icon.

    The details of the share are displayed.

  4. Click the Protocols tab.

  5. Click the plus (+) button next to NFS Exceptions, and specify the following:

    • Type: Network

    • Entity: ip_address_of_vserver/32 (in CIDR format)

    • Access mode: Read/write

    • Charset: default

    • Root Access: Selected

  6. Click the Apply button near the upper right corner.

  7. SSH to any compute node on the Exalogic machine.

  8. SSH to the vServer by using the IP address that you noted in the Identifying the IP Address of the vServer section.

  9. Create a directory that will serve as the mount point for the ZFS share:

    mkdir mount_point_directory
    

    Example:

    mkdir /root/test1
    
  10. Mount the share on the vServer:

    # mount ipmp4_address_of_storage_appliance:/share_directory mount_point_directory
    

    Example:

    # mount 172.17.0.9:/export/testshare /root/test1