vDCA550-Objective 1.2-4-Configure and administer profile-based storage

The characteristics of the LUN and how the LUN was designed play an important part in picking the proper datastore for the VM. Unfortunately, there is no visibility within vCenter Server into the characteristics of the storage. In addition, there is the issue of Storage DRS, which can allow DRS to migrate the VM files to another datastore. The last thing you want is to migrate an important virtual machine’s files to slow storage. You need to keep the important VM files located on the important datastores and the less important VM files on less important, or maybe slower, datastores. These are the kinds of problems that profile-based storage is attempting to solve.

From Web Client.

Following are the steps required to configure  Profile based Storage.

  • Define Category for Storage Objects
  • Define Tag against the categories (You can perform 1,2 steps in one actions)
  • Assign Tags/category to the Datastores.
  • Enable Storage Policies
  • Define Storage Policy
  • Assign Storage Policy to the VMs

1-Define Category for Storage Objects

From Webclient home-> Tag-> items -> Category-> Click on “+” sign

vDCA550-Obj-1-2-ProfileBaseStorage-01

Define the category and select the object type which associated to this category.

vDCA550-Obj-1-2-ProfileBaseStorage-02

Verify your added categories.

vDCA550-Obj-1-2-ProfileBaseStorage-03

2-Define Tag against the categories

On “Tag” tab -> Click “+” Sign -> Define the tag name and Select a category -> Click “OK”

vDCA550-Obj-1-2-ProfileBaseStorage-04

Verify your added tags.

vDCA550-Obj-1-2-ProfileBaseStorage-05

3-Assign Tags/category to the Datastores.

From Webclient Home -> Datastore -> Select your datastore -> Manage-> tags->  Click on Assign tag option.

vDCA550-Obj-1-2-ProfileBaseStorage-06

Select your desired Tag and category from the list and click “Assign”

vDCA550-Obj-1-2-ProfileBaseStorage-07

Similarly assign these tags/categories to other Datastores

4-Enable Storage Policies

From Webclient Home->Select “VM Storage policies”

vDCA550-Obj-1-2-ProfileBaseStorage-08

Click on the “Enable Sign” as highlighted to enable the VM Storage Policies.

vDCA550-Obj-1-2-ProfileBaseStorage-09

Click on the “Enable” button to enable the VM Storage Policies -> Click “Close”

vDCA550-Obj-1-2-ProfileBaseStorage-10

5-Define Storage Policy

Click On the “+” Sign as highlighted to create a new VM Storage Policy

vDCA550-Obj-1-2-ProfileBaseStorage-11

In Storage Policy Wizard. Enter the Storage policy “Name” and “description” -> Click “Next”

vDCA550-Obj-1-2-ProfileBaseStorage-12

Click “Next”

vDCA550-Obj-1-2-ProfileBaseStorage-13

Click “Add tag-based rule”

vDCA550-Obj-1-2-ProfileBaseStorage-14

Select the Category and Tag which you want to associate with this policy.

vDCA550-Obj-1-2-ProfileBaseStorage-15

Verify the newly added Rule based on the tag -> Click “Next”

vDCA550-Obj-1-2-ProfileBaseStorage-16

Wizard will automatically filter the datastore against the defined categories and tag. Verify it and click “Finish”

vDCA550-Obj-1-2-ProfileBaseStorage-17

Similarly define other Storage Policies if you want. At the end verify your define policies.

vDCA550-Obj-1-2-ProfileBaseStorage-18

6-Assign Storage Policy to the VMs.

To assign a storage policy to the VM. “Right Click on the VM” -> All vCenter Actions -> VM Storage Policies -> Click “Manage VM Storage Policies”

NOTE: make sure VM should be power off

vDCA550-Obj-1-2-ProfileBaseStorage-19

Select your “VM Storage Policy” from the Drop Down and Click “Apply to Disks”

NOTE: if you want to define different polices on both disks. Just select each disk one by one and then choose the required VM policy from the Drop down and click Apply to the disks button.

vDCA550-Obj-1-2-ProfileBaseStorage-20

If you check the highlighted setting. It shows VM Storage policy is “Not complaint”. It is because currently VM is on Local datastore and we want him to be Tier1 datastore.

vDCA550-Obj-1-2-ProfileBaseStorage-21

To make this VM compliance. Just “migrate: the VM on the “Tier1” datastore.

Right click on the VM and start migration wizard. In “select datastore” section. Due to storage policies it will tell you which datastore are compatible to this VM. Select any of compatible datastore -> Click “Finish”

vDCA550-Obj-1-2-ProfileBaseStorage-22

When the migration finished. It will not automatically change the status from” not complaint” to “complaint”. To Make the VM Compliant check the “VM Storage policy compliant” against the VM.

Right Click on the VM -> All vCenter Actions-> VM Storage Policies-> Check “VM Storage Policy Complaint”.

vDCA550-Obj-1-2-ProfileBaseStorage-23

Verify your VM is in complaint state as highlighted below.

vDCA550-Obj-1-2-ProfileBaseStorage-24

Advertisements

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s