    <rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:admin="http://webns.net/mvcb/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:content="http://purl.org/rss/1.0/modules/content/">
     <channel>
        <title>Linux.com :: How does the SCSI driver and Linux handle tape errors ?</title>
        <link>http://www.linux.com/archive/forums/topic/1880</link>
        <description>Everything Linux and Open Source</description>
        <dc:language>en-us</dc:language> 
        <dc:creator>Linux.com Admin</dc:creator> 
        <admin:generatorAgent rdf:resource="http://www.linux.com" /> 
        <admin:errorReportsTo rdf:resource="mailto:noreply@linux.com" />
       <sy:updatePeriod>hourly</sy:updatePeriod>
       <sy:updateFrequency>1</sy:updateFrequency>
       <docs>http://backend.userland.com/rss</docs>



<div class="xarbb-noteswrapper">
</div>

   <div class="xarbb-noteswrapper">
       <div class="xar-sub rightnote">
           <div>
                    <a href="http://www.linux.com/archive/forums/topic/1967">
Previous Topic</a>
|
                    <a href="http://www.linux.com/archive/forums/topic/2010">
Next Topic</a>
</div>

           <div>
                    <a href="http://www.linux.com/archive/forums/printtopic/1880?theme=print">
Print this topic</a> |
You are not subscribed            </div>
        </div>
        <div style="clear: both;"></div>
    </div>

    <h1>
        <a class="xar-title" href="http://www.linux.com/archive/forums/topic/1880">How does the SCSI driver and Linux handle tape errors ?</a>
   </h1>


   <div class="xarbb-topiccontrols">
<form action="http://www.linux.com/archive/forums?func=jump" method="post">
   <label for="xarbb_jump_menu">Forum Jump</label>
    <select name="f" id="xarbb_jump_menu" onchange="this.form.submit();">
        <optgroup label="Options">
            <option value="1" selected="selected">
Please select forum            </option>
            <option value="1">--------------------</option>
        </optgroup>
        <optgroup label="Forums">
                <option value="1">New to Linux</option>
                <option value="2">Hardware</option>
                <option value="3">Linux Distributions</option>
                <option value="4">Applications</option>
                <option value="5">Programming and Development</option>
                <option value="6">Miscellaneous Discussion</option>
                <option value="7">Linux.com Writers Forum</option>
                <option value="8">Jobs</option>
        </optgroup>
    </select>
    <input type="submit" class="button" value="Jump" />
</form>
<div style="clear: both;"></div>
   </div>

   <div class="xarbb-topiccontrols">

<span class="xar-sub">
    <a href="http://www.linux.com/archive/forums">
Forum Index    </a>
    <span style="font-size: larger;">&#187;</span>
    <a href="http://www.linux.com/archive/forums/category/4181">
        Forums 
    </a>
    <span style="font-size: larger;">&#187;</span>
    <a href="http://www.linux.com/archive/forums/forum/1">
        New to Linux   </a>
</span>
<div style="clear: both;"></div>
   </div>

<div class="xarbb-tablewrapper">



   <table>
       <tr>
           <th scope="col">
Author</th>
           <th scope="col">
Message</th>
       </tr>



            <tr>
                <td class="xar-norm author">
                    <div>
                        <a href="http://www.linux.com/archive/roles/403988">theoldwizard</a>
                   </div>
                   <div class="xar-sub">
Joined: May 30, 2008<br/>Posts: 1                        <br />
                        <a href="http://www.linux.com/archive/forums?by=403988&amp;func=searchtopics">
Other Topics</a>
                   </div>
               </td>

               <td class="xar-norm message">
                   <div class="xarbb-messagecontrols">
                       <div class="leftnote">
                           <span class="xar-sub">
Posted May 30, 2008 at 3:09:46 PM</span>
                       </div>



<div style="float: left;">
                           <strong class="xar-sub">
Subject: How does the SCSI driver and Linux handle tape errors ?                            </strong>
                        </div>
                        <div style="clear: both;"></div>
                    </div>

                    <div>
                        I'm new to Linux but have a strong background in VMS administration (hey, it ain't dead yet !)

My question is, both DLT amd LTO tape drives employee read-after-write head designs with CRC firmware.  These technologies can generate 2 different types of errors, soft (the CRC was able to correct an error) and hard (CRC can not able to correct the error).

Somehow, notification of these error must be sent back to the driver.

Does the SCSI driver log these errors and/or pass them on to any application (like gtar) using this device ?</div>

                </td>
            </tr>

            <tr>
                <td class="xar-norm author">
                    <a href="http://www.linux.com/archive/forums/topic/1880#top">
Back to top</a>
</td>
               <td class="xar-alt">

                        <a href="http://www.linux.com/archive/roles/403988">
                            <img src="modules/xarbb/xarimages/new/icon_profile.gif" alt="Profile" />
                        </a>
                        <a href="http://www.linux.com/archive/?module=roles&amp;func=email&amp;uid=403988">
                            <img src="modules/xarbb/xarimages/new/icon_email.gif" alt="Email" />
                       </a>
                            <a href="http://">
                                <img src="modules/xarbb/xarimages/new/icon_www.gif" alt="Website" />
                           </a>
</td>
           </tr>





           <tr>
               <td class="xar-norm author">
                   <strong>

                            <a href="http://www.linux.com/archive/roles/404794">
                                Johannes Truschnigg                           </a>
</strong>

                   <span class="xar-sub">
<br />
<br />
Joined Jun 15, 2008<br/>Posts: 27<br />
                        <br />
                        <a href="http://www.linux.com/archive/forums?by=404794&amp;func=searchtopics">
Other Topics                        </a>
                    </span>
                </td>

                <td class="xar-accent message">
                   <div class="xarbb-messagecontrols">
                       <div class="leftnote">
                           <span class="xar-sub">
Posted:
                                Jun 15, 2008 7:51:14 PM                           </span>
                       </div>
                       <div class="rightnote">
</div>
                       <div style="float:left;">
                           <strong class="xar-sub">
Subject:
                                <a name="1192313" href="http://www.linux.com/archive/forums/topic/1880#1192313">
                                    How does the SCSI driver and Linux handle tape errors ?                                </a>
                            </strong>
                        </div>
                        <div style="clear: both;"></div>
                    </div>

                    <div style="clear: left;">
                        Hello there,

I don't have particular experience with SCSI tape technology (I do backups on DVD-RAM and ordinary harddisks these days, and my (ATA) streamer was outphased some years ago already), but if the SCSI tape driver behaves similar to just about any other storage driver these days, you'll find status info about the driver's operation in the Kernel's debug ringbuffer. Any ordinary user may take a peek into it via the program `dmesg`; most distros, in addition, set their syslog daemon up in a way so that the information there which would normally be discarded once this buffer overflows is saved to a file under /var/log/.

If a serious error on the driver/Kernel-level occurs, you will notice that in userspace, too. The &quot;how&quot;, however, I can only take guesses at:
If you're unlucky, your backup program (`tar`, for instance) might just not return at all, or (if you're slightly luckier) will return with an exit code greater than 0.

Note that there's also a SCSI debug driver (&quot;scsi_debug.ko&quot;) which might enable you to set up a testing scenario (without actually hosing a tape or tape-drive in the process). `modinfo scsi_debug` should give you hints on how to make use of the module. Also peek around in /proc/scsi/ for status info on SCSI devices.

If you've got your Kernel's source installed, you may also dig around in the SCSI subsystem's documentation under /usr/src/linux/Documentation/scsi - I'm sure you'll find a detailed answer to your question in there somewhere.

Hope that was info you could use - keep having fun with GNU/Linux! :-)<p class="hiddensignature">
Free software. Free society. Better lives.</p>
                    </div>
                </td>
            </tr>

            <tr>
                <td class="xar-norm author">
                    <a href="http://www.linux.com/archive/forums/topic/1880#top">
Back to top</a>
</td>

               <td class="xar-alt">

                            <a href="http://www.linux.com/archive/roles/404794">
                                <img src="modules/xarbb/xarimages/new/icon_profile.gif" alt="Profile" />
                            </a>
                            <a href="http://www.linux.com/archive/?module=roles&amp;func=email&amp;uid=404794">
                                <img src="modules/xarbb/xarimages/new/icon_email.gif" alt="Email" />
                           </a>
                                <a href="http://johannes.truschnigg.info/">
                                    <img src="modules/xarbb/xarimages/new/icon_www.gif" alt="Website" />
                               </a>
</td>
           </tr>

           <tr>
               <td class="xar-norm author">
                   <strong>

                            <a href="http://www.linux.com/archive/roles/401718">
                                buggy                           </a>
</strong>

                   <span class="xar-sub">
<br />
Joined Apr 17, 2008<br/>Posts: 4<br />
                        <br />
                        <a href="http://www.linux.com/archive/forums?by=401718&amp;func=searchtopics">
Other Topics                        </a>
                    </span>
                </td>

                <td class="xar-norm message">
                   <div class="xarbb-messagecontrols">
                       <div class="leftnote">
                           <span class="xar-sub">
Posted:
                                Jun 17, 2008 11:15:10 AM                           </span>
                       </div>
                       <div class="rightnote">
</div>
                       <div style="float:left;">
                           <strong class="xar-sub">
Subject:
                                <a name="1192413" href="http://www.linux.com/archive/forums/topic/1880#1192413">
                                    How does the SCSI driver and Linux handle tape errors ?                                </a>
                            </strong>
                        </div>
                        <div style="clear: both;"></div>
                    </div>

                    <div style="clear: left;">
                        OT but if ur using tape for backup I find alternate methods work better -  something like http://www.boxbackup.org/ connecting to a hosted server in a datacentre.                    </div>
                </td>
            </tr>

            <tr>
                <td class="xar-norm author">
                    <a href="http://www.linux.com/archive/forums/topic/1880#top">
Back to top</a>
</td>

               <td class="xar-alt">

                            <a href="http://www.linux.com/archive/roles/401718">
                                <img src="modules/xarbb/xarimages/new/icon_profile.gif" alt="Profile" />
                            </a>
                            <a href="http://www.linux.com/archive/?module=roles&amp;func=email&amp;uid=401718">
                                <img src="modules/xarbb/xarimages/new/icon_email.gif" alt="Email" />
                           </a>
                                <a href="http://">
                                    <img src="modules/xarbb/xarimages/new/icon_www.gif" alt="Website" />
                               </a>
</td>
           </tr>
</table>
</div>

<div class="xarbb-topiccontrols">

<span class="xar-sub">
    <a href="http://www.linux.com/archive/forums">
Forum Index    </a>
    <span style="font-size: larger;">&#187;</span>
    <a href="http://www.linux.com/archive/forums/category/4181">
        Forums 
    </a>
    <span style="font-size: larger;">&#187;</span>
    <a href="http://www.linux.com/archive/forums/forum/1">
        New to Linux   </a>
</span>

</div>



            </channel>
</rss>
