Linux – How to take a physical drive offline using HP P410i RAID card

hphp-prolianthp-smart-arraylinuxstorage

How do you take a physical drive offline using HP P410i RAID card ?
Specifically in a RAID1 array I want to use hpacucli tool to take a physical drive offline then online to test if RAID1 array recovers…

Best Answer

If you were using a controller that supported external storage, you could place one drive in a JBOD and one drive in the server. Some PDU's are controllable via the network, which would let you remotely kill power to the JBOD and cause the controller to experience a true drive failure.

Since you only have a P410i, though, you don't have a lot of options. There's no real way to simulate a physical failure like that using software. There are hardware-based solutions, like this one that electrically disconnects a drive's SAS lanes to simulate a hotplug. However, these are likely far too pricey for the limited testing that you are doing. Your best bet is to physically pull the drive.