VMware Cloud Community
GuoJinL
Contributor
Contributor

About the policy "failures to tolerate" of Virtual SAN

Hello,everyone!

I have a question about the policy of Virtual SAN.

I created a VM Storage Policy for VSAN to set "Number of failures to tolerate" to 2.

And I run the following command: esxcli vsan policy getdefault. on one host of the cluster to confirm whether the Policy is effect or not.

The result is 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

~ # esxcli vsan policy getdefault

Policy Class  Policy Value

------------  --------------------------------------------------------

cluster       (("hostFailuresToTolerate" i1))

vdisk         (("hostFailuresToTolerate" i1))

vmnamespace   (("hostFailuresToTolerate" i1))

vmswap        (("hostFailuresToTolerate" i1) ("forceProvisioning" i1))

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

I think the policy is not effect.How can I make the policy effect?

Thank you very much.

Tags (1)
0 Kudos
4 Replies
depping
Leadership
Leadership

well there are two things here:

1) there is a default policy which is part of the system that will be applied when NO policy is selected. You showed that by running that command

2) you can create new policies with a higher FTT and you can simply bind that to a VM

So when you create a VM, select the policy you want to use (FTT=2) and you are good to go.

GuoJinL
Contributor
Contributor

Thank you for reply.

So I must select the policy(FTT=2) for each VM. Can I change the defautl policy? Because I want all of the VMs in the VSAN cluster to use FTT=2.

0 Kudos
depping
Leadership
Leadership

Yes you can change the default policy, but I would recommend selecting the right policy during provisioning instead.

0 Kudos
joergriether
Hot Shot
Hot Shot

As a side note - you even can set different policies for vmdk one and vmdk two within a single vm 😉 - Thus, this is very eclectic and you can literally mix policies as you like.

0 Kudos