HowTo: Adding HotSwap Disks to a System
This Howto describes the possibilities to hot add new disks to a running system.
This HowTo is "Work in Progress" and therefore neither complete nor free of errors, both in writing and content.
We are in no way responsible for crashed systems, loss of data or nights spent repairing computers.
Remember: you should back up your data!
Scenario:
a well working linux server attached to a storage via scsi with, say, 750GB of HD space in a raid 5.
Now we want to add new (and probably bigger) HDDs to the storage, which still has some empty slots.
- To insert the disks into the storage should be no problem: cradle out - HDD mounted - cradle in.
- Make the new disks known to the storage controller (most likely this has already taken place in the time you need to start the application)
- Create a new Logical Disk out of the new physical disks, something like a raid 5 or raid 6
- Create a new Logical Volume (ore more than one)
- Initialize the LD/LV
- Map the new LD/LV to one or more LUN(s)
The easiest (but not the most elegant) way is to unload and reload the driver/module for the controller card.
On reload the controller scans all available drives/disks and makes them known to the system.
Some distros have tools like "hotadd", scsidev or the like.
If possible, use them because unloading/loading a module for an active card can get you into trouble very fast!