How to register Resource Types for Storage Foundation for Windows in a Microsoft Cluster environment
Problem
Volume Manager Diskgroup (VMDg) resource is not available to create the resource within Microsoft Failover Clustering.
Solution
Follow this procedure if, after the installation of Volume Manager, Volume Replicator or Storage Foundation in a Microsoft Cluster environment the Resource DLL's that are needed for proper operation are not present. Here are the commands that are needed to register the DLL's:
Un-registering DLL's in Storage Foundation for Windows 4.3:
1. cluster restype "Volume Manager Disk Group" /DELETE /TYPE
2. regsvr32 -u vxresext.dll
3. cluster /unregext:vxresext.dll
Registering the Volume Manager extension DLL and Resource Type:
1. regsvr32 vxresext.dll
2. cluster restype "Volume Manager Disk Group" /CREATE /DLL:vxres.dll /TYPE:"Volume Manager Disk Group"
3. cluster /regext:vxresext.dll
Registering the Volume Replicator extension DLL and Resource Type:
1. regsvr32 mscsrvgresourceex.dll
2. cluster restype "Replicated Volume Group" /CREATE /DLL:mscsrvgresource.dll /TYPE:"Replicated Volume Group"
3. cluster /regext:mscsrvgresourceex.dll
Windows 2003 and Storage Foundation for Windows 5.0 and 5.1:
Registering the Volume Manager extension DLL and Resource Type:
In Storage Foundation for Windows 5.0 and 5.1, there are scripts that can be used to register/un-register the Resource Type "Volume Manager Disk Group" and vxres.dll, vxresext.dll.
The scripts are located here: %vmpath%(SFW install dir/Veritas Volume Manager 5.1)/VM5INF/
ClusReg.cmd registers the Volume manager and associated DLL's automatically
ClusUnReg.cmd Un-registers the Volume manager and associated DLL's automatically
Registering the Volume Replicator extension DLL and Resource Type:
2. cluster restype "Replicated Volume Group" /CREATE /DLL:mscsrvgresource.dll /TYPE:"Replicated Volume Group"
3. cluster /regext:mscsrvgresourceex.dll
Windows 2008 and Storage Foundation for Windows 5.1:
In Windows 2008 the vxresext.dll and mscsrvgresourceex.dll do not need to be registered.
Manually registering the Volume Manager extension DLL and resource type in 2008:
CLI Command:
Cluster RESTYPE "Volume Manager Disk Group" /CREATE /DLL:vxres.dll /Type: "Volume Manager Disk Group"
To use the script in 2008 it has to be edited. It is the equivalent of running the CLI command.
ClusReg.cmd registers the Volume manager and associated DLL's automatically
ClusUnReg.cmd Un-registers the Volume manager and associated DLL's automatically
Change the ClusReg.cmd from:
cluster /REGEXT:vxresext.dll
exit
exit
You can install "Microsoft Failover Cluster" from the Storage Foundation Options even if Microsoft Clustering is not currently configured. If you choose to install this option "Microsoft Failover Cluster" even if Microsoft Clustering is not configured, you must manually register the VMDg and RVG resource after configuring Microsoft Failover Cluster.
Manually registering the Volume Manager extension DLL and resource type in Windows 2008/2008R2:
CLI command:
cluster RESTYPE "Volume Manager Disk Group" /CREATE /DLL:vxres.dll /Type: "Volume Manager Disk Group"
Manually registering the Volume Replicator extension DLL and resource type in Windows 2008/2008R2:
CLI Command:
cluster RESTYPE "Replicated Volume Group" /CREATE /DLL:MSCSRvgResource.dll /TYPE:"Replicated Volume Group" /ISALIVE:60000 /LOOKALIVE:5000
Windows 2012 and Veritas Veritas Storage Foundation for Windows 6.0.2:
By default the Failover Cluster Command Interface "RSAT-Clustering-CmdInterface" option under Microsoft Failover Clustering 2012 is not enabled, even if the "Failover Clustering" feature is selected for installation, so in some scenarios it may be required to add(register) VMDg and RVG resources manually by using one of the two options listed below:
Option 1 - Using Windows Powershell cmdlets:
1. Run the following command in Power Shell with an Administrator's account context (assuming the Failover Cpmmand Line Interface Feature is not installed):
PS Cmdlet:
Import-module failoverclusters
2. To register the VMDg resource type, type the following cmdlet:
PS Cmdlet:
Add-ClusterResourceType "Volume Manager Disk Group" C:\Windows\Cluster\vxres.dll -DisplayName "Volume Manager Disk Group"
3. To register the Replicated Volume Group (RVG) resource type, type the following cmdlet:
PS Cmdlet:
Add-ClusterResourceType "Replicated Volume Group" C:\Windows\Cluster\ mscsrvgresource.dll -DisplayName "Replicated Volume Group"
Option 2 - Using Cluster.exe command-line (assuming the Failover Command Line interface feature is installed and the cluster service is running on the node):
1. To register the VMDg resource type:
CLI Command:
cluster RESTYPE "Volume Manager Disk Group" /CREATE /DLL:vxres.dll /TYPE:"Volume Manager Disk Group"
2. To register the RVG resource type:
CLI Command:
cluster RESTYPE "Replicated Volume Group" /CREATE /DLL:mscsrvgresource.dll /TYPE:"Replicated Volume Group"
Note that in Windows 2012 you can simplify and automate creating of VMDg resources by using a power shell script that can be downloaded from the following article https://www.veritas.com/docs/000087561
If there is still a problem adding Volume Manager Disk Group (VMDg) or Replicated Volume Groups (RVG) resources:
Option 1: