This chapter contains the following sections:
About VMware Datastores
A datastore is the storage repository for virtual machines and their data. A datastore can be either a Network File System (NFS) or Virtual Machine File System (VMFS). Cisco UCS Director provides a task library to create datastores from physical storage. Newly created and existing datastores are then used in VDC storage policies to provide a policy-based framework, from which you can select an appropriate datastore during VM provisioning. Datastores can also be identified as ISO image repositories to aid in ISO-based VM provisioning.
About VMware Datastore Clusters
A VMware datastore cluster is a collection of datastores with shared resources and a shared management interface. When you create a datastore cluster, you can use VMware vSphere Storage DRS to manage storage resources.
Integrating VMware Datastore Clusters With Cisco UCS Director
Cisco UCS Director allows you to manage VMware datastore clusters. You can add, edit and delete datastore clusters. Once a datastore cluster is added, the following operations are supported in Cisco UCS Director:
-
The datastore clusters are available along with datastores during Clone VM, Clone Template and Create New VM operations. If datastore clusters are selected, SDRS recommends the most suited datastore for VM provisioining.
-
The datastore clusters can be selected while adding a VMware Storage policy.
-
DRS affinity rules can be added to the datastore cluster.
For more information on using DRS affinity rules, see About VMware Distributed Resource Scheduler.
Adding Datastore Clusters
Procedure
Step1 | Choose Virtual > Storage. |
Step2 | On the Storage page, choose the cloud. |
Step3 | On the Storage page, click Datastore Clusters. |
Step4 | Click Create. |
Step5 | On the Create Datastore Cluster screen, complete the fields including the following:
|
Step6 | Click Submit. |
Viewing Datastore Cluster DRS Rule Reports
Procedure
Step1 | Choose Virtual > Storage. |
Step2 | On the Storage page, choose the cloud. |
Step3 | On the Storage page, click Datastore Clusters. |
Step4 | Click the row with the datastore cluster for which you want to view the associated DRS rules.. |
Step5 | Click View Details. |
Step6 | Click SDRS Rules to view the DRS rules associated with the datastore cluster. The DRS rules report displays the following types of rules:
|
Adding Datastore Cluster DRS Rules
Cisco UCS Director lets you add the following types of DRS affinity rules to a VMware datastore cluster:
-
Inter-VM Anti-Affinity -- This rule specifies virtual machines that should never be on the same datastore.
-
Intra-VM Anti-Affnity -- This rule specifies virtual disks, that are associated with a particular virtual machine, which must be on different datastores.
Note | Cisco recommends that you create DRS rules with unique names. Using duplicate names causes issues with the affinity type selection when modifying the datastore cluster DRS rule. |
Procedure
Step1 | Choose Virtual > Storage. | ||||||||||||||
Step2 | On the Storage page, choose the cloud. | ||||||||||||||
Step3 | On the Storage page, click Datastore Clusters. | ||||||||||||||
Step4 | Click the row with the datastore cluster to which you want to add a DRS rule. | ||||||||||||||
Step5 | Click View Details. | ||||||||||||||
Step6 | Click SDRS Rules. | ||||||||||||||
Step7 | Click Add. | ||||||||||||||
Step8 | On the Add Rule screen, complete the following fields:
| ||||||||||||||
Step9 | Click Submit. |
Enabling or Disabling Datastore Cluster DRS Rules
By default, when a Storage DRS rule is created, enabled, or disabled, the rule is created or updated, but not automatically applied. You can either run Storage DRS rules manually through VMware vSphere web client or wait until the scheduled period for the Storage DRS rule to run. You can modify the scheduled period to check imbalances under Advanced Options in the Storage DRS Runtime Settings using the VMware vSphere Web Client. By default the scheduled period is set for every 8 hours.
Procedure
Step1 | Choose Virtual > Storage. |
Step2 | On the Storage page, choose the cloud. |
Step3 | On the Storage page, click Datastore Clusters. |
Step4 | Click the row with the datastore cluster for which you want to enable or disable DRS rules. |
Step5 | Click View Details. |
Step6 | Click SDRS Rules. |
Step7 | Click Enable Intra VM Affinity or Disable Intra VM Affinity. |
Step8 | On the Enable VMDK Affinity Rule or Disable VMDK Affinity Rule screens, select the VMs on which to enable or disable the rule. |
Step9 | Click Submit. |