Quantcast
Channel: Cloud Training Program
Viewing all articles
Browse latest Browse all 1902

Storage Gateway In Oracle Cloud Infrastructure (OCI)

$
0
0

Do you know, now you can sync your on-premise application data that can write to NFS mount without the pain of writing API to Oracle Cloud Object Storage?, This can be achieved with Oracle Cloud Infrastructure features called  “Storage Gateway“.

This post covers things you should know to leverage the use of Storage Gateway for Syncing your on-premise data to Oracle Cloud Infrastructure Object storage.

To know more about different storage options in Oracle Cloud Infrastructure check here.

Overview Storage Gateway In Oracle Cloud Infrastructure

  • Storage Gateway helps you connect the on-premise application to object storage  in Oracle Cloud Infrastructure
  • Applications that can write data to an NFS target can also write data to the Oracle Cloud Infrastructure Object Storage, without requiring application modification to uptake the REST APIs.

Storage Gateway In OCI

Note: Storage Gateway is a free service for all its Oracle Cloud Infrastructure customers

Use Cases Of Storage Gateway

For Hybrid Cloud Architecture, where your on-premise application using cloud storage (object storage)

  • Using Oracle cloud storage and archive results in low cost
  • Extension of the on-premise data center to cloud with limitless storage
  • Enhance disaster recovery and business continuity using cloud storage

For Data Migration & continuous Data Sync from On-premise to Cloud

  • Move data to cloud for Application or database migration
  • Copy data to cloud storage, as it is written to on-premise storage for HA
  • Move your existing Data to object storage (one-time)

Storage Gateway use cases In Oracle Cloud

Installing Storage Gateway

Pre-requisite

  • Two dual-core CPUs or better. Oracle recommends 4-core CPUs.
  • The recommended local storage disk size is 600 GB, which includes 500 GB for the file system cache, 80 GB for metadata storage, and 20 GB for log storage.
  • Oracle Linux 7 with UEK Release 4 or later.
  • Docker 1.12.6 or newer. Docker is an open platform for building, shipping, and running distributed applications, to more about docker, check here
  • Network File System version 4 (ie NFSV4), to know more about NFS check here

High-Level Steps To Configure install & Configure Storage Gateway

Step1: Download the Storage Gateway Software, click here

Step2: Create a directory & unzip the software. eg ocisg

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

Step4; Once Installation is done, you will get a Storage Gateway Management console

  • https://<storagegateway_hostname>:<port_number>
  • Eg: https://myStorageGatewayHost:3769

Note: Make sure the port is open in the system where you have installed the storage gateway

Storage Gateway Management Console OCI

Step5: Create a file system, here you will be giving all the details of the cloud storage that you will be used for data sync which includes

  • OCID Of User
  • OCID of Compartment
  • OCID Of Tenancy
  • To know more about OCID, click here
  • FingerPrint of User
  • Object Storage Endpoint URL click here
  • Object Storage Tier (Standard or Archive), to know more about it check here

Once You have put all the details click on create a file system, it will create a bucket in oracle cloud object storage, where all your on-premise data will be syncing

Step6: Connect to the file system which you have created

Storage Gateway In OCI

Step7: Mount the File System to your local system where you have installed storage Gateway

Command: sudo mount -t nfs -o vers=4,port=<NFS_port_number> <storage_gateway_host_name>:/<ocisg_file system_name> /<local_mount_point>

Step8: Validate whether your files are syncing to cloud object storage or not

I hope you find the blog useful in understanding Storage Gateway concepts in Oracle Cloud Infrastructure, please do post your comments in the comment section and let me know if you have doubts regarding storage gateway.

Related/Further Readings

Next Task For You

If you have any doubts and want to polish your learning for Oracle Cloud Infrastructure Architect Basics, then Join FREE Masterclass on How To Become Oracle Certified Cloud Architect[1Z0-1072]

Click Down the image below to register for FREE.

OCI 1Z0-1072 Free Masterclass

The post Storage Gateway In Oracle Cloud Infrastructure (OCI) appeared first on Oracle Trainings.


Viewing all articles
Browse latest Browse all 1902

Trending Articles