Reply to Message

View discussion in a popup

Replying to:
pkvmw
VMware Employee
VMware Employee

Hi,

can you please be more specific where you would like to simulate a disk failure? I doubt you can fake a disk failure on a virtual disk of a VM, as it's a virtual disk. The VM, or more precisely the Guest OS, should not care about any underlying disk failures.

If you're speaking about faking disk failures on ESXi, you can do that by using some internal commands to do so. But noteworthy, best not to run this on crucial production hosts obviously.

To inject PDL (Permanent Device Loss):

vsish -e set /reliability/vmkstress/ScsiPathInjectError 1
vsish -e set /storage/scsifw/paths/<path of the device/PE >/injectError 0x013E0400000002 update

To clear the PDL state:

vsish -e set /storage/scsifw/paths/<path of the device/PE >/injectError 0x000000
vsish -e set /reliability/vmkstress/ScsiPathInjectError 0

To check available disk paths:

vsish -e ls /storage/scsifw/paths/

Does this answer your question?

Reply
0 Kudos