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.
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).
-
In the Compute Cloud@Customer Console navigation menu, click File Storage, then click File Systems.
-
In the left panel, select File Systems.
- At the top of the page, select the compartment that contains the file system for which you plan to create an export.
-
Click the name of the file system.
-
Click Create Export.
-
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.
-
-
Click Create Export.
The file system export is created and the export details page is displayed.
-
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:
-
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 to restrict access.
-
Consider your next action:
-
Mount the file system from an NFS client. See Mounting File Systems on UNIX-based Instances.
-
Configure NFS options to secure the exported file system. See Setting NFS Export Options.
-
-
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.