In this series of vSAN, In last post we have worked on how to create storage policy in the vSAN. In this post we will see on How to assign vSAN Storage policy to the virtual machine. We will also see on how the virtual machine files are replicated based on the storage policy. Once you create the storage policy it is very easy to assign the storage policy to the VM which we will see in this post.
You can also assign the storage policy using many ways such as when you create a VM, at the time of storage selection you can choose and specify the storage policy and vSAN Datastore to be applied to the virtual machine. When your VM is stored on shared storage and you have already created a storage policy so at the time of storage migration you can choose and specify the storage policy and vSAN Datastore.
Based on the vSAN Storage policy virtual machine will be stored on the vSAN Datastore. As we have already learned about the storage policies in the vSAN in this series of vSAN so if you haven’t checked yet i recommend you to check that also. Links are available at the end of this post.
So Let’s see How to assign vSAN Storage Policy to the VM:
Login the vSphere web client.
Right click the VM on which you want to assign policy.
VM Policies > Edit VM Storage Policies.
Choose the VM Storage Policy from the Drop Down.
Click Apply to all, to apply storage policy to all the objects.
As you can see below VM Storage policy is being changed.
Click OK to save and close wizard.
You can see in the Summary section of the VM which storage policy is assigned to the VM.
If you want to see the Placement of the objects of virtual machine. Then Select the virtual machine go to Monitor Tab.
Select Policies under Monitor tab.
Choose the Object and select Physical Disk Placement to see the placement of the objects in the vSAN Datastore.
Using this way you can easily assign the vSAN Policy to the virtual machines and see their objects placements to verify that policy is compliant. If you haven’t created a vSAN policy yet then check our previous post for more.
Checkout our Posts on vSAN:
That’s it for Today Friends. I Hope you liked reading this post & If you find anything more to be added or removed feel free to write it in our comments. If you find it useful You are Feel free to share this on social media to help others & spread knowledge.
If you have any query on any thing you are free to write it in our comments section & we will make sure to provide you the better solution as soon as possible.