MegaCli64: unconfigured good to JBOD

Today’s task is to add a JBOD drive back into a live Dell PERC H730 with BBU using the MegaCLI64 application. Every man jack has a page on adding a drive back into an array (including myself).

A drive has been chucked out as MISSING by a replacement and some rather intensive IO operation rebuilding software based distributed storage – engineers pulling the “not me” body language.

It is not being picked up by fdisk -l or diskhotswap list – but showing as UNCONFIGURED GOOD and on closer inspection – also showing FOREIGN on some pages. I can heart the Brexiteers & Daily Mail readers eyes narrowing and sweating forming from here.

Having installed the MegCli64 tool and floundered around with existing rules – it is, of course, a passthrough or JBOD drive (albeit with adaptive WB cache with BBU and so on) – I listed out the drives and identified the one that was considered foreign. So let’s solve this:

This page has the bit I was missing in terms of clue for adding a JBOD drive (although it was adding loads and I just wanted one) – every man jack has links to configuring various RAID arrays and adding in drives and so such, and a fair few on changing all to JBOD but I was super failing on finding a means to add a single drive. So yay person who owns this: https://danielparker.me/til/megacli/megaraid/mega-cli-TIL/