Unfortunately, hot-swapping an eSATA drive is a bit more complicated than hot swapping a USB drive.
First off, your BIOS needs to support AHCI (click here for more info on AHCI), and your SATA controller also needs to support it as well. Secondly your OS, needs to specifically support hot plug, and in the case of Windows 7, it wont boot if you change to AHCI after the OS has been installed.
So, In my case I need to update firmware on lots of SATA SSDs and want to do so without rebooting, and without worrying about changing bios settings. So in order to keep things simple, I followed the procedure below.
First, you need to detect your drive. So watch dmesg to see what drive letter is assigned to your new disk upon initial connection.
There are several tools that you can use to monitor and configure and LSI SAS controller, however as I have found, some are easier than others to use and some do not always display the correct information.
In my case my controller is a SAS 9260-8i, and when building a server I always make sure that I install the MegaRaid Storage Manager gui for configuring disks and setting up email alerts. However I have often found that this tool is sometimes confusing to use for other tasks so I also make sure that I install the MegaCLI (command line interface). Both utilities can be downloaded directly from LSI here.
MegaRaid Storage Manager installs to /usr/local/MegaRAID Storage Manager, while the cli installs via rpm to /opt/MegaRAID/MegaCli.
Anyway to check the battery status run the following (note i am running 64 bit os)
#>./MegaCli64 -AdpBbuCmd -aAll
Your output will be lengthy – but look for the line below to know if you need to replace your BBU.
Battery Replacement required : Yes
Two additional usefully commands are:
megacli -AdpAllInfo -aALL
lists all the adapters in the machine
megacli -PDList -aALL
lists all disks and enclosures
Note that there is an open source CLI called Megactl, and while its quick and easy to use to see a quick list of your disks and their statuses, its not shown itself to be accurate when it comes to detecting whether or not a battery has failed. You can get it here