Swap vVols

User Guides for VMware Solutions

Audience
Public
Content Type
User Guides
Source Type
Documentation

VMware creates swap files for VMs of all types when they are powered on, and deletes them at power-off. When a vVol-based VM is powered on, VMware directs the array to create a swap vVol, and creates a swap (.vswp) file in the VM’s config vVol that points to it.

vCenter UI View - vVol DS Browser - Powered Off VM Files

Illustrates the components of a powered-off vVol-based VM. There is no vswp file.

FlashArray UI View - Volumes for Powered Off vVol based VM

The VM’s volume group does not include a swap volume.

To power on a vVol-based VM, right-click it in the Web Client inventory pane, select Power from the dropdown menu, and Power On from the secondary dropdown.

vCenter UI View - Powering On the VM

When a VM is powered on, the Web Client file navigator lists two vswp files in its folder.

vCenter UI View - vVol DS Browser - Powered On VM Files

Note:

VMware creates a vswp file for the VM’s memory image when it is swapped out and another for ESXi administrative purposes.

The swap vVol’s name in the VM’s volume group on the array is Swap- concatenated with a unique identifier. The GUI Volumes tab shows a volume whose size is the VM’s memory size.

FlashArray UI View - Swap Volume for Powered On VM

vCenter UI View - VMs Virtual Memory Size

Like all FlashArray volumes, swap vVols are thin-provisioned—they occupy no space until data is written to them.

To power off a vVol-based VM, right-click it in the Web Client inventory pane, select Power from the dropdown menu, and Shut Down Guest OS from the secondary dropdown.

vCenter UI View - Command to Shutdown the Guest OS

When a VM is powered off, its vswp file disappears from the Web Client file navigator, and the FlashArray GUI Volumes tab no longer shows a swap volume on the array.

FlashArray UI View - Powered Off VM's Volumes (note there is no swap)

VMware destroys and immediately eradicates swap vVols from the array. (They do not remain in the Destroyed Volumes folder for 24 hours.)

FlashArray UI View - Audit log of operations to destroy and eradicate Swap