In a previous article, I showed how AWS DataSync could be used to copy data from an on-premises file server (Either physical or virtual) into an Amazon FSx Windows file server. Amazon FSx is a fully managed, highly reliable, and scalable file storage that is accessible over the industry-standard Service Message Block (SMB) protocol. This is ideal for customers who are looking to migrate workloads to VMware Cloud on AWS and start taking advantage of native cloud services to improve resiliency and cost. When it comes to customers who want to utilise VMware Cloud Disaster Recovery to failover their environment into VMware Cloud on AWS but then failback to on-premises once the on-premises environment has been recovered things start to get a little tricky. AWS DataSync does not support copying data back from AWS (FSx, EFS or S3) to on-premises so this has to be performed manually. This post will showcase the steps required to copy the data back from Amazon FSx to on-premises which can be incorporated into your failback process to ensure that there is no data loss.
We first need to ensure we change the existing AWS DataSync task to either run manually or delete it completely to avoid having old data copied (If available) back into FSx which could potentially cause some inconsistencies. Navigate to the AWS DataSync service and either delete the task:
- Y – Refers to the source share located in the on-premises Active Directory forest mydata.com.
- Z – Refers to the target share \\amznfsxabcdef1.mydata.com\share on Amazon FSx.
- /copy – Specifies the following file properties to be copied:
- D – data
- A – attributes
- T – timestamps
- S – NTFS ACLs
- O – owner information
- /secfix – Fixes file security on all files, even skipped ones
- /e – Copies subdirectories, including empty ones
- /MT:8 – Specifies how many threads to use for performing multithreaded copies
We can then re-enable/re-create the AWS DataSync task once we have verified the data has copied successfully so start the replication back into Amazon FSx in the event of having to invoke DR again in the future.
No comments:
Post a Comment