UNSOLVED

schengps

updated

5 years ago

S

schengps

5 Posts

0

828

November 17th, 2021 14:00

using OMSA CLI to hot swap failed drive in RAID 5 array on PERC H730 Mini

I'm running a PowerEdge R730xd with a PERC H730 Mini controller. One of the drives in a RAID 5 array has failed. I'd like to hot swap the drive using the OMSA command-line interface. I haven't been running the web interface, and I would prefer not to have to reboot the server. I found the command on Dell's website to offline the disk: 

omconfig storage pdisk action=offline controller=0 pdisk=0:1:4

(to offline disk 0:1:4 on controller 0)

but didn't find a web page about using the CLI to start a rebuild with the new disk. After putting in a new disk, do I just need to use the assignglobalhotspare action? Will this start a rebuild?

omconfig storage pdisk action=assignglobalhotspare controller=0 pdisk=0:1:4

The controller also has a RAID 1 array on it with different disk sizes. In omconfig's help, I also see other actions like remove and rebuild. Do I need to also run the remove action before physically removing the disk, or is offline sufficient?