Quick and easy post on VCAP objective with regards to vSphere storage profiles.
Profile driven storage is a great way to efficiently manage storage capabilities, its usage and associated cost. In a simple words: Let’s say customer’s on-premis or cloud-based VDC contains some LUN from cheap SAN that uses 2TB 7k drives (inexpensive and average performance) and another LUN from Enterprise grade SAN that uses SSDs. (expensive – high performance). Without storage profiles, Administrator (or someone who deploys VM’s) would need to remember which datastore belong to specific LUN, and it gets even more complicated in the multi tenant environment with loads of datastores.
Defining storage profiles enables more efficient management of virtual data centres, saves cost and simplifies administration. Moreover products such as vCloud Director seamlessly integrates and allow the use of storage profiles when creating customers VDCs.
Lab presents creating 2 different storage profiles (‘BigDaddy’ and ‘SlowlybutSurely’) and associating one with VM. I find it much quicker to configure using fat client but vSphere web client can be used instead.
Step1. Create User defined storage capabilities
In vSphere client navigate to Home -> VM Storage Profiles, select Manage Storage Capabilities Here I create couple of user defined capabilities – bronze (slow cheap storage) and gold (fast SSD-backed storage)
Step2. Assign user-defined storage capabilities.
Navigate to Storage View and select datastore (for fast storage) -> right click and select Assign user-defined storage capability, on the pop up screen select the capability. In my case Gold profile has been assigned to Datastore A & B, Bronze to Datastore C.
Step 3. Enable profile driven storage on the cluster.
Navigate to Home -> VM Storage Profiles -> Select Enable VM storage profiles on the top bar menu.
Wait until the status changes to Enabled.
Step 4. Create VM storage profiles.
Navigate to Home -> VM Storage Profiles -> Select Create VM storage profile.
Here’s where profiles are created and capabilities are assigned to those.
Created ‘BigDaddy‘ for Gold capability (fast SSD-backed storage) :
and ‘SlowlybutSurely’ for Bronze capability (cheaper storage):
Step 5. Associate the storage profile with Virtual machine
Select Virtual Machine, right client -> VM Storage Profile -> Manage storage profiles
Select the appropriate profile and click on -> propagate to disks.
Step 6. Check VM storage policy compliance
Navigate to VM which has associated storage profile and click on Summary tab,
Find panel ‘VM Storage Profiles’
If the VM is currently on datastore which has none or different profile associated, the Non-Compliant error will be displayed.
If that’s the case, use Storage vMotion to move it’s data onto compliant datastore, once that’s done check the summary page again.
New options are now available when deploying new VM’s during storage selection allowing storage profile to be selected.
Moreover vCloud Director also allows to use of the same storage profiles.
Hope that helps!