Answer the question
In order to leave comments, you need to log in
Emulating power/disk/network failure in VMWare ESXI5?
Tell me how to produce a subject in ESXI 5 that is as close to the real one as possible? I decided to test freenas for some needs. Or is it better to immediately abandon this division?
Answer the question
In order to leave comments, you need to log in
Tests on the hypervisor will give you practically nothing, since real contingency situations in all three cases can give rise to unique and purely hardware glitches.
The maximum that can be caught in this way is software errors in user-mode software: jambs in scripts associated with non-overwritten lock / pid files from demons (during a power failure), etc.
But if you really want to, then why not:
1. Power failure is emulated very simply: if the virtual machine is without VMWare Tools, then the shutdown command for it is equivalent to turning off the machine.
2. On network failure: in the ESXi console, just go to the properties of the virtual machine and disable the network adapter.
3. It is pointless to emulate a disk failure at all, because a disk corruption failure is one thing, but if the disk silently died when no one disturbed it, this is almost equivalent to situation #1.
As I understand it, you need to do this:
1. power: restart the host
2. disk: I unmount the disk / volume on the storage side
3. network: I guess it’s enough to “spoil” the NIC / SW settings both on ESX and on network equipment (if equipment supports)
PS on all 3 points, you can tritely “throw boots on the control panel”, pull out the power, unscrew the disk or cut the power cord, but this is not sports
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question