What is storage policies-

This is a feature of Vmware vCenter. VMware administrators can create storage policies depend on the requirements. These policies can be assigned to virtual machines. Then we can easily identify that VM are placed on the correct storage layer.

Ex– We need to put development vms to SATA drives & critical vms to SAS drives.

How to do this?

To fullfill my requirment we need to creqat

Login to the vcenter

Select Tags & Custom Attributes

Select Categories

Select Add Category

clip_image001

Assign name for New Category

Click on “OK”

clip_image002

Now we have to create New Tags based on our requirement

Click on Tags

Select Add

 

With this example I have added two tags(SAS & SATA)

We can select Storage from category

clip_image003

We have created two tags as per following

clip_image004

Now we can create storage policies

Go to the VM Storage Policies

Click on Create VM storage policy

Assign name

Click on Next

clip_image005

Click on Next

clip_image006

Select storage from Tag based placement drop down list

clip_image007

Select correct tag(for this example SAS) from Tagged with any one of drop down list

clip_image008

Click on Next

clip_image009

Click on Finish

*note-Using same steps we have to create one more policy for SATA drives

clip_image010

As a next step we have to tag our datastores

Right click on the datastore

Select Tags & Custom Attributes

clip_image011

Select Correct tag(For this example I have tagged this drive as SATA

clip_image012

Now we have to apply correct storage policy for this.Since this is a critical vm we are going to keep this vm in a SAS drive. So I can apply Storage-SAS policy for this vm

clip_image013

This vm still in the datastore which has created by SATA disks. There for we can see the VM storage policy compliance status as Noncompliant

clip_image014