Specifications

Administration Guide
258 VMware, Inc.
ESX!Server!does!not!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!pane!in!
the!Options!tab
!of!the!Management!Interface.
Activate a Swap File
-w --activateswapfile
This!command!activates!the!specified!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.
You!can!find!the!fileID!tag!assigned!to!a!swap!file!in!the!swap!status!file,
!
/proc/vmware/swap/stats.
Migrate a VMFS from VMFS-1 to VMFS-2
-T --tovmfs2
This!command!converts!the!VMFS!volume!on!the!specified!partitions!from!VMFS1!to!
VMFS2,!while!preserving!all!files!in!the!volume.!ESX!Servers!locking!mechanism!
attempts!to!ensure!that!no!remote!ESX!Server!or!local!process!is!accessing!the!VMFS!
volume!that!is!being!converted.
N
OTE You!must!be!logged!in!to!the!Service!Console!with!root!user!permissions!to!activate!a!
swap!file.
NOTE You!must!be!logged!in!to!the!Service!Console!with!root!user!permissions!to!activate!a!
swap!file.
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.
NOTE If!you!have!an!active!swap!partition,!deactivate!it!before!running!this!command.!
Deactivate!swap!through!the!VMware!Management!Interface!and!reboot!your!server.!
After!this!vmkfstools!-T!command!completes,!you!can!reactivate!your!swap!file.