Got it

Disaster recovery between virtual machine storage through Rsync

Latest reply: Dec 3, 2021 05:58:13 1461 1 4 0 0

Hello, everyone!

The post will share with you disaster recovery between virtual machine storage through Rsync.

Since the data of the SAP application is stored in the SAP HANA database, the database has its own disaster recovery mechanism. The SR disaster recovery VM is deployed on the DR site. Only the disk data of the DC1-DC2 SAP application VM can be synchronized to the DR site. The amount of changed data is small, and real-time synchronization is not required. The Rsync mode can meet the needs.

Proceed as follows:

1. Execute ps -ef|grep rsync to check if Rsync is installed under the Linux system. (Please refer to the separate information for the installation method, not described here)

2. Confirm with the application side the source and destination virtual machines that need to be disaster-tolerant, and the directories that need to be copied. It is not necessary to copy the virtual machine system disk as a whole.

3. The command script for preparing sysnc replication is as follows. The following are only examples, and are adjusted according to actual business needs:


Set timeout 60

Set passwdfile "/rsynctest/passwd.txt"

Set fid [open $passwdfile r]

While {[gets $fid line] >= 0} {

   Set password [lindex $line 0]

# puts "P: $Password\n"


Close $fid

Spawn rsync -avprW -AX --progress --partial --delete /rsynctest/test001

Expect "Password:"

Send "$password\n"


Expect eof

4. Add to the scheduled task, cycle execution, and automatically synchronize the DC1-DC2 SAP service VM disk data to the disaster recovery VM of the DR site.

0 * * * * /rsynctest/rc_1.exp >> /rsynctest/sync.log

This is what I want to share with you today, thank you!

  • x
  • convention:

Created Dec 3, 2021 05:58:13

Disaster recovery between virtual machine storage through Rsync-4438283-1
View more
  • x
  • convention:


You need to log in to comment to the post Login | Register

Notice: To protect the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but are not limited to the following:
  • Politically sensitive content
  • Content concerning pornography, gambling, and drug abuse
  • Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including trade marks, copyrights, and patents, and personal privacy
Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see " User Agreement."

My Followers

Login and enjoy all the member benefits


Are you sure to block this user?
Users on your blacklist cannot comment on your post,cannot mention you, cannot send you private messages.
Please bind your phone number to obtain invitation bonus.
Information Protection Guide
Thanks for using Huawei Enterprise Support Community! We will help you learn how we collect, use, store and share your personal information and the rights you have in accordance with Privacy Policy and User Agreement.