The Oracle Cloud Infrastructure (OCI) Storage Gateway extends on-premises application data to the cloud. Integration with OCI Object Storage and support for Network File Storage (NFS) makes it easy to securely move files to and from OCI. Data is encrypted both at rest and in-transit, and built-in data integrity checks provides protection. Local caching provides enterprise applications instant access to files that are frequently used.

Installation and configuration of Storage Gateway

Download the Storage Gateway tool and unzip the package.

A screenshot of the code running the unzipped file.

Run the script “./ocisg-install.sh.”

A screenshot of the running script.

After installation is complete, log in to Storage Gateway Management console with the address: https://<storagegateway_hostname or IP address >:<port_number>.

Ensure that the port is open in the system where you have installed the storage gateway.

A screenshot of the OCI Storage Gateway password registration screen.

Log in to the Storage Gateway main dashboard.

A screenshot of the OCI Storage Gateway login screen.

Create a file system with the following details:

  • OCID of user, compartment, and tenancy

  • Fingerprint of OCI user

  • Object Storage endpoint URL

  • Object Storage tier (Standard or archive)

A screenshot of the Create a File System page in the Storage Gateway console.

Click Create a File System, which creates a bucket in OCI where on-premises data syncs.

A screenshot of the Data page in the Storage Gateway console.

Mount the file system to your local system where Storage Gateway is installed using the following command:

sudo mount -t nfs -o vers=4,port=<NFS_port_number> <storage_gateway_host_name>:/<file system_name> /<local_mount_point>
# mount -t nfs -o vers=4,port=32771 150.136.96.150:/data /storagegatewaytest

A screenshot of the command in the code.

A screenshot of the mount point details in the code.

Validate and test whether files are syncing to OCI Object Storage by creating dummy files and verifying from your Object Storage bucket. Created objects automatically upload to Object Storage buckets.

A screenshot of the validation.

A screenshot of the objects uploaded in the OCI Console.

Conclusion

With Storage Gateway, you can support four main use cases:

  • Migrate data to the cloud

  • Extend on-premises data center to the cloud

  • Automatically sync files

  • Backup and archive with Cloud Sync

I hope that this blog helps you understand Storage Gateway concepts in Oracle Cloud Infrastructure. If you have any questions regarding Storage Gateway, post them in the comments. For more information, see the following resources: