-
Notifications
You must be signed in to change notification settings - Fork 0
Enable Shadow Copies with EXPRESSCLUSTER
- This page will be migrated to the following site.
- Disclaimer
- About This Page
- Evaluation Environment
- Prerequisites for EXPRESSCLUSTER X
- Install EXPRESSCLUSTER X
- Create a Cluster
- Add a Volume Shadow Copy Storage
- Edit the Script Resource to Take Over Snapshots
- Failover Test
The contents of this document are subject to change without notice. The author assumes no esponsibility for technical or editorial mistakes in or omissions from this clustering procedure.
This page describes how to enable shadow copies with EXPRESSCLUSTER X.
The following version of OS and EXPRESSCLUSTER are evaluated.
- OS
- Windows Server 2016
- Windows Server 2012 R2
- EXPRESSCLUSTER
- EXPRESSCLUSTER X 4.0
- EXPRESSCLUSTER X 3.3
- EXPRESSCLUSTER X 3.2
If you use Mirror Disk Resource or Hybrid Disk Resource, you have to install EXPRESSCLUSTER X 2.1 or later. For more information, please visit NEC website and refer to Getting Started Guide and Installation and Configuration Guide.
| Resource | Supported Version |
|---|---|
| Disk Resource (sd) | EXPRESSCLUSTER X 1.0 or later |
| Mirror Disk Resource (md) | EXPRESSCLUSTER X 2.1 or later |
| Hybrid Disk Resource (hd) | EXPRESSCLUSTER X 2.1 or later |
- Install EXPRESSCLUSTER on both the primary and secondary node following Installation and Configuration Guide.
- Register the licenses.
- Restart both nodes.
Here is a sample configuration using a mirror disk resource. You can also use a disk resource and hybrid disk resource using the following steps.
- Setup a failover group.
- Add a script resource.
- Right click the failover group and click Add Resource.
- Select script resource for Type and set a resource name (ex. script-vss1) for Name. Then, click Next.
- Uncheck the box of Follow the default dependency and click Next.
- Check Retry Count or Failover Threshold and click Next.
- Click Finish.
- Add a mirror disk resource.
- Right click the failover group and click Add Resource.
- Select mirror disk resource for Type and set a resource name (ex. md1) for Name. Then, click Next.
- Uncheck the box of Follow the default dependency. Then, select the script resource (ex. script-vss1) and click Add. After that, click Next.
- Check Retry Count or Failover Threshold and click Next.
- Set a data partition (ex. M: drive) and a cluster partition and click Finish.
- Add other resources if you need.
| Depth | Resource | Name | Remarks |
|---|---|---|---|
| 0 | Script resource | script-vss1 | NULL |
| 1 | Mirror disk resource for data and snapshots | md1 | M: drive |
- Setup a failover group.
- Add a script resource.
- Right click the failover group and click Add Resource.
- Select script resource for Type and set a resource name (ex. script-vss1) for Name. Then, click Next.
- Uncheck the box of Follow the default dependency and click Next.
- Check Retry Count or Failover Threshold and click Next.
- Click Finish.
- Add a mirror disk resource to save snapshots.
- Right click the failover group and click Add Resource.
- Select mirror disk resource for Type and set a resource name (ex. md-vss1) for Name. Then, click Next.
- Uncheck the box of Follow the default dependency. Then, select the script resource (ex. script-vss1) and click Add. After that, click Next.
- Check Retry Count or Failover Threshold and click Next.
- Set a data partition (ex. M: drive) and a cluster partition and click Finish.
- Add a mirror disk resource to save data.
- Right click the failover group and click Add Resource.
- Select mirror disk resource for Type and set a resource name (ex. md-data1) for Name. Then, click Next.
- Uncheck the box of Follow the default dependency. Then, select the mirror disk resource to save snapshots (ex. md-vss1) and click Add. After that, click Next.
- Check Retry Count or Failover Threshold and click Next.
- Set a data partition (ex. N: drive) and a cluster partition and click Finish.
- Add other resources if you need.
| Depth | Resource | Name | Remarks |
|---|---|---|---|
| 0 | Script resource | script-vss1 | NULL |
| 1 | Mirror disk resource for snapshots | md-vss1 | M: drive |
| 2 | Mirror disk resource for data | md-data1 | N: drive |
- WARNING: If the only md-vss1 has been activated for 30 minutes, Volume Shadow Copy histories will be deleted. In this configuration, the both md-vss1 and md-data1 should be running simultaneously.
- Start the failover group on the primary server.
- Add a Volume Shadow Copy Storage using GUI or vssadmin command. If you use vssadmin command, you need to add a schedule for Volume Shadow Copy manually.
- Move the failover group to the secondary server.
- Add a Volume Shadow Copy Storage using GUI or vssadmin command, again.
Ex. Save data and snapshots on the same volume (M: drive)
C:\> vssadmin add shadowstorage /For=M: /On=M: /MaxSize=UNBOUNDEDEx. Save data and snapshots on different volumes (M: and N: drive)
C:\> vssadmin add shadowstorage /For=N: /On=M: /MaxSize=UNBOUNDED- Right click the script resource (ex. script-vss1) and click Properties.
- Click Details tab.
- Select stop.bat and Edit button.
- Add following lines on the bottom of the script.
Ex. Save data and snapshots on the same volume (M: drive)
vssadmin list shadows
armsleep 1
vssadmin list shadows
armsleep 1
mountvol M: /PEx. Save data and snapshots on different volumes (M: and N: drive)
vssadmin list shadows
armsleep 1
vssadmin list shadows
armsleep 1
mountvol N: /P
mountvol M: /P- Start the failover group on the primary server.
- Update some files and take a snapshot.
- Move the failover group to the secondary server.
- Check if the snapshot you took on the primary server is available.
- Update some files and take a snapshot, again.
- Shutdown the secondary server.
- Check if the snapshot you took on the secondary server is available.