Tuesday, May 30, 2017

Inducing Failures on a Virtual SAN cluster

The coolness of python scripts.

One of the many tools available for testing Virtual SAN is a buried python script called vsan.DiskFaultInjection.pyc. Located in the /usr/lib/vmware/vsan/bin directory, this utility can generate permanent or transient errors.

Using the -h option (for help), an administrator can see the options available for this command. Only to be used pre-production, this script can generate failures to allow the user to understand what happens in such cases.

Below is an example of what happens when a capacity disk is affected by such permanent failure. In the case of a raid5 virtual machine, the virtual machine would continue to run. If enough servers and/or disks are available, the rebuilding of the date would take place immediately.

Errors would be seen everywhere, notice the capture below.

The -c (clear option) would remove the injected error. Enjoy.

Source: http://www.mrvsan.com/using-the-error-injection-command-to-test-a-disk-failure/

No comments:

Post a Comment