
{"id":7818,"date":"2020-12-16T13:48:52","date_gmt":"2020-12-16T13:48:52","guid":{"rendered":"https:\/\/rax-stg-wp-aws.com\/blogs\/create-oci-file-storage-and-mount-it-on-multiple-instances\/"},"modified":"2026-11-03T19:29:04","modified_gmt":"2026-11-03T19:29:04","slug":"create-oci-file-storage-and-mount-it-on-multiple-instances","status":"publish","type":"blogs","link":"https:\/\/www.rackspace.com\/de\/blogs\/create-oci-file-storage-and-mount-it-on-multiple-instances\/","title":{"rendered":"Create OCI file storage and mount it on multiple instances"},"content":{"rendered":"<p><strong>Overview<\/strong><\/p>\n<p>This post covers Oracle Cloud Infrastructure (OCI) File storage services.&nbsp;<\/p>\n<p>Oracle\u00ae Storage Cloud Services provides multiple types of storage services based on&nbsp;your requirements so you can choose one service over another. The requirements can vary from:<\/p>\n<p>&nbsp;<\/p>\n<ul>\n<li>Persistent versus nonpersistent: Which type of storage do you want, persistent or nonpersistent?&nbsp;<\/li>\n<li>Types of Data: Which types of data do you want to store, such as text, database, videos, audios,&nbsp; images, and so on?<\/li>\n<li>Performance: What type of performance you are looking at, such as maximum capacity, IOPS,&nbsp;throughputs, and so on?<\/li>\n<li>Durability: How many copies of data do you need?<\/li>\n<li>Connectivity: How the app accesses the data such as locally or across the network.<\/li>\n<li>Protocol: What type of protocol you plan to use, such as block, file, or &nbsp;HTTPS?<\/li>\n<\/ul>\n<p>Depending on your requirements, OCI has the following offerings:&nbsp;<\/p>\n<ul>\n<li>Block volume storage<\/li>\n<li>Local NVMe<\/li>\n<li>File storage<\/li>\n<li>Object storage<\/li>\n<li>Archive storage<\/li>\n<\/ul>\n<p><img decoding=\"async\" src=\"\/wp-content\/uploads\/2026\/blog_article_images\/26511-body-Picture1_30.png\" alt=\"oci multi tenant pic 1\" \/><\/p>\n<p>&nbsp;<a href=\"https:\/\/www.youtube.com\/watch?v=XXqTGF8G0dk](https:\/\/www.youtube.com\/watch?v=XXqTGF8G0dk\"><em>Image Source<\/em><\/a><\/p>\n<p><img decoding=\"async\" src=\"\/wp-content\/uploads\/2026\/blog_article_images\/26511-body-Picture2_19.png\" alt=\"OCI multi tenant pic 2\" \/><\/p>\n<p><a href=\"https:\/\/www.youtube.com\/watch?v=gzRXsXQJXmw\"><em>Image Source<\/em><\/a>&nbsp;<\/p>\n<p><strong>What is File Storage?<\/strong><\/p>\n<p>File Storage is a hierarchical collection of documents organized into named directories,&nbsp;which are themselves structured files. Distributed file systems make distributed look&nbsp;exactly like local file systems.<\/p>\n<p><strong>File Storage Services (FSS)<\/strong><\/p>\n<p>According to <a href=\"https:\/\/docs.cloud.oracle.com\/en-us\/iaas\/Content\/File\/Concepts\/filestorageoverview.htm\">Oracle Cloud Infrastructure Documentation<\/a>&nbsp;&#8220;Oracle Cloud Infrastructure File Storage service provides a durable, scalable, distributed,&nbsp;enterprise-grade network file system that scales up in the cloud without any upfront&nbsp;provisioning. You can connect to a File Storage service file system from any bare metal,&nbsp;virtual machine, or container instance in your Virtual Cloud Network (VCN). You can also&nbsp;access a file system from outside the VCN using Oracle Cloud Infrastructure FastConnect and Internet Protocol security (IPSec) virtual private network (VPN). The File Storage service&nbsp;supports the Network File System version 3.0 (NFSv3) protocol. The service supports the&nbsp;Network Lock Manager (NLM) protocol for file locking functionality.&#8221;<\/p>\n<p><strong>&nbsp;Key characteristics of OCI FSS:<\/strong><br \/>\nAccording to the <a href=\"https:\/\/questoraclecommunity.org\/learn\/blogs\/case-study-using-oci-file-storage-service-fss-for-peoplesoft\/\">Case Study: Using OCI File Storage Service (FSS) for PeopleSoft<\/a>&nbsp;OCI FSS characteristics include the following:<\/p>\n<ul>\n<li>NFS v.3 with NLM for POXIS<\/li>\n<li>AD-local service available in all OCI regions<\/li>\n<li>Predictable pricing for capacity stored<\/li>\n<li>Elastic performance where throughput grows with the capacity stored, is best suited for parallel workloads<\/li>\n<\/ul>\n<p><strong>Use cases for OCI FSS include:&nbsp;<\/strong><\/p>\n<p>The case study: Using <a href=\"https:\/\/questoraclecommunity.org\/learn\/blogs\/case-study-using-oci-file-storage-service-fss-for-peoplesoft\/\">OCI File Storage Service (FSS) for PeopleSoft<\/a>&nbsp;mentions the following use cases:<\/p>\n<ul>\n<li>On-demand scaling for shared access and capacity<\/li>\n<li>Lift-and-shift applications<\/li>\n<li>Backup in the cloud<\/li>\n<li>Storing structured or unstructured data for big data and analytics<\/li>\n<li>Testing and development<\/li>\n<li>Big Data and analytics<\/li>\n<li>High-Performance Computing (HPC)<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p><img decoding=\"async\" src=\"\/wp-content\/uploads\/2026\/blog_article_images\/26511-body-Picture3_16.png\" alt=\"OCI multitenant pic 3\" \/><\/p>\n<p><a href=\"https:\/\/www.youtube.com\/watch?v=XXqTGF8G0dk\"><em>Image Source<\/em><\/a>&nbsp;<\/p>\n<p><strong>How to create FSS in OCI<\/strong><\/p>\n<p>Before discussing the details of creating FSS in OCI, you need to understand some important concepts to use during FFS creation.&nbsp;<\/p>\n<p>The following subsections come directly from&nbsp;<a href=\"https:\/\/docs.cloud.oracle.com\/en-us\/iaas\/Content\/File\/Concepts\/filestorageoverview.htm\">Oracle Cloud Infrastructure Documentation<\/a><\/p>\n<p><strong>VIRTUAL CLOUD NETWORK (VCN)<\/strong><\/p>\n<p>&#8220;A private network that you set up in the Oracle data centers, with firewall rules and specific types of communication gateways that you can choose to use.&#8221;<\/p>\n<p><strong>SUBNETS<\/strong><\/p>\n<p>&#8220;Subdivisions you define in a VCN (for example, 10.0.0.0\/24 and 10.0.1.0\/24). Subnets&nbsp;contain virtual network interface cards (VNICs), which attach to instances. A subnet can&nbsp;span a region or exist in a single availability domain. A subnet consists of a contiguous&nbsp;range of IP addresses that do not overlap with other subnets in the VCN. For each subnet,&nbsp;you specify the routing rules and security lists that apply to it.&#8221;<br \/>\n&nbsp;<\/p>\n<p><strong>SECURITY RULES<\/strong><\/p>\n<p>&#8220;Virtual firewall rules for your VCN. Your VCN comes with a default security list, and you&nbsp;can add more. These security lists provide ingress and egress rules that specify the types&nbsp;of traffic allowed in and out of the instances. You can choose whether a given rule is&nbsp;stateful or stateless. Security list rules must be set up so that clients can connect to&nbsp;file system mount targets.&#8221;<\/p>\n<p><strong>Mount Target<\/strong><\/p>\n<p>&#8220;A mount target is an NFS endpoint that lives in a VCN subnet of your choice and provides network access for file systems. The mount target provides the IP address or DNS name that&nbsp;is used together with a unique export path to mount the file system.&#8221; A single mount target&nbsp;can export many file systems.<\/p>\n<p><strong>EXPORT<\/strong><\/p>\n<p>&#8220;Exports control how NFS clients access file systems when they connect to a mount target.&nbsp;File systems are exported (made available) through mount targets. Each mount target maintains&nbsp;an export set that contains one or many exports. A file system must have at least one export&nbsp;in one mount target&#8221; for instances to mount the file system.<\/p>\n<p><strong>EXPORT SET<\/strong><\/p>\n<p>&#8220;Collection of one or more exports that control what file systems the mount target exports&nbsp;using NFSv3 protocol and how those file systems are found using the NFS mount protocol.&nbsp;Each mount target has an export set. Each file system associated with the mount target has&nbsp;at least one export in the export set.&#8221;<\/p>\n<p><strong>EXPORT PATH<\/strong><\/p>\n<p>&#8220;A path that is specified when an export is created. It uniquely identifies the file system&nbsp;within the mount target, letting you associate up to one hundred file systems to a single&nbsp;mount target. This path is unrelated to any path within the file system itself, or the&nbsp;client mount point path.&#8221;<\/p>\n<p><strong>Setup overview<\/strong><\/p>\n<p>You need to create a setup, as shown in the following image. You need to create one virtual&nbsp;cloud network (VCN) in one AD and two subnets (public and private) under one VCN. You use&nbsp;a private subnet for a mount target and a public subnet for an NFS client. Each subnet has&nbsp;its own security rules and routing tables to allow the traffic in and out.<\/p>\n<p><img decoding=\"async\" src=\"\/wp-content\/uploads\/2026\/blog_article_images\/26511-body-Picture4_10.png\" alt=\"OCI multitenant pic 4\" \/><\/p>\n<p><a href=\"https:\/\/www.youtube.com\/watch?v=F5Umaxw6IL8&amp;t=319s\"><em>Image Source<\/em><\/a>&nbsp;<\/p>\n<p><strong>Steps to create FSS in OCI<\/strong><\/p>\n<p><strong>1. Create a VCN&nbsp;<\/strong><br \/>\nGo to <strong>menu &gt; Networking &gt; Virtual Cloud Networks<\/strong>.&nbsp;Provide the name of the VCN you want, pick the IP in CIDR BLOCK, and click&nbsp;<strong>Create Virtual Cloud Network<\/strong>.<br \/>\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br \/>\nNow, you created the VCN, but the VCN has no subnet or Internet gateway available.<\/p>\n<p><img decoding=\"async\" src=\"\/wp-content\/uploads\/2026\/blog_article_images\/26511-body-Picture5_8.png\" alt=\"OCI multitenant pic 5\" \/><\/p>\n<p><strong>2. Create a subnet&nbsp;<\/strong><\/p>\n<p>Create two subnets, public and private.<\/p>\n<p>Click <strong>Create Subnet<\/strong>, enter the following details, and click <strong>Create Subnet<\/strong>.<\/p>\n<ul>\n<li>Name of the subnet<\/li>\n<li>IP Address of Subnet<\/li>\n<li>Route Table Name<\/li>\n<li>Subnet Access<\/li>\n<li>Security List<\/li>\n<\/ul>\n<p><strong>3. Create a file system<\/strong><\/p>\n<p>Use the following steps to create a file system:<\/p>\n<p><strong>First: Create file storage<\/strong><br \/>\nGo to the menu, click <strong>File Storage<\/strong>&nbsp;and then <strong>File Systems<\/strong>. Now, create a<br \/>\n<strong>Mount Target<\/strong>. Select the VCN and SUBNET you created earlier. Leave the <strong>IP addresses<\/strong><br \/>\nsection blank. The <strong>System<\/strong>&nbsp;automatically populates. Click <strong>Create<\/strong>.<\/p>\n<p><img decoding=\"async\" src=\"\/wp-content\/uploads\/2026\/blog_article_images\/26511-body-Picture6_8.png\" alt=\"oci multitenant pic 6\" \/><\/p>\n<p><strong>Second: Create a file system&nbsp;<\/strong><\/p>\n<p>To create the file system, on the <strong>File System<\/strong>&nbsp;tab, click <strong>Create File System<\/strong>, enter&nbsp;the following details, and click <strong>Create tab<\/strong><\/p>\n<ul>\n<li>Name of the file system that you want.<\/li>\n<li>Export Path<\/li>\n<li>Mount Target Information<\/li>\n<\/ul>\n<p><img decoding=\"async\" src=\"\/wp-content\/uploads\/2026\/blog_article_images\/26511-body-Picture7_5.png\" alt=\"OCI Multitenant pic 7\" \/><\/p>\n<p>Before mounting this file system, you need to configure the security list you created&nbsp;earlier. If you do not do this, your instance cannot access this file system. You need to&nbsp;configure a security list to allow traffic on the mount target subnet.<\/p>\n<p><strong>Note<\/strong>: You can create your own private security list from the console and assign it to&nbsp;the subnet. You can use two security lists. Use the private subnet for the mount target.&nbsp;The public subnet is a default security list, which you use for the NFS client. You need&nbsp;not make any changes to the default security list, but you need to configure egress and&nbsp;ingress rules for the private security list as shown in the following sections.<\/p>\n<p><strong>Third: Add ingress rules<\/strong><\/p>\n<p>Go to the mount target, click on <strong>Subnet &gt; Security Lists<\/strong>, and click on&nbsp;<strong>PrivateSL &gt; Add Ingress Rules<\/strong><\/p>\n<p><img decoding=\"async\" src=\"\/wp-content\/uploads\/2026\/blog_article_images\/26511-body-Picture8_5.png\" alt=\"oci multitenant pic 8\" \/><\/p>\n<p>Add the following ingress rule allowing TCP traffic:<\/p>\n<p><strong>Ingress Rule 1<\/strong><br \/>\nSource CIDR: 10.0.0.0\/16<br \/>\nIP Protocol: TCP<br \/>\nSource Port Range: All<br \/>\nDestination Port Range: 2048-2050&nbsp;<\/p>\n<p><strong>Ingress Rule 2<\/strong>:<br \/>\nSource CIDR: 10.0.0.0\/16<br \/>\nIP Protocol: TCP<br \/>\nSource Port Range: All<br \/>\nDestination Port Range: 111<\/p>\n<p><strong>Ingress Rule 3:<\/strong><br \/>\nSource CIDR: 10.0.0.0\/16<br \/>\nIP Protocol: UDP<br \/>\nSource Port Range: All<br \/>\nDestination Port Range: 111<\/p>\n<p><strong>Ingress Rule 4:<\/strong><br \/>\nSource CIDR: 10.0.0.0\/16<br \/>\nIP Protocol: UDP<br \/>\nSource Port Range: All<br \/>\nDestination Port Range: 2048<\/p>\n<p><strong>Fourth: Add egress rules<\/strong><\/p>\n<p>Now add egress rules:<\/p>\n<p><strong>Egress Rule 1:<\/strong><br \/>\nDestination CIDR: 10.0.0.0\/16<br \/>\nIP Protocol: TCP<br \/>\nDestination Port Range: All<br \/>\nSource Port Range: 2048-2050<\/p>\n<p><strong>Egress Rule 2:<\/strong><br \/>\nDestination CIDR: 10.0.0.0\/16<br \/>\nIP Protocol: TCP<br \/>\nDestination Port Range: All<br \/>\nSource Port Range: 111<\/p>\n<p><strong>Egress Rule 3:<\/strong><br \/>\nDestination CIDR: 10.0.0.0\/16<br \/>\nIP Protocol: UDP<br \/>\nDestination Port Range: All<br \/>\nSource Port Range: 111&nbsp;<\/p>\n<p><strong>&nbsp;Fifth: Assign to private subnet<\/strong><br \/>\nYou have configured the private security list with ingress and egress rules assigned to the&nbsp;Private subnet. Next, create two compute instances (FSS1 and FSS2) to test the file system&nbsp;you created.<\/p>\n<p>Now, move on to mounting the file system with compute instances.<\/p>\n<p><strong>Mount the file system<\/strong><\/p>\n<p>Here is a quick overview of how to mount the filesystem with the NFS client:<\/p>\n<ul>\n<li>Launch the OCI Instance from the console.<\/li>\n<li>Use the <em>NFSv3<\/em> protocol to mount the FSS volume.<\/li>\n<li>Install `<em>nfs-utils<\/em>` (Oracle Linux\u00ae and CentOS&amp;\u00ae) or `nfs-common` (Ubuntu\u00ae operating system) in your Linux system.&nbsp;<\/li>\n<li>Create the directory.<\/li>\n<li>On the FSS console, click <strong>Mount Targets<\/strong>.&nbsp;<\/li>\n<\/ul>\n<p>Use the private IP address information to mount the volume by using the <em>`nfs`<\/em> command.<\/p>\n<p>Here are the steps:<\/p>\n<p>Go to <strong>menu &gt; Compute &gt; Instances &gt; Create Instance<\/strong>, enter the following details, and&nbsp;click <strong>create<\/strong><\/p>\n<ul>\n<li><strong>Name your Instance<\/strong>: FSS1<\/li>\n<li><strong>Virtual Cloud Network<\/strong>: FSSVCN (Created earlier)<\/li>\n<li><strong>Subnet<\/strong>: Compute subnet (Default for Linux machine)<\/li>\n<li><strong>SSH Key<\/strong>: Copy it from the local machine from which you want to access the OCI Linux machine.&nbsp;<\/li>\n<\/ul>\n<p>&nbsp;<em> &nbsp; &nbsp; &nbsp;$ cd ~\/.ssh<br \/>\n&nbsp; &nbsp; &nbsp; &nbsp; $ ls<br \/>\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;authorized_keys &nbsp;id_rsa&nbsp;<br \/>\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;id_rsa.pub &nbsp;known_hosts<br \/>\n&nbsp; &nbsp; &nbsp; &nbsp; $ cat id_rsa.pub<\/em><\/p>\n<p><img decoding=\"async\" src=\"\/wp-content\/uploads\/2026\/blog_article_images\/26511-body-Picture9_3.png\" alt=\"OCI Multitenant Pic 9\" \/><\/p>\n<p><strong>Step 2&nbsp;<\/strong><\/p>\n<p>Now that the compute instance FSS1 is running, follow the same steps to create <strong>FSS2.&nbsp;<\/strong>Then, ssh to the FSS1 from a local machine by using the following commands:<\/p>\n<p><em>&nbsp; &nbsp; ssh opc@PublicIP_Address<br \/>\n&nbsp; &nbsp; ssh opc@132.145.214.12<\/em><\/p>\n<p><img decoding=\"async\" src=\"\/wp-content\/uploads\/2026\/blog_article_images\/26511-body-Picture10_2.png\" alt=\"oci multitenant pic 10\" \/><\/p>\n<p><em>&nbsp;&nbsp;ssh opc@132.145.214.12<\/em><\/p>\n<p>Use the following steps and execute these commands on the terminal session you just started<br \/>\nto mount the file system. Perform these steps for both compute instances FSS1 and FSS2.<\/p>\n<p><strong>Step 3<\/strong><\/p>\n<p>Install the NFS utilities on the compute instance.<\/p>\n<p><img decoding=\"async\" src=\"\/wp-content\/uploads\/2026\/blog_article_images\/26511-body-Picture11_2.png\" alt=\"OCI Multitenant pic 11\" \/><\/p>\n<p><strong>Step 4&nbsp;<\/strong><\/p>\n<p>Create the local mount point to mount the File system.<\/p>\n<p><img decoding=\"async\" src=\"\/wp-content\/uploads\/2026\/blog_article_images\/26511-body-Picture12_0.png\" alt=\"OCI multitenant pic 12\" \/><\/p>\n<p><strong>Step 5&nbsp;<\/strong><\/p>\n<p>Mount the file system.<\/p>\n<p><img decoding=\"async\" src=\"\/wp-content\/uploads\/2026\/blog_article_images\/26511-body-Picture13_0.png\" alt=\"OCI multitenant pic 13\" \/><\/p>\n<p>Run the same commands on another compute instance, FSS2.<\/p>\n<p><strong>File system testing&nbsp;<\/strong><\/p>\n<p>To test the file system, perform the following tests:<\/p>\n<p><strong>On FSS1<\/strong><\/p>\n<p><em>&nbsp; &nbsp; $ cd &lt;Local mount&gt;&nbsp;<br \/>\n&nbsp; &nbsp; $ sudo vi &lt;File Name&gt; (Create any file with some text)<\/em><\/p>\n<p><strong>On FSS2<\/strong><\/p>\n<p><em>&nbsp; &nbsp;$ cd &lt;Local mount&gt;<br \/>\n&nbsp; &nbsp; $ ls&nbsp;<\/em><\/p>\n<p>This command displays the file that you created on FSS1.<\/p>\n<p><strong>Conclusion<\/strong><\/p>\n<p>As your usage scales, the File Storage service provisioning is fully managed and automatic.&nbsp;File Storage also provides highly persistent, secure, and durable storage for Oracle Cloud&nbsp;Infrastructure data. &nbsp;Built on a distributed architecture, File Storage provides scaling&nbsp;for your data and access to that data.&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Create OCI file storage and mount it on multiple instances<\/p>\n","protected":false},"author":2,"featured_media":7820,"menu_order":0,"comment_status":"open","ping_status":"open","template":"","format":"standard","meta":{"content-type":"","nid":"26511","content_type":"blog","created_by":"10130","authored_on":"2024-01-17T13:48:52+00:00","field_article_industries":"","tag_category":"Technical","field_blog_author_text":"by Akash Tyagi, Oracle Applications Database Administrator , Rackspace Technology","seo_description":"Learn how to create and mount Oracle Cloud Infrastructure File storage on multiple instances, catering to diverse storage requirements.\r\n","field_featured_image":"","insights_image":"\/wp-content\/uploads\/2026\/blog_technical_images\/26511-insights_image-oracle-technical-blog-1-insights.jpg","field_partners":"","rxt_platforms":"Oracle","product":"","publisheddate":"2020-12-16T13:48:52","rxt_solutions":"Multicloud, Public Cloud, Private Cloud, Data, Next-Gen Data Platforms","opengraph_tag":"","x_tag":"","teaser_flag":"Technical Blog","seo_titile":"Oracle Cloud Infrastructure File Storage | Rackspace","field_topics":"","field_slug":"create-oci-file-storage-and-mount-it-on-multiple-instances","footnotes":""},"categories":[178],"tags":[204],"class_list":["post-7818","blogs","type-blogs","status-publish","format-standard","has-post-thumbnail","hentry","category-blog","tag-technical"],"_links":{"self":[{"href":"https:\/\/www.rackspace.com\/de\/wp-json\/wp\/v2\/blogs\/7818","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.rackspace.com\/de\/wp-json\/wp\/v2\/blogs"}],"about":[{"href":"https:\/\/www.rackspace.com\/de\/wp-json\/wp\/v2\/types\/blogs"}],"author":[{"embeddable":true,"href":"https:\/\/www.rackspace.com\/de\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rackspace.com\/de\/wp-json\/wp\/v2\/comments?post=7818"}],"version-history":[{"count":3,"href":"https:\/\/www.rackspace.com\/de\/wp-json\/wp\/v2\/blogs\/7818\/revisions"}],"predecessor-version":[{"id":9703,"href":"https:\/\/www.rackspace.com\/de\/wp-json\/wp\/v2\/blogs\/7818\/revisions\/9703"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.rackspace.com\/de\/wp-json\/wp\/v2\/media\/7820"}],"wp:attachment":[{"href":"https:\/\/www.rackspace.com\/de\/wp-json\/wp\/v2\/media?parent=7818"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rackspace.com\/de\/wp-json\/wp\/v2\/categories?post=7818"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rackspace.com\/de\/wp-json\/wp\/v2\/tags?post=7818"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}