If virtual machine configuration is already dependent on "Cluster Extension 3PAR for VM Management", then the cmdlet moves to the next virtual machine configuration on a CSV.

However if there is no existing dependency on "Cluster Extension 3PAR for VM Management" but resource of this type is already existing in the VM role, virtual machine configuration resource is made dependent on the existing "Cluster Extension 3PAR for VM Management" type resource. If it is not present, a new resource of type "Cluster Extension 3PAR for VM Management" is created and virtual machine configuration resource is made dependent on it.

While creating the dependency virtual machine configuration resource should be offline else dependency is not created.

If a virtual machine configuration is residing on a cluster shared volume which is not dependent on resource of type "Cluster Extension 3PAR", then an error is thrown and no further operations are performed on that VM.

PS C:\> Add-VMDependencyOnCLX3PAR

Logs will be generated with default "info" log level. For changing the logging level, configure LogLevel parameter in UCF.cfg file at file location: C:\Program Files\Hewlett-Packard\Cluster Extension 3PAR\conf\ UCF.cfg

Cmdlet Log Location: C:\Program Files\Hewlett-Packard\Cluster Extension 3PAR\log\CLXCmdlet.log

Add-VMDependencyOnCLX3PAR

All VM residing in cluster will be made dependent on CLX 3PAR. Continue? [Y] Yes [N] No [S] Suspend [?] Help (default is "Y"): y

Starting with the steps to create and add dependency of virtual machines residing on CSV on "Cluster Extension 3PAR for VM Management".

TOTAL VIRTUAL MACHINE(S) IN THE CLUSTER: 1

VM role: "New Virtual Machine" is present on cluster shared volume : "Cluster Disk 1" which is not dependent on resource of type "Cluster Extension 3PAR". Ensure that cluster shared volume is made dependent on "Cluster Extension 3PAR" before doing further operations.

Resource of type "Cluster Extension 3PAR for VM Management" to be created with Name: "CLX_3PAR_New Virtual Machine" in virtual machine role "New Virtual Machine"

Created the resource "CLX_3PAR_New Virtual Machine" in virtual machine role: "New Virtual Machine"

Added the dependency of Virtual Machine Configuration in VM Role New Virtual Machine" on "Cluster Extension 3PAR for VM Management" type resource: "CLX_3PAR_New Virtual Machine"

Virtual Machine Role

CLX Resource

Name

New Virtual Machine

CLX_3PAR_New

Virtual Machine

Total virtual machines in the cluster residing on CSV: 1

TOTAL VIRTUAL MACHINES IN THE CLUSTER FOR WHICH CLX 3PAR DEPENDENCY ADDED: 1

Example 2

C:\PS>Add-VMDependencyOnCLX3PAR -CSVDiskName "Cluster Disk 1"

This command first finds out all the virtual machine configurations which are residing on the cluster shared volume "Cluster Disk 1". After getting all virtual machine configurations on the provided

64 CLI commands and utilities