Specifications

VMware, Inc. 257
Chapter 9 Storage and File Systems
Scans the specified vmhba adapter for devices and LUNs
s!‐‐scan!<FC_SCSI_adapter>
This!option!is!useful!for!adapters!connected!to!storage!area!networks,!particularly!if!
you!are!reconfiguring!your!SAN.!If!a!new!device!or!LUN!becomes!accessible!through!
the!adapter,!ESX!Server!registers!this!new!virtual!device!for!use!by!virtual!machines.!If!
an!existing!device!or!LUN!is
!no!longer!used!and!appears!to!be!gone,!it!is!removed!from!
use!by!virtual!machines.
You!can!see!the!results!of!the!scan!by!using!ls!/vmfs!or!looking!at!the!contents!of!
/proc/vmware/scsi.!
Create or Resize a Swap File in a VMFS Volume of the specified SCSI
device
-k --createswapfile #[gGmMkK]
The!size!is!specified!in!bytes!by!default,!but!you!can!specify!the!size!in!kilobytes,!
megabytes,!or!gigabytes!by!adding!a!suffix!of!k!(kilobytes),!m!(megabytes),!or!g!
(gigabytes),!respectively.!
You!can!resize!an!existing!swap!file!by!specifying!the!new!file!size!as!an!argument!to!
the!
-k!option.
To resize the swap file
1 Deactivate!the!swap!file,!if!it!is!active,!with vmktools -y.
2Resize!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.
N
OTE Use!this!command!if!you!are!certain!that!no!other!ESX!Server!is!accessing!the!file!
system.
NOTE VMware!recommends!that!you!use!the!cos-rescan.sh!command!rather!than!this!
option!to!vmkfstools.
NOTE Use!the!-s!option!only!for!Fibre!Channel!adapters.
NOTE You!must!be!logged!in!to!the!Service!Console!with!root!user!permissions!to!create!a!
swap!file.