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...
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.
You can simply pull the disk and reinsert when you're ready to start the rebuild. There's no need to manually offline the drive through the software.
You should approach the testing in a different manner. Run standard burn-in before deploying. Make sure HP agents and management alerts are in place. Keep hot or cold spare disks around. Use RAID 1+0. You do not need to do this for every server you bring online.
EDIT: Let me clarify that this won't simulate a catastrophic failure. This will gracefully remove a disk from an array. As the legendary E. W. White points out in the comments below, there is no (obvious) programatic way to abruptly remove a drive from an array.
You will use the
hpacucli tool with the
remove command to take a disk out of an array. The command takes the form of
<target> <command> [parameter=value]. An example command would be
controller slot=2 array A remove
I suggest perusing the HP Array Configuration Utility manuals.