Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have hot swap drives and controllers, but have never actually used the hot swap capability. What is the procedure for doing so? Do I need to warn Linux that I'm about to pull a drive out? Should I do anything after I put a drive back in? Does it make a difference whether the drive is part of a RAID set?

The drives are generally RAIDed, but not always. Any RAID sets are managed by Linux, rather than the controller. The machines are running Fedora and CentOS.

share|improve this question
1  
Way too little information.... What RAID level? What motherboard? Are the controller drivers installed in Linux? Is the BIOS set to allow hot swap? –  Canadian Luke Jun 18 '12 at 19:15

1 Answer 1

Before removing a drive you need to ensure that it is not being used. This means at least unmounting any filesystems, and preferably making VGs unavailable and stopping MD arrays. After that you can simply remove the drive. Adding drives should Just Work (you should see it being detected in dmesg and the device should appear).

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.