Introduction
Oracle Cloud Infrastructure (OCI) File Storage Service provides a fully managed, scalable file system that enables you to store and access data on-demand in the cloud. It is ideal for applications that require file-based storage with shared access across multiple compute instances. With OCI File Storage, you can manage your data in the cloud like a traditional file system, using protocols like NFS (Network File System), making it simple to integrate into existing workflows and applications. In this blog, I have highlighted the procedure to do the following to create and mount a file storage system to a compute instance and verify the availability of the file storage system.
Prerequisites
- Access to the OCI console.
- A VCN with internet connectivity.
- A compute instance.
For this procedure, I created a VCN fs-vcn-01 with two ingress rules TCP traffic for ports 2048-2050 and 111.
- In this section, we will create file system storage. Click the navigation button to open the OCI Services menu and click on Storage. Under File Storage, click File Systems.
Click Create Filesystem to create a new filesystem and under Export Information, click Edit Details and change the export path to an easy-to-remember name.
Under-mount target Information, click edit details, and click create new mount target, select the VCN you created for Virtual Cloud Network. Choose Public Subnet-YOUR_VCN_NAME (Regional) for Subnet.
The OCI console will show your File System details. Under Exports, click your mount target name under Mount Target. In the Mount Target Details page, note down the IP Address.
We now have a file system storage created. Next, use your SSH key pair to connect to your compute instance and mount the file system. I made a new VM demo-fs-01 for practice.
Using the navigation button, click Storage -> File Storage -> File Systems. Click on the newly created file system. Under Exports, you'll see the mount target name under Mount Target. Click on the mount target name, then the Action icon on the right, and select View Details.
Execute the mount the commands to mount the new filesystem.
Verify the newly created file system.
Before mounting the new NFS filesystem
After mounting the new filesystem.