VSAN-Troubleshooting-Reference-Manual
VSAN-Troubleshooting-Reference-Manual
VSAN-Troubleshooting-Reference-Manual
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Diagnostics and <strong>Troubleshooting</strong> <strong>Reference</strong> <strong>Manual</strong> – Virtual SAN<br />
Removing orphaned vswp objects from the Virtual SAN datastore<br />
As mentioned, in Virtual SAN 6.0, VMware has provided an RVC tool to clean up<br />
stranded vswp objects that are now inaccessible. This tool will purge all inaccessible<br />
vswp objects from the Virtual SAN datastore and allow a full data evacuation to take<br />
place.<br />
To ensure that the object is a vswp object and not some other object, the tool finds<br />
the active data components and reads the extended attributes that will tell us<br />
whether or not it is a vswp object.<br />
Note that if the inaccessible object only contains witness and there are no active<br />
data components, Virtual SAN cannot read the extended attributes, so it cannot<br />
determine if the stranded object is vswp object or some other object. However,<br />
assuming that the virtual machine was deployed with a<br />
NumberOfFailuresToTolerate=1 attribute, then there is 2 in 3 chance that the<br />
remaining component for the vswp object is an active data component and not the<br />
witness.<br />
In the case where the remaining component of the object is indeed the witness, the<br />
command will allow a user to force delete those witness-only objects.<br />
Caution: Extreme caution needs to exercise here because this command will also allow<br />
you to force delete non-vswp objects (which may cause a real data loss). If you are not<br />
completely sure that this is indeed a vswp object, please contact GSS for support with<br />
the upgrade.<br />
vsan.purge_inaccessible_vswp_objects<br />
> vsan.purge_inaccessible_vswp_objects -h<br />
usage: purge_inaccessible_vswp_objects [opts] cluster_or_host<br />
Search and delete inaccessible vswp objects on a virtual SAN cluster.<br />
cluster_or_host: Path to a ClusterComputeResource or HostSystem<br />
--force, -f: Force to delete the inaccessible vswp objects quietly (no<br />
interactive confirmations)<br />
--help, -h: Show this message<br />
If a vswp object goes inaccessible, this virtual machine will be unable to do any<br />
swapping. If the ESXi tries to swap this virtual machines pages while the vswp file is<br />
inaccessible, this may cause the virtual machines to crash. By deleting the<br />
inaccessible vswp object, things are not any worse for the virtual machine. However,<br />
it does remove all possibility of the object regaining accessibility in future time if<br />
this inaccessibility is due just a temporary issue on the cluster (e.g. due to network<br />
failure or planned maintenance). The command to purge inaccessible swap objects<br />
will not cause data loss by deleting the vswp object. The vswp object will be<br />
regenerated when the virtual machine is next powered on.<br />
V M W A R E S T O R A G E B U D O C U M E N T A T I O N / 1 7 6