Sample Exchange

 View Only

vSAN Set Swap Chunk Size 

Dec 12, 2017 09:03 PM

This script will go through a single host, or each host in a designated cluster,
and set /Mem/SwapExtendChunkSizeInMB to either 0 or 65536

Used to mitigate KB 2150316
https://kb.vmware.com/kb/2150316

Tested on vSAN 6.6 and PowerCLI 6.5.4

Syntax is:
To Set to Max
Vsan-SetSwapChunkSize.ps1 -Target <Target> -Type <cluster/host> -ChunkSize max
To Set to Default
Vsan-SetSwapChunkSize.ps1 -Target <Target> -Type <cluster/host> -ChunkSize default

This is only applicable to ESXi hosts with vSAN 6.5 or greater

Blog covering this situation here:
https://blogs.vmware.com/virtualblocks/2017/12/12/virtual-machine-with-more-than-64gb-memory-fails-to-storage-vmotion-to-vsan-cluster/


#PowerShell
#vSAN
#Apache2.0
#StoragevMotion
#VMwarePowerCLI
#64GB
#SvMotion

Statistics
0 Favorited
0 Views
1 Files
0 Shares
0 Downloads
Attachment(s)
ps1 file
Vsan-SetSwapChunkSize.ps1   4 KB   1 version
Uploaded - Apr 09, 2024

Tags and Keywords

Related Entries and Links

No Related Resource entered.