Around the Storage Block
cancel
Showing results for 
Search instead for 
Did you mean: 
ToddPrice

How to replicate your database in HPE Cloud Volumes with HPE Nimble

 

HPE Cloud Volumes_ HPE Nimble_Blog.pngNot all customers care to put their data on the Oracle Cloud. Many prefer other cloud providers such as AWS or Google Cloud. It may be time for you to look at a hybrid cloud model like HPE Cloud Volumes, which can play a significant role if your on-premises storage is an HPE Nimble array. Plus, using HPE Cloud Volumes demonstrates significant savings on egress fees versus putting your data on AWS.

Considerations for cloning

There two important factors that should be top of mind when you approach a data cloning project: data concurrency and database availability. There are basically three categories of consideration when cloning the database. These categories are a function for the requirements of data protection. The three categories of cloned copies are:

1). Crash-consistent copy. An ACID compliant database, such as Oracle, would go through a crash recovery provided that all the database files and groups are configured in the same HPE Nimble Volume Collection group to ensure data concurrency and write ordering. The advantage to crash-consistent copy is that the production server database instance does not need to be shut down. The disadvantage is that all the transactions are not guaranteed.

2). Shutdown copy. The production data base in this instance would be shut down in order to get a completely consistent copy of the database on the HPE Cloud Volumes. The advantage to shutdown copy is having consistent and complete transactions. The disadvantage is having to shut down the database instance, and possibly schedule an outage window on one of your production servers.

3). Application-consistent copy. Application-consistent copies can be produced right from a production server with no concerns about transaction loss. This is because the database is put into a quiesce mode through hot backup (Oracle) or table locking (MySQL). Whatever mode is required by your database would dictate what you should do. All the database files (data, index, logs, etc.) need to be put into a single HPE Nimble Volume Collection to ensure data concurrency. In order to create application-consistent copies with HPE Cloud Volumes, the user can script the quiesce process. It is possible to use RMC-O to make an application-consistent copy, and clone it to an HPE Nimble array on-premises. Then you would replicate the application-consistent clone to HPE Cloud Volumes.

When considering which methods to use, consider the main deciding factors: system availability, data availability, and on-premises storage availability.

arch.png

Replicating to HPE Cloud Volumes and EC2 connection to AWS

In this example, we will use a MySQL database and MySQL commands to put the database into a quiesce mode by locking the tables to read only.

process.png

 The example database (below) is a DVD movie management database for a video rental company.

  • The database will be replicated to HPE Cloud Volumes via an iSCSI connection from the on-premises server to HPE Cloud Volumes.
  • Once the volume replication is synchronized and snapshot taken, the MySQL database table data gets flushed to disk, and the tables will be locked into a read-only state.
  • Once the tables are in a read-only state, the snapshot can be used to generate a cloned volume and then the table put back into r/w state.
  • The volume or volume set are then ready to be attached to a test server VM on the public cloud. In the example, an AWS EC2 Linux server was used as the test MySQL DB server.

Questions or comments? Please reply to this article.

You can also connect with Todd on LinkedIn, or follow him on Twitter.

Todd Price
Hewlett Packard Enterprise

twitter.com/HPE_Storage
linkedin.com/showcase/hpestorage/
hpe.com/storage

0 Kudos
About the Author

ToddPrice

Expertise in Oracle Database Technologies on HPE Storage