QNAP Systems, Inc. - Network Attached Storage (NAS)

Language

Support

Deploying VMware vCenter Site Recovery Manager with QNAP ES1640dc

1. Overview

QNAP ES1640dc is the enterprise storage system. It provides redundancies not only on the redundant power supply modules but also on the dual controller system modules.

This document is a step-by step guide for building Disaster Recovery environment on QNAP ES1640dc storage system with VMware Site Recovery Manager (SRM).

1.1 Architecture

In the architecture diagram, there are two sites. Site A on the left is primary system and being protected. Site B on the right is the recovery site and will be used when site A fails.  

1.2 System configuration

Server Network Settings (Site A)
Setting Value Description
vCenter Server A (PSC) IP 192.168.200.10 vCenter Server with PSC at site A
SRM Server A IP 192.168.200.13 SRM Server at site A
ESXi 1 server IP 192.168.200.1 ESXi Server in cluster1
ESXi 2 server IP 192.168.200.2 ESXi Server in cluster1
Server Network Settings (Site B)
Setting Value Description
vCenter Server B (PSC) IP 192.168.201.10 vCenter server with PSC at site B
SRM Server A IP 192.168.201.13 SRM Server at site B
ESXi 3 server IP 192.168.201.1 ESXi Server in cluster2
ESXi 4 server IP 192.168.201.2 ESXi Server in cluster2


Storage Network Settings (Site A)
Setting Value Description
SCA Management IP 192.168.200.101 Management IP of controller A
SCA Ethernet(1 +2) IP 10.1.1.101 Data port IP of controller A
SCB Management IP 192.168.200.102 Management IP of controller B
SCB Ethernet(1 +2) IP 10.1.1.102 Data port IP of controller B
Pool at SCA Pool1 RAID10 pool at controller A
iSCSI LUN   iSCSI lun on Pool1
Storage Network Settings (Site B)
Setting Value Description
SCA Management IP 192.168.201.101 Management IP of controller A
SCA Ethernet(1 +2) IP 10.1.2.101 Data port IP of controller A
SCB Management IP 192.168.200.102 Management IP of controller B
SCB Ethernet(1 +2) IP 10.1.2.102 Data port IP of controller B
Pool at SCA Pool1 RAID10 pool at controller A
iSCSI LUN   iSCSI lun on Pool1

2. Configuring your storage

Before starting to setup the disaster recovery systems, you need to configure your storage settings.

2.1 Create the storage pool and iSCSI LUN

For the detail about how to create storage pool and iSCSI LUN, you can refer to the ES1640dc user manual. A storage pool, Pool1 is created on controller SCA with RAID10 type as below.

There are four LUNs created and attached to the iSCSI target.

  • vdi_0 is used for storing your virtual machines (VMs).
  • placeholder is used for VMware SRM.

2.2 Connecting storage from the servers

The recommended connection from the server to the storage is to use Multipath I/O (MPIO). Please follow below steps to complete it.

Choose [Configuration] tab → Storage Adapters → Right click on iSCSI Software Adapter to select Properties.

Choose [Dynamic Discovery] tab and then enter iSCSI Server IP
Click OK and close the tab to rescan iSCSI targets.

Repeat above steps to add all iSCSI Server Location IP into the Dynamic Discovery then you can see follow targets

2.3 Configure storage replication with SNAPSYNC

SNAPSYNC is a block-based storage replication function in ES1640dc. For doing the disaster recovery with VMware SRM, it is one of the options to replicate storage.

2.3.1 Configure Snapsync Server

To configure snapsync function, login to the storage web page and click on Backup Station icon on the panel.

Select Snapsync Server at the left panel to configure it.

Select Enable Snapsync Server checkbox and leave the Port Number and Maximum download rate as default. Click on Create Host button to create a host. Enter the storage IP and admin login password of the remote ES1640dc storage system. Click Apply to create it.

The remote host is created.

2.3.2 Create Snapsync Job

Click on Snapsync at left panel and click on Create a Replication Job button at right panel.

Enter following information to create the job

  • Remote Replication Job Name.
  • Select and assign Remote Host
  • Select and assign the Source Pool
  • Select and assign the Source Shared Folder/Lun
  • Select and assign the Destination Pool
  • Click on New button to assign and create the Destination Shared Folder/Lun.
  • Click OK button to create a Replication Job.

The snapsync job creation is completed and starts the first sync automatically.

The first sync is done and the status change to updated.

2.3.3 Attach destination LUN to iSCSI target

At Site B, you should find a new iSCSI in the Un-Mapped iSCSI LUN List at the bottom after the snapsync job is done.
Select the LUN and click on Action button and select Map to map this LUN to the iSCSI target.

The destination LUN is mapped to the iSCSI target.

3. SRM Installation

Before you install SRM server, you need to
-- Download VMware vCenter Site Recovery Manager software
-- Prepare a database and login user for SRM to access at vCenter
-- Install SQL Server Native Client driver at SRM server to access database
-- Add another Windows 2012 Server VM to install SRM individually

3.1 Install SRM software for both sites

Open SRM software, click Next.

Click Next.

Accept the EULA and click Next.

Click Next

Select the destination folder to install and click Next.

Enter Platform Service Controller (PSC) information, click Next.

Click Accept to accept PSC certificate.

Select vCenter Address

Enter information to register the VMware vCenter SRM and click Next.

Select Default Site Recovery Manager Plug-in Identifer, click Next.

Select Automatically generate a certificate, click Next.

Enter Certificate Information, click Next.

Select Use a custom database server, and then click DSN Setup.

Select System DSN tab and click Add button.

Select SQL Server Native Client and click Finish.

Enter DSN Name, Description and SQL server address and click Next

Select With SQL Server authentication using a login ID and password entered by the user, and enter login user credential you added at vCenter, and click Next.

Change the default datebase to SRM this DB prepared for SRM to use, then click Next.

Click on Finish button.

Data source created, now you can click on Test Data Source to test DB.

Test completed, click OK to close it.

New System DSN created, click OK to finish DSN setup.

A pop-up window comes up to inform you to enter DSN manually.

Enter the SRM, click Next.

Enter SRM Database login user credential, then click Next.

Enter local admin credentials to run SRM service, click Next

Click Install.

The Installation is completed, click Finsh.

3.2 Configure SRM Sites

Before you configure SRM, make sure both site’s SRM / vCenter can access each other.

3.2.1 Connect the Site Recovery Manager Server Instances

Click on Site Recovery icon at vSphere Web Client home page.

Click Sites at left panel.

Select Protected Site vCenter ant left panel and click Pair sites.

Enter Recovery Site PSC address, click Next.

Select Recovery Site vCenter and enter its credential, then click Finish.

Click Yes to connect vCenter.

Site Paired successfully.

3.2.2 Configure Sites Resource Mappings

Click Create resource mappings

Add paired sites' cluster mapping, click Next

Create reverse mapping for paird site, click Finish

3.2.3 Configure Sites Folder Mappings

Click Create folder mappings

Select Prepare mappings manually, click Next.

Add sites' mapping folders, click Next.

Create reverse mappings, click Next.

3.2.4 Configure Sites Network Mappings

Click Create network mappings

Select Prepare mappings manually, click Next.

Add sites' mapping networks, click Next.

Create reverse mappings, click Next.

Check configuration, click Finish

3.2.5 Configure Sites Placeholder Datastores

To enable planned migration and reprotect, you must select placeholder datastores at both sites. Placeholder datastores must meet certain criteria.
-- For clusters, the placeholder datastores must be visible to all of the hosts in the cluster.
-- You cannot select replicated datastores as placeholder datastores.

Select Configure Sites Placeholder Datastore

Select placeholder, then click OK

3.3 Configure Array Managers

To configure Array Managers, QNAP SRA plug-in is need to be install in advance.

3.3.1 SRA plug-in installation

Open QNAP SRA software at SRM server, click Next.

Click I Agree to accept EULA.

Click Finish to complete the installation.

3.3.2 Add Array Managers

Click Add array manager and enable array pair.

Select Add a pair of array managers, click Next.

Select paired sites, click Next.

Select QNAP Enterprise Storage SRA, click Next.

Configure Site A array manager, provide the display name and the management information, then click Next.

--Management URL : Site A SCA Management IP
--Extra Management URL : Site A Site A SCB Management IP
--Username : Site A SC admin username, default is admin
--Password : Site A SC password

Creating Array manager, Snapsync's Replication Job will be checked at this step.

Configure Site B array manager, provide the display name and the management information, then click Next.

--Management URL : Site B SCA Management IP
--Extra Management URL : Site B Site A SCB Management IP
--Username : Site B SC admin username, default is admin
--Password : Site B SC password

Select SC Array Pair, click Next.

Click Finish.

3.3.3 Create Protection Group

Click Create a Protection Group.

Enter group name, click Next.

Select direction of protection from Site A to Site B, and select array-based replication, then click Next.

Select datastore where VMs to be protected and click Next.

Click Finish.

3.3.4 Create Recovery Plan

Click Create Recovery Plan.

Enter plan name and select location and click Next.

Select Site B as Recovery Site, click Next.

Select protection groups, click Next.

Select test VM network, click Next.

Recovery Plan created, click Finish.

4. Site Recovery Scenarios

VMware SRM provides following types for the site recovery
- Test Recovery
- Planned migration
- Disaster recovery

4.1 Test Recovery

Select Recovery Plans at the right tab and click on plan name at the below window.

Click Test Recovery Plan button.

Click Next.

Click Finish to run test.

At the Monitor tab, you can see the testing status.

After test done, the Plan status change to Test complete.

Click on Cleanup Recovery Plan button to clean test environment.

Click Next.

Test plan environment cleanned. The Plan status change to Ready.

4.2 Planned migration

In somehow you want to migrate VMs to another site for local maintenance reasons.
Planned migration will help you transfer lasted VM data quickly and auto takeover service to recovery site.

Click Run Recovery Plan button.

Select the checkbox and choose Planned Migration and click Next.

At Monitor tab, the planned migration is in process.

The planned migration is completed.

You can see the VMs at protection site become inactive.

The VMs at recovery sites become active.

You can find out SnapSync Replication Job status becomes quiescent.
At this moment, there’s no data sync between both sites.

Now please click on Reprotect Recovery Plan button to start the role changes and resume the sync.

Select the checkbox and click Next.

The Reprotect process is running.

The Reprotect process is completed.

After the reprotect process is done, you can see the role (source and destination) in the SnapSync Replication Job of the storage system is reverted and the state become updated.

Now the planned migration is completed and it is safe to shutdown site A for maintenances.

4.3 Disaster recovery

For any reason, your protection site is down and you need to bring up your recovery site to resume all the services as soon as possible.

At recovery site, you will see below warning message.

Go to recovery plan tab, click Run Recovery Plan button.

Select the checkbox and click Next to run Disaster Recovery.

The disaster recovery is in process now. At this mode, error steps will be ignored.

The disaster recovery is completed.

All VMs are up and running at recovery site.

Note:
Please keep in mind that there's no protection now since Site A is down. You need to solve the problem at Site A and to bring it up as soon as possible.

Once the mantainence is done, go to site A vSphere Web Client to reconnect SRM connection. A popup window will ask Site B vCenter credentials, enter credentials to login.

At Monitor tab of Recovery Plan, It will prompt you the do the recovery again to re-sync missing items during Site A is absent.

Click Run Recovery Plan button.

Click Next.

Recovery is completed.

Click on Reprotect Recovery Plan button to revert the sync direction and start to sync from site B to site A.

Reprotect is in process.

Reprotect completed. The Plan status change to Ready.

After the reprotect process is done, it reverses the source and destination. In the snapsync job web page of the storage system, you can find the sync direction has been changed from SiteA→SiteB to SiteB→SiteA.

Datum vydání: 2016-06-02
Bylo to pro vás to užitečné?
Děkujeme vám za vaši zpětnou vazbu.
Děkujeme vám za vaši zpětnou vazbu. Máte-li nějaké dotazy, kontaktujte prosím adresu support@qnap.com