Hi,
I am working with a customer who has implemented a new 4 node Virtualised SAN solution. They now only have enough Veeam licenses for half of their sockets and no budget this year to upgrade Veeam.
The bandaid solution is to get all VM's in the small environment migrated to 2 of the hosts, run the backups then, rebalance the VM's. The options we considered are:
1) place two hosts in maintenance mode and and shut down the Virtual SAN appliance on each node
2) Turn off DRS, discover all VM's on two hosts and vMotion them off, excluding the Virtalised SAN Appliances
I have been able to script option 1 but it really is a bad solution considering it takes half of the SAN offline. The reason we are shutting down the SAN nodes is that the enter maintenance mode task will not complete with them running.
Option 2 is my preferred option however I do not know how to use the Get-VM set of commands to get all VM's excluding the names of the Virtualised SAN nodes.
Does anyone have any previous experience with Pre / Post backup scripts to achieve what we are trying to do?
Cheers in advance.
script 1:
Add-PSSnapin VMware.VimAutomation.Core
Connect-VIServer 10.20.1.212 -User administrator@vsphere.local -Password ##### (not encrypted yet)
Get-VMHost -Name 10.x.x.x | Set-VMHost -State Maintenance -Evacuate