My NAS at home is a Synology virtual machine (Xpenology) running on ESXi, with the motherboard’s Intel SATA controller passed through to it and four drives attached. Over the past year it has inexplicably lost its drives six times: the four drives on the passed-through controller all dropped out in the same second, the storage pool went straight to Crashed, and a reboot made everything fine again. Sometimes 3 days apart, sometimes more than six months, with no pattern whatsoever.
Every previous time I’d just rebooted and left it at that; this time I resisted, logged in and read the kernel log. The drives and cables turned out to be fine: it was DSM’s own irqbalance trying to move the passed-through controller’s interrupt to another CPU. On bare metal the device would go along with that, but with ESXi passthrough the change is simply ignored and the interrupt keeps going wherever it went at boot. That did no harm as long as the kernel kept the old slot, until one day it freed it (do_IRQ: 0.145 No irq handler for vector): the driver never received another interrupt, every command to the four drives timed out, and in the end the kernel disabled them one by one.
The fix is to start irqbalance with --banirq so that it leaves this interrupt alone. After the change I rebooted, the NAS was back two minutes later and the storage pool reassembled itself. Below is a record of how I got there.




