<?xml version="1.0"?>
<rss version="2.0">
<channel>
  <title>Megalomaniacal - rhel tag</title>
  <link>http://www.megalomaniacal.net/tags/rhel/</link>
  <description>Better than the best and harder than the rest.</description>
  <language>en</language>
  <copyright>drogoh</copyright>
  <lastBuildDate>Mon, 14 Jul 2008 21:26:34 GMT</lastBuildDate>
  <generator>Pebble (http://pebble.sourceforge.net)</generator>
  <docs>http://backend.userland.com/rss</docs>
  
  
  <item>
    <title>SCSI bus rescan</title>
    <link>http://www.megalomaniacal.net/2007/10/16/1192570674686.html</link>
    
      
        <description>
          Here&#039;s a good one that I had to deal with recently.&amp;nbsp; Two drives being removed and one going in its place.&amp;nbsp; The kicker is that they wanted zero downtime.&amp;nbsp; Cool, except there&#039;s no RAID and it&#039;s just a bunch of drives in the box.&amp;nbsp; Here&#039;s what I wound up following in order to re-read the new drive and flush out the old data:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
################### TO REMOVE DRIVE&lt;br /&gt;
&lt;br /&gt;
echo &amp;quot;scsi remove-single-device 0 1 2 3&amp;quot; &amp;gt; /proc/scsi/scsi&lt;br /&gt;
(replace &amp;quot;0 1 2 3&amp;quot; with your &amp;quot;Host Channel Id Lun&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
-- for us:&lt;br /&gt;
(SU-recover1)/var/log&amp;gt;cat /proc/scsi/scsi&lt;br /&gt;
Attached devices:&lt;br /&gt;
Host: scsi0 Channel: 00 Id: 00 Lun: 00&lt;br /&gt;
Vendor: FUJITSU Model: MAS3184NC Rev: 5B08&lt;br /&gt;
Type: Direct-Access ANSI SCSI revision: 03&lt;br /&gt;
Host: scsi0 Channel: 00 Id: 03 Lun: 00&lt;br /&gt;
Vendor: SEAGATE Model: ST336753LC Rev: 0006&lt;br /&gt;
Type: Direct-Access ANSI SCSI revision: 03&lt;br /&gt;
Host: scsi0 Channel: 00 Id: 05 Lun: 00&lt;br /&gt;
Vendor: SEAGATE Model: ST336753LC Rev: 0006&lt;br /&gt;
Type: Direct-Access ANSI SCSI revision: 03&lt;br /&gt;
Host: scsi0 Channel: 00 Id: 06 Lun: 00&lt;br /&gt;
Vendor: PE/PV Model: 1x6 SCSI BP Rev: 1.1&lt;br /&gt;
Type: Processor ANSI SCSI revision: 02&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--- want to remove the first seagate, after disabling in slot&lt;br /&gt;
&lt;br /&gt;
echo &amp;quot;scsi remove-single-device 0 0 3 0&amp;quot; &amp;gt; /proc/scsi/scsi&lt;br /&gt;
&lt;br /&gt;
############## TO RESTART&lt;br /&gt;
After you replace the drive and restart it&lt;br /&gt;
&lt;br /&gt;
echo &amp;quot;scsi add-single-device 0 1 2 3&amp;quot; &amp;gt; /proc/scsi/scsi&lt;br /&gt;
&lt;br /&gt;
It&#039;s rather straightforward for the technically minded folks.&amp;nbsp; Shame it requires echoing crap to /proc, since there be dragons in /proc
        </description>
      
      
    
    
    
    <comments>http://www.megalomaniacal.net/2007/10/16/1192570674686.html#comments</comments>
    <guid isPermaLink="true">http://www.megalomaniacal.net/2007/10/16/1192570674686.html</guid>
    <pubDate>Tue, 16 Oct 2007 21:37:54 GMT</pubDate>
  </item>
  
  </channel>
</rss>
