Creating an Export for a File System

On Compute Cloud@Customer, exports control how NFS clients access file systems when they connect to a mount target. A file system must have at least one export in one mount target for instances to mount the file system.

Important

When exporting file systems to overlapping CIDRs in a VCN, exports to the longest CIDR (smallest network) must be done first. For more information and an example, see My Oracle Support article PCA File system as a Service Exports (Doc ID 2823994.1).

    1. In the Compute Cloud@Customer Console navigation menu, click File Storage, then click File Systems.

    2. In the left panel, select File Systems.

    3. At the top of the page, select the compartment that contains the file system for which you plan to create an export.
    4. Click the name of the file system.

    5. Click Create Export.

    6. Enter the required information:

      • Mount Target: Select a mount target from the list.

      • Source CIDR: Enter the longest CIDR (smallest network) in the CIDR range. Starting with the smallest CIDR range (largest network) will result in an error later in the process, because CIDR ranges larger than existing ones will not be accepted. For example, 10.0.0.0/29 is a longer CIDR than 10.0.0.0/28, so 10.0.0.0/29 must be added first.

    7. Click Create Export.

      The file system export is created and the export details page is displayed.

    8. In the export details page, make note of the export path. The export path is used to mount the file system on an instance. Example:


      A screen shot showing where the file system export path is listed.
    9. In the lower panel, review the NFS Export Options.

      The NFS export options for that file system are set to the default values, which allow full access for all NFS client source connections. These defaults must be changed if you want to restrict access.

    10. Consider your next action:

  • Use the oci fs export create command and required parameters to create a new export in the specified export set, path, and file system.

    oci fs export create --export-set-id <export_set_OCID> --file-system-id <file_system_OCID> 
    --path "</pathname>" [OPTIONS]

    For a complete list of CLI commands, flags, and options, see the Command Line Reference.

  • Use the CreateExport operation to create a new export in the specified export set, path, and file system.

    For information about using the API and signing requests, see REST APIs and Security Credentials. For information about SDKs, see Software Development Kits and Command Line Interface.