Hello and welcome to this video on Oracle Private Cloud Appliance.
In this video, you will learn to create a file system
on Oracle Private Cloud Appliance. The File Storage service provides scalable
and secure shared network file systems. The File Storage service encrypts all
file system and snapshot data at rest. You can mount a File Storage service file
system on any compute instance in your Virtual Cloud Network (VCN).
A typical use case is the mounting of an exported file system from an NFS client
within the local network to any compute instance running on Oracle Private
Cloud Appliance. So let's begin!
I've already installed the OCI CLI so please refer to the video Configure
the OCI CLI. In addition, a mount target must
be created before creating a file system so please refer to the video managing mount targets
on Oracle Private Cloud Appliance.
Let's now create a file system from the command line.
Run the command: oci fs file-system create
--availability-domain --compartment-id
--display-name followed by the new name of the file system, in this case my-fs-01
As a result from running this command, a new file system called my-fs-01 was
created. Let's verify that the command
ran successfully by listing the file system. From the command line, run the command:
oci fs file-system list --availability-domain
followed by the availability domain name --compartment-id followed by the compartment id
The results from running the command shows that the file system named
my-fs-01 was created successfully. You can also update the file system name
by using the following command: oci fs file-system update
--file-system-id followed by the ocid of the file system
--display-name followed by the new name of the file system in this case my-fs-02.
Let's turn to the the Web GUI and see if name change was successfully.
From the navigation menu, click on File Storage then File Systems.
As you can see, the file system's name changed to my-fs-02.
Next, we'll create an export for the file system.
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.
From the file system profile, click the Create Export button.
Select the mount target, in this case, my-mt-01.
For the Source CIDR, use 10.0.0.0/29 which is a smaller network and should be used
first so an error does not occur. Click the Create Export button.
After a few moments, the File System Export is created.
Looking at the details, the export path is used to mount the file system on an
instance, for example. Let's take a look at the access details for
the NFS Export Options by clicking on the export.
And finally, as you can see, the Export's CIDR block, its access has read and write access
when mounted by users, and the squash setting which determines whether the clients
accessing the file system as root have their user id and group id remapped
to the squash user id and group id. In this example, the squash
setting is set to none. We now have a file system that
can be mounted by compute clients. For more information, please check our
additional information on Oracle Private Cloud Appliance documentation or in the Oracle
Private Cloud Appliance Learning Library.
This concludes the video. Thank you for watching.