User Tools

Site Tools


os:linux:general:hotswapscsi

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
os:linux:general:hotswapscsi [2010/02/09 19:21]
crustymonkey created
os:linux:general:hotswapscsi [2010/02/09 20:38] (current)
crustymonkey
Line 2: Line 2:
 I found some valuable Linux specific hotswap stuff today for working with hot-swappable SCSI disks. ​ This should be pretty distro agnostic as well.  I've been using FreeBSD, where you use camcontrol/​atacontrol,​ for so long now that I had kind of forgotten how to do this stuff in Linux. ​ Now it's time to make a record. I found some valuable Linux specific hotswap stuff today for working with hot-swappable SCSI disks. ​ This should be pretty distro agnostic as well.  I've been using FreeBSD, where you use camcontrol/​atacontrol,​ for so long now that I had kind of forgotten how to do this stuff in Linux. ​ Now it's time to make a record.
  
-===== Checking What is Currently in the System =====+====== Checking What is Currently in the System ​======
 Good ol' linux and it's ''​proc''​ pseudo-filesystem. ​ Essentially,​ all we are doing is checking a file and echoing commands into the same file for all our operations. ​ The magic file here is **''/​proc/​scsi/​scsi''​**. Good ol' linux and it's ''​proc''​ pseudo-filesystem. ​ Essentially,​ all we are doing is checking a file and echoing commands into the same file for all our operations. ​ The magic file here is **''/​proc/​scsi/​scsi''​**.
  
Line 45: Line 45:
 </​code>​ </​code>​
  
-===== Removing a Device =====+====== Removing a Device ​======
  
 Now, first I want to remove the first device since it failed. ​ Then we will see that it no longer shows up. Now, first I want to remove the first device since it failed. ​ Then we will see that it no longer shows up.
Line 152: Line 152:
  
 Now you can use your disk: ''/​dev/​sdc''​. Now you can use your disk: ''/​dev/​sdc''​.
 +
 +====== Scan for New Devices ======
 +
 +You can also use the following to scan the SCSI bus for new devices:
 +
 +<​code>​
 +# echo 'scsi scan-new-devices'​ > /​proc/​scsi/​scsi
 +</​code>​
 +
os/linux/general/hotswapscsi.1265743273.txt.gz · Last modified: 2010/02/09 19:21 by crustymonkey