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.
Run the script “./ocisg-install.sh.”
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.
Log in to the Storage Gateway main dashboard.
Create a file system with the following details:
Click Create a File System, which creates a bucket in OCI where on-premises data syncs.
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</local_mount_point></file></storage_gateway_host_name></nfs_port_number>
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.
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.


Leave a Reply