While the FlashArray GUI, REST, and CLI interfaces can be used for both per-VM and per-virtual disk vVol operations, a major advantage of vVols is management of vVols from within vCenter. VMware administrators can use the Web Client or any other VMware management tool to create array-based snapshots of vVol-based VMs.
To take a snapshot of a vVol-based VM with the Web Client, right-click the VM in the inventory pane, select Snapshots from the dropdown menu, and Take Snapshot from the secondary dropdown to launch the Take VM Snapshot for vVol-VM wizard. With vSphere 7.0 and higher in the HTML client Manage Snapshots has it's own tab again on the VM View. Snapshots can be managed, taken, reverted and deleted from this view.
|
vSphere Client View - Right Clicking a VM to Take a Snapshot |
|---|
|
vSphere Client View - Snapshot Management View |
|
vSphere Client View - Managed Snapshot Wizard |
Enter a name for the snapshot, a description (optional) and optionally check one of the boxes:
Snapshot the virtual machine’s memory:
Causes the snapshot to capture the VM’s memory state and power setting. Memory snapshots take longer to complete, and may cause a slowdown in VM response over the network.
Quiesce guest file system:
VMware Tools quiesces the VM’s file system before taking the snapshot. This allows outstanding I/O requests to complete, but queues new ones for execution after restart. When a VM restored from this type of snapshot restarts, any queued I/O requests complete. To use this option, VMware Tools must be installed in the VM. Either of these options can be used with vVol-based VMs.
VMware administrators can also take snapshots of vVol-based VMs with PowerCLI, for example:
New-Snapshot -Name NewSnapshot -Quiesce:$false -VM vVolVM -Memory:$false
|
vSphere Client View - vVols based VM's New Files |
|---|
When a snapshot of a vVol-based VM is taken, new files appear in the VM’s vVol datastore folder.
The files are:
VMDK (MSSQL-VM-01-000001.vmdk)
A pointer file to a FlashArray volume for the managed snapshot. If the VM is running from that VMDK, the file points to the data vVol that will have the active bind. If the VM is not running from that snapshot VMDK, the file points to a data vVol that is not bound. As administrators change VMs’ running states, VMware automatically re-points VMDK files.
Database file (MSSQL-VM-01.vmsd)
The VMware Snapshot Manager’s primary source of information. Contains entries that define relationships between snapshots and the disks from which they are created.
Memory snapshot file (MSSQL-VM-01-Snapshot7.vmsn)
Contains the state of the VM’s memory. Makes it possible to revert directly to a powered-on VM state. (With non-memory snapshots, VMs revert to turned off states.) Created even if the Snapshot the virtual machine’s memory option is not selected.
Memory file (not shown)
A pointer file to a memory vVol. Created only for snapshots that include VM memory states.
Creating a Managed Snapshot Without Saving Memory
If neither Snapshot the virtual machine’s memory nor Quiesce guest file system is selected, VMware directs the array to create snapshots with no pre-work. All FlashArray snapshots are crash consistent, so snapshots of vVol based-VMs that they host are likewise at least crash consistent.
The managed snapshot process for vVols comes in two parts: Prepare to Snapshot Virtual Volume (prepareToSnapshotVirtualVolume) and then Snapshot Virtual Volume (snapshotVirtualVolume). When a vSphere user initiates a managed snapshot operation vSphere will communicate with the array's VASA Provider to in the following method: