Installation guide
www.vmware.com
304
VMware ESX Server Administration Guide
You can resize an existing swap file by specifying the new file size as an argument to
the -k option:
1. Deactivate the swap file, if it is active, with vmktools -y.
2. Resize the swap file with the -k option.
3. Activate the swap file with vmktools -w filename.
If you try to resize an active swap file, ESX Server returns an error message.
ESX Server does not automatically activate a swap file after it is created. Use
vmkfstools with the -w option to activate a swap file. You can set a swap file to be
activated automatically after a system reboot with the Activation Policy option of the
Swap Management section in the Options tab of the Management Interface.
Activate a Swap File
-w --activateswapfile
This command activates the specified swap file.
Note: You must be logged in to the Service Console with root user permissions to
activate a swap file.
Deactivate a Swap File
-y --deactivateswapfile <fileID>
ESX Server assigns a fileID tag to a swap file when it is activated. You must identify
a swap file by its fileID tag when specifying which swap file to deactivate with the
-y option.
Note: You must be logged in to the Service Console with root user permissions to
activate a swap file.
You can find the fileID tag assigned to a swap file in the swap status file, /proc/
vmware/swap/stats.
Note: You must shutdown all virtual machines before deactivating a swap file.
Entering a vmkfstools -y command returns an error message if any virtual
machines are powered on.
Migrate a VMFS from VMFS-1 to VMFS-2
-T --tovmfs2
This command converts the VMFS volume on the specified partitions from VMFS-1 to
VMFS-2, while preserving all files in the volume. ESX Server’s locking mechanism
attempts to ensure that no remote ESX Server or local process is accessing the VMFS
volume that is being converted.