<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>The Adaptec Linux and Open Source Blog</title>
	<atom:link href="http://www.adaptec.com/weblog/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.adaptec.com/weblog</link>
	<description>The Adaptec Linux and Open Source Blog</description>
	<lastBuildDate>Fri, 13 Apr 2012 15:38:54 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Linux Drivers For Series 6 Controllers</title>
		<link>http://www.adaptec.com/weblog/2011/11/18/linux-drivers-for-series-6-controllers-2/</link>
		<comments>http://www.adaptec.com/weblog/2011/11/18/linux-drivers-for-series-6-controllers-2/#comments</comments>
		<pubDate>Fri, 18 Nov 2011 18:53:32 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Linux distributions]]></category>
		<category><![CDATA[Open Source Support]]></category>
		<category><![CDATA[RAID under Linux]]></category>

		<guid isPermaLink="false">http://www.adaptec.com/weblog2/?p=81</guid>
		<description><![CDATA[With the launch of our new Series 6 controllers, there is a significant change to the underlying hardware architecture over our Series 5 controllers. These changes require an updated driver, so the existing Adaptec AACRAID driver that has been inbox for years, will not load for a Series 6 controller. In an effort to clarify [...]]]></description>
			<content:encoded><![CDATA[<p><span style="font-family: Calibri;">With the launch of our new Series 6 controllers, there is a significant change to the underlying hardware architecture over our Series 5 controllers. These changes require an updated driver, so the existing Adaptec AACRAID driver that has been inbox for years, will not load for a Series 6 controller. </span><span style="font-family: Calibri;">In an effort to clarify the current state of Linux support for Series 6 controllers, listed below is are the facts known as of this update (1/5/2012):</span><span style="font-family: Calibri;"> </span><span style="font-family: Calibri;">An updated Linux driver, version 1.1.7-28000, was submitted to </span><a href="http://www.kernel.org/"><span style="font-family: Calibri;">http://www.kernel.org/</span></a><span style="font-family: Calibri;"> for inclusion into the upstream kernel. It was officially included with the release of the 2.6.39 kernel (</span><a href="http://www.kernel.org/pub/linux/kernel/v2.6/ChangeLog-2.6.39"><span style="font-family: Calibri;">http://www.kernel.org/pub/linux/kernel/v2.6/ChangeLog-2.6.39</span></a><span style="font-family: Calibri;">).</span></p>
<p><span style="font-family: Calibri;">Any Linux Distribution based on kernel 2.6.39 or greater should contain this updated driver and inbox (or in kernel) driver support should be available for Series 6 Adaptec controllers.</span> <span style="font-family: Calibri;"> </span>§  <span style="font-family: Calibri;"><strong><span style="text-decoration: underline;">Please be aware</span></strong>, there is the possibility that a particular vendor may choose not to include our driver in their particular distribution, so the above point is more a guideline than a rule.</span> <span style="font-family: Calibri;">Listed below are the major distributions we officially support and the current inbox support for Series 6.</span></p>
<p><span style="font-family: Calibri;"><strong>RedHat </strong>- RedHat Enterprise Linux (and RHEL derivatives, such as CentOS and Scientific Linux):</span>    <span style="font-family: Calibri;">The Series 6 driver is <strong><span style="text-decoration: underline;">not</span></strong> inbox with any currently available version of RHEL, this includes 4.x, 5.x, or 6.x. We are actively working with RedHat to get an updated driver inbox that will support Series 6 as quickly as possible. </span></p>
<p><span style="font-family: Calibri;">Fedora: </span><span style="font-family: Calibri;">With the recent release of Fedora 16 (based on a 3.1 kernel), our 28000 driver is inbox.</span>  <span style="font-family: Calibri;">For Fedora 15 users, the latest security updated kernel released is based on 2.6.40, which includes our 28000 driver inbox.</span></p>
<p><span style="font-family: Calibri;"><strong>SUSE</strong> &#8211; SuSe Linux Enterprise Server: </span><span style="font-family: Calibri;">The Series 6 driver is <strong><span style="text-decoration: underline;">not</span></strong> inbox with any currently available version of SLES. However, our 28000 driver will be included in the SP2 update for SLES 11. </span></p>
<p><span style="font-family: Calibri;"><strong>Debian </strong>- Debian. </span><span style="font-family: Calibri;">Our 28000 driver has been backported into Debian 6.0.2, (based on 2.6.32-39).</span>  <span style="font-family: Calibri;"><strong> </strong></span></p>
<p><span style="font-family: Calibri;"><strong>Canonical </strong>- Ubuntu. </span><span style="font-family: Calibri;">With the recent release of Ubuntu 11.10, based on a 3.0 kernel, our 28000 driver is inbox. No other supported version of Ubuntu currently includes our 28000 driver (11.04, 10.10, or 10.04LTS) We are actively working with Canonical on what options are available getting our updated 28000 driver included with these older kernels.</span></p>
<p>…………………………………………………………………………………….</p>
<p>&nbsp;</p>
<p><span style="font-family: Calibri;">In a continued effort to improve our Linux support with Series 6, we have begun providing minimally tested drivers. These minimally tested drivers do not undergo the same rigorous qualification testing as our full release drivers, but occur more frequently allowing greater synchronized support for currently available versions of Linux we support.</span><span style="font-family: Calibri;"><span style="font-family: Calibri;">The tarball archive below contains driver files and instructions for RHEL/CentOS 5.2, 5.3, 5.7 &amp; 6.0, 6.1, 6.2, and XenServer 6. To download this archive, please use the information below:</span></span><span style="font-family: Calibri;"><span style="font-family: Calibri;"><a href="http://www.adaptec.com/en-us/support/files/">http://www.adaptec.com/en-us/support/files/</a></span></span></p>
<p><span style="font-family: Calibri;">Filename: <strong>aacraid_linux_drivers_min_v1.1.7-28700.tgz</strong></span></p>
<p>&nbsp;</p>
<p><span style="font-family: Calibri;">Password: <strong>LETTER</strong> (all CAPS)</span><span style="font-family: Calibri;">If you experience any issues with the provided files, or have questions regarding additional supported Linux versions, please contact our Technical Support team.</span></p>
<p>&nbsp;</p>
<p><span style="font-family: Calibri;"><span style="font-family: Calibri;">Alternatively, if you are using a distribution with a kernel that is not mentioned here as supported / minimally supported, then you can compile drivers yourself using the Adaptec  source code and DKMS package from the support site <a href="http://www.adaptec.com/en-us/downloads/">http://www.adaptec.com/en-us/downloads/</a>.</span></span></p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.adaptec.com/weblog/2011/11/18/linux-drivers-for-series-6-controllers-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using smartmontools-5.38 with series 2/5/5Z controllers with firmware 17380 onwards</title>
		<link>http://www.adaptec.com/weblog/2009/07/24/using-smartmontools-5-38-with-series-255z-controllers-with-firmware-17380-onwards/</link>
		<comments>http://www.adaptec.com/weblog/2009/07/24/using-smartmontools-5-38-with-series-255z-controllers-with-firmware-17380-onwards/#comments</comments>
		<pubDate>Fri, 24 Jul 2009 19:37:22 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://www.adaptec.com/weblog2/?p=181</guid>
		<description><![CDATA[Hi folks, in the last few days I have come across an issue running smartmontools-5.38 with the series 2, 5 and 5Z controllers on firmware 17380 onwards with SATA drives. Just a bit of background .. By default (configurable using the expose_physicals module options parameter), the aacraid driver exposes the physical disks attached to the [...]]]></description>
			<content:encoded><![CDATA[<div>
<p>Hi folks, in the last few days I have come across an issue running smartmontools-5.38 with the series 2, 5 and 5Z controllers on firmware 17380 onwards with SATA drives.</p>
<p><strong>Just a bit of background ..</strong></p>
<p>By default (configurable using the expose_physicals module options parameter), the aacraid driver exposes the physical disks attached to the controller to the operating system but prevents the disk driver from attaching them by setting the no_uld_attach flag. The disks can be accessed via the SCSI generic driver though dangerous operations are blocked (e.g. writes).</p>
<p>Programs like smartctl are then able to send SMART commands to a physical disks via the associated SCSI generic device node. If the disk is SATA (-d sat specified) then smartctl makes use of SAT (SCSI ATA translation) to “wrap up” the SMART command in a SCSI CDB (command descriptor block) which is then sent via the SCSI generic and aacraid driver to the controller firmware.</p>
<p><strong>The problem</strong></p>
<p>From controller firmware 17380 onwards, the SAT layer (in the controller firmware) more completely implements the SAT specification, particularly with regard to commands that are sent where the host application (for example smartctl) requires the ATA register information to be read back. Typically the commands that would require this are ATA non-data protocol.</p>
<p>Specifically with smartctl, there are two commands used where the application needs to see the ATA registers to determine the status of the drive.</p>
<p>ATA_CHECK_POWER_MODE (ATA command 85h &#8211; smartctl needs to see COUNT in the register information to determine the power mode)</p>
<p>ATA_RETURN_STATUS (SMART command B0 with features DAh &#8211; smartctl needs to see the LBA mid and high values to determine if the drive is reporting a SMART threshold exceeded error &#8211; for example using smartctl -H …).</p>
<p>When a SAT CDB is issued and the host application wishes to see the ATA register information, it sets the CK_COND (check condition) bit in the SAT passthrough CDB. This indicates to the SATL that the ATA register information should be returned in an ATA status return descriptor. Firmware 17380 now implements this as per the SAT specification which requires the SATL code to generate a check condition and in response to a request sense (or in this case using autosense), the  sense key set to RECOVERED ERROR and additional sense qualifier to ATA PASSTHROUGH INFORMATION AVAILABLE, the ATA status return descriptor is then included in the sense data.</p>
<p>Unfortunately, the CHECK CONDITION causes the aacraid driver to also return a “host_status” indicating a controller internal error occurred (DID_ERROR). This propagates back to smartctl which exits. My colleague is currently looking at the aacraid driver to see how to avoid this but in case it helps anyone here is a temporary workaround (modification of smartctl behaviour) &#8211; note this will ignore host_status SG_ERR_DID_ERROR which isn’t desirable long-term. From the smartmontools-5.38 source dir …</p>
<p>patch -p1 &lt; <em>diff below</em>  os_linux.cpp</p>
<p><code><br />
662a663<br />
&gt; #define LSCSI_DID_ERROR 0x7 /* Need to work around aacraid driver quirk */<br />
787c788,791<br />
&lt; return -EIO; /* catch all */<br />
---<br />
&gt; /* Check for DID_ERROR - workaround for aacraid driver quirk */<br />
&gt; if (LSCSI_DID_ERROR != io_hdr.host_status) {<br />
&gt; return -EIO; /* catch all if not DID_ERR */<br />
&gt; }<br />
</code></p>
<p>… and recompile</p>
<p>I’ll post back soon as I know more from my colleague.</p>
<p>thanks, Phil.</p>
<p><small>This entry was posted on Friday, July 24th, 2009 and is filed under <a title="View all posts in General" href="http://www.adaptec.com/weblog/category/general/" rel="category tag">General</a>. You can follow any responses to this entry through the <a href="http://www.adaptec.com/weblog/2009/07/24/using-smartmontools-538-with-series-255z-controllers-with-firmware-17380-onwards/feed/">RSS 2.0</a> feed. You can <a href="http://www.adaptec.com/weblog/2009/07/24/using-smartmontools-538-with-series-255z-controllers-with-firmware-17380-onwards/#respond">leave a response</a>, or <a href="http://www.adaptec.com/weblog/2009/07/24/using-smartmontools-538-with-series-255z-controllers-with-firmware-17380-onwards/trackback/" rel="trackback">trackback</a> from your own site. </small></p>
</div>
<p>&nbsp;</p>
<h3 id="comments">9 Responses to “Using smartmontools-5.38 with series 2/5/5Z controllers with firmware 17380 onwards”</h3>
<ol>
<li id="comment-240"><cite><a href="http://www.roysindre.no/" rel="external nofollow">norrs</a></cite> Says:<br />
<small><a title="" href="http://www.adaptec.com/weblog/2009/07/24/using-smartmontools-538-with-series-255z-controllers-with-firmware-17380-onwards/#comment-240">August 7th, 2009 at 5:14 pm</a> </small>I guess this is why we’ve had issues with smartctl on our 5805 raid-card.<br />
After we flashed from stock retail firmware (Adaptec RAID 5805 Firmware/BIOS Update Ver. 5.2.0 Build 16501 &#8211; 18.feb09) to 24.jun09 17380 firmware ( Adaptec RAID 5805 Firmware/BIOS Update Ver. 5.2.0 Build 17380) we had issues reading of smart values from our sata disks.dmesg shows us:[877834.182094] scsi 0:1:4:0: [sg5] Sense Key : Recovered Error [current] [descriptor]<br />
[877834.182100] Descriptor sense data with sense descriptors (in hex):<br />
[877834.182103] 72 01 00 1d 00 00 00 0e 09 0c 00 00 00 00 00 00<br />
[877834.182112] 00 4f 00 c2 00 50<br />
[877834.182116] scsi 0:1:4:0: [sg5] Add. Sense: ATA pass through information availableI guess this relate to the problem described above.</p>
<p>Do you suggest us flashing back to an older firmware? Will this be fine?</p>
<p>Should we patch smartmontools and use a local copy until a new kernel driver is released? (since I assume your firmware is actually implemented the standards correctly, and we don’t want to go back to older and “hacky” firmware that actually worked).</p>
<p>ETA on new kernel driver?</p>
<p>Thanks<br />
Yet Another Tech <img src="http://www.adaptec.com/weblog/wp-includes/images/smilies/icon_smile.gif" alt=":-)" /></li>
<li id="comment-246"><cite><a href="http://www.adaptec.com/" rel="external nofollow">Phil Wilson</a></cite> Says:<br />
<small><a title="" href="http://www.adaptec.com/weblog/2009/07/24/using-smartmontools-538-with-series-255z-controllers-with-firmware-17380-onwards/#comment-246">August 12th, 2009 at 1:01 pm</a> </small>Hi Norrs, sorry for the very long delay in coming back to you on this. I wanted to try this with the older firmware to see what was happening and have just been able to get into my lab after vacation. With the earlier firmware, it appears that the CK_COND bit in the SAT CDB is ignored and no sense data is returned so in other words, SMART RETURN STATUS doesn’t work.I think, under these circumstances, smartctl relies on the attribute values (first 362 bytes of the device SMART data structure) returned in response to SMART READ DATA and does a comparison for attributes flagged as pre-fail against the thresholds (returned in response to SMART READ ATTRIBUTE THRESHOLDS). If SMART RETURN STATUS had worked, the drive would have done this by itself.I would suggest using the newer firmware and a modified local copy of smartmontools. It would take some time to get this fixed in the driver and then it would need to be approved and merged with the driver at kernel.org before filtering through to distributions. I’ll post back here once I have some more news on this.thanks, Phil</li>
<li id="comment-251"><cite><a href="http://www.roysindre.no/" rel="external nofollow">norrs</a></cite> Says:<br />
<small><a title="" href="http://www.adaptec.com/weblog/2009/07/24/using-smartmontools-538-with-series-255z-controllers-with-firmware-17380-onwards/#comment-251">August 13th, 2009 at 4:35 pm</a> </small>Thanks for your reply Phil.<br />
I’ll keep watching this nice blog for an update so we know when we can fetch a patch <img src="http://www.adaptec.com/weblog/wp-includes/images/smilies/icon_wink.gif" alt=";-)" />Thanks in advance.</li>
<li id="comment-321"><cite>ondhest</cite> Says:<br />
<small><a title="" href="http://www.adaptec.com/weblog/2009/07/24/using-smartmontools-538-with-series-255z-controllers-with-firmware-17380-onwards/#comment-321">November 18th, 2009 at 11:57 pm</a> </small>I get this message when trying to patch:<br />
Hunk #2 FAILED at 788.<br />
1 out of 2 hunks FAILED — saving rejects to file os_linux.cpp.rejAnyone know what to do?</li>
<li id="comment-322"><cite><a href="http://www.adaptec.com/" rel="external nofollow">Phil Wilson</a></cite> Says:<br />
<small><small><a title="" href="http://www.adaptec.com/weblog/2009/07/24/using-smartmontools-538-with-series-255z-controllers-with-firmware-17380-onwards/#comment-322">November 19th, 2009 at 9:58 am</a></small></small>Hi Ondhest, sorry about that &#8211; would you be able to try this. If it doesn’t help (works on my machine) let me know and I can email you directly.<br />
&#8212; os_linux.cpp.orig   2009-11-19 10:12:48.000000000 +0000<br />
+++ os_linux.cpp        2009-11-19 10:52:24.000000000 +0000<br />
@@ -660,6 +660,7 @@<br />
 #define SG_IO_RESP_SENSE_LEN 64 /* large enough see buffer */<br />
 #define LSCSI_DRIVER_MASK  0xf /* mask out &#8220;suggestions&#8221; */<br />
 #define LSCSI_DRIVER_SENSE  0&#215;8 /* alternate CHECK CONDITION indication */<br />
+#define LSCSI_DID_ERROR 0&#215;7 /* Need to work around aacraid driver quirk */<br />
 #define LSCSI_DRIVER_TIMEOUT  0&#215;6<br />
 #define LSCSI_DID_TIME_OUT  0&#215;3<br />
 #define LSCSI_DID_BUS_BUSY  0&#215;2<br />
@@ -784,7 +785,10 @@<br />
                 (LSCSI_DID_TIME_OUT == io_hdr.host_status))<br />
                 return -ETIMEDOUT;<br />
             else<br />
-                return -EIO;    /* catch all */<br />
+               /* Check for DID_ERROR &#8211; workaround for aacraid driver quirk */<br />
+               if (LSCSI_DID_ERROR != io_hdr.host_status) {<br />
+                       return -EIO;    /* catch all if not DID_ERR */<br />
+               }<br />
         }<br />
         if (0 != masked_driver_status) {<br />
             if (LSCSI_DRIVER_TIMEOUT == masked_driver_status)<br />
thanks, Phil</li>
<li id="comment-328"><cite><a href="http://www.adaptec.com/" rel="external nofollow">Phil Wilson</a></cite> Says:<br />
<small><a title="" href="http://www.adaptec.com/weblog/2009/07/24/using-smartmontools-538-with-series-255z-controllers-with-firmware-17380-onwards/#comment-328">November 24th, 2009 at 8:20 am</a> </small>Hi folks, just to add, the latest driver on the Adaptec support website 1.1.5-24900 fixes the driver issue (returning DID_ERROR instead of DID_OK when a SAT command with CC set causes a target to return a CC).thanks, Phil</li>
<li id="comment-393"><cite><a href="http://www.geeksww.com/" rel="external nofollow">Rick</a></cite> Says:<br />
<small><a title="" href="http://www.adaptec.com/weblog/2009/07/24/using-smartmontools-538-with-series-255z-controllers-with-firmware-17380-onwards/#comment-393">April 4th, 2010 at 11:40 am</a> </small>useful article</li>
<li id="comment-398"><cite>yoann</cite> Says:<br />
<small><a title="" href="http://www.adaptec.com/weblog/2009/07/24/using-smartmontools-538-with-series-255z-controllers-with-firmware-17380-onwards/#comment-398">April 26th, 2010 at 1:44 pm</a> </small>Folks,I have just tried the ASR 5805 with the latest driver update and the previous one (v1.1.5-26400 and v1.1.5-24900)<br />
Unfortunately , S.M.A.R.T does not seem to work. I am using the smartmontools-5.38-2 version on a x86_64 system.<br />
I have an error message :<br />
“Terminate command early due to bad response to IEC mode page” .I am surprise since the ASR support SMART and the discs (Seagates Savvio® 15K.2 SAS) do as well.Do you have any idea ?</p>
<p>Thks</p>
<p>Yoann</li>
<li id="comment-399"><cite>yoann</cite> Says:<br />
<small><a title="" href="http://www.adaptec.com/weblog/2009/07/24/using-smartmontools-538-with-series-255z-controllers-with-firmware-17380-onwards/#comment-399">April 26th, 2010 at 3:29 pm</a> </small>ok sorry I have found by myself,<br />
smartctl –all /dev/sg1 -T permissive is working perfectlycheers</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.adaptec.com/weblog/2009/07/24/using-smartmontools-5-38-with-series-255z-controllers-with-firmware-17380-onwards/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Smartmontools and Adaptec RAID controllers</title>
		<link>http://www.adaptec.com/weblog/2008/09/26/smartmontools-and-adaptec-raid-controllers/</link>
		<comments>http://www.adaptec.com/weblog/2008/09/26/smartmontools-and-adaptec-raid-controllers/#comments</comments>
		<pubDate>Fri, 26 Sep 2008 19:53:47 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://www.adaptec.com/weblog2/?p=251</guid>
		<description><![CDATA[Anssi asked :-  Is there any way to get the full SMART info from a SATA harddisk connected to Adaptec 21610SA RAID adapter? The usual “smartctl -a /dev/sdX” command fails with aacraid driver. Hi Anssi, thanks for this question, I’ve been meaning to post some information on this as its a question I’ve had from [...]]]></description>
			<content:encoded><![CDATA[<div id="post-21">
<div>
<p>Anssi asked :-</p>
<p> Is there any way to get the full SMART info from a SATA harddisk connected to Adaptec 21610SA RAID adapter?<br />
The usual “smartctl -a /dev/sdX” command fails with aacraid driver.</p>
<p>Hi Anssi, thanks for this question, I’ve been meaning to post some information on this as its a question I’ve had from a few of my European customers. Unfortunately on this generation of controllers, the smartctl commands are not passed through to the disks but starting with the 5-series and recently launched 2-series controllers, the smartmon tools work fine. To use smartmon tools with the 2 or 5 series, you need to</p>
<p>&nbsp;</p>
<p><small>This entry was posted on Friday, September 26th, 2008 and is filed under <a title="View all posts in General" href="http://www.adaptec.com/weblog/category/general/" rel="category tag">General</a>. You can follow any responses to this entry through the <a href="http://www.adaptec.com/weblog/2008/09/26/smartmontools-and-adaptec-raid-controllers/feed/">RSS 2.0</a> feed. You can <a href="http://www.adaptec.com/weblog/2008/09/26/smartmontools-and-adaptec-raid-controllers/#respond">leave a response</a>, or <a href="http://www.adaptec.com/weblog/2008/09/26/smartmontools-and-adaptec-raid-controllers/trackback/" rel="trackback">trackback</a> from your own site. </small></p>
</div>
</div>
<p>&nbsp;</p>
<h3 id="comments">26 Responses to “Smartmontools and Adaptec RAID controllers”</h3>
<ol>
<li id="comment-91"><cite>Me</cite> Says:<br />
<small><a title="" href="http://www.adaptec.com/weblog/2008/09/26/smartmontools-and-adaptec-raid-controllers/#comment-91">October 7th, 2008 at 10:26 am</a> </small>Um I need to…what exactly?</li>
<li id="comment-93"><cite><a href="http://www.adaptec.com/" rel="external nofollow">Phil Wilson</a></cite> Says:<br />
<small><a title="" href="http://www.adaptec.com/weblog/2008/09/26/smartmontools-and-adaptec-raid-controllers/#comment-93">October 7th, 2008 at 11:40 am</a> </small>Oops, I’m very sorry for that ..I was intending to say that you need to make sure the physical devices attached to the raid controller are visible to the OS. A cat of /proc/scsi/scsi should confirm this. If they aren’t then check if the driver module supports the parameter expose_physicals=X (where X is 0 for don’t, -1 which for most distributions is the default which exposes them but sets the no_uld_attach flag, or 1 which exposes them and doesn’t protect them which is dangerous).</p>
<p>Assuming the physical devices are visible, you need the SCSI generic driver loaded and then you can use smartctl with the SCSI generic device node corresponding to the disk of interest. Note that you have to tell smartctl the device type using -d sat || scsi ..</p>
<p>for SATA disks<br />
<code>smartctl --all /dev/sg&lt;x&gt; -d sat</code></p>
<p>for SAS disks<br />
<code>smartctl --all /dev/sg&lt;x&gt; -d scsi</code></p>
<p>I also like the excellent sg_utils package &#8211; sg_scan -i will give you a list of all the devices with their inquiry / identify data.</p>
<p>Just to reiterate, this works with the series 2 and series 5 controllers but not with the series 3 and older products.</p>
<p>thanks, Phil</li>
<li id="comment-112"><cite>Mohsin Raza</cite> Says:<br />
<small><a title="" href="http://www.adaptec.com/weblog/2008/09/26/smartmontools-and-adaptec-raid-controllers/#comment-112">December 15th, 2008 at 1:04 pm</a> </small>@Philwhat about 2820SA?</p>
<p>I followed your instructions but smartctl is still not working on 2820SA Raid Controller, anything else required for this to work?</li>
<li id="comment-113"><cite><a href="http://www.adaptec.com/" rel="external nofollow">Phil Wilson</a></cite> Says:<br />
<small><a title="" href="http://www.adaptec.com/weblog/2008/09/26/smartmontools-and-adaptec-raid-controllers/#comment-113">December 15th, 2008 at 1:15 pm</a> </small>Hi Mohsin, I’m sorry about this but smartmontools needs full pass-through support which was only introduced with the series-2 and series-5 controllers (probably the nearest equivalent to the 2820 would be the 5805). It isn’t possible on earlier models. We did have a look at how hard it would be to implement the firmware changes but it just wasn’t practical.best regards, Phil</li>
<li id="comment-114"><cite>Mohsin Raza</cite> Says:<br />
<small><a title="" href="http://www.adaptec.com/weblog/2008/09/26/smartmontools-and-adaptec-raid-controllers/#comment-114">December 15th, 2008 at 1:20 pm</a> </small>Thanks for your help!Regards,</p>
<p>Mohsin</li>
<li id="comment-125"><cite>Marcel</cite> Says:<br />
<small><a title="" href="http://www.adaptec.com/weblog/2008/09/26/smartmontools-and-adaptec-raid-controllers/#comment-125">January 15th, 2009 at 10:14 am</a> </small>Hi,and what about the 2405? It’s a Series-2-Controller, but there is no explicit mention of pass-through or something similar.</p>
<p>Regards</li>
<li id="comment-126"><cite><a href="http://www.adaptec.com/" rel="external nofollow">Phil Wilson</a></cite> Says:<br />
<small><a title="" href="http://www.adaptec.com/weblog/2008/09/26/smartmontools-and-adaptec-raid-controllers/#comment-126">January 15th, 2009 at 10:35 am</a> </small>Hi Marcel, yes the series-2 (2405 and 2045) would work okay too. It uses a lower power version of the processor on the series-5 (less memory too) but the firmware and drivers are the same.best regards, Phil</li>
<li id="comment-127"><cite>Marcel</cite> Says:<br />
<small><a title="" href="http://www.adaptec.com/weblog/2008/09/26/smartmontools-and-adaptec-raid-controllers/#comment-127">January 15th, 2009 at 1:13 pm</a> </small>Hello,that sounds very good! <img src="http://www.adaptec.com/weblog/wp-includes/images/smilies/icon_smile.gif" alt=":)" /></p>
<p>Thank you!</li>
<li id="comment-143"><cite><a href="http://subarutelescope.org/" rel="external nofollow">Philip Tait</a></cite> Says:<br />
<small><a title="" href="http://www.adaptec.com/weblog/2008/09/26/smartmontools-and-adaptec-raid-controllers/#comment-143">March 6th, 2009 at 4:55 pm</a> </small>How about an Adaptec 2010 ZCR, using the dpt_i2o driver (kernel 2.4)? Can this work?</li>
<li id="comment-145"><cite><a href="http://www.adaptec.com/" rel="external nofollow">Phil Wilson</a></cite> Says:<br />
<small><a title="" href="http://www.adaptec.com/weblog/2008/09/26/smartmontools-and-adaptec-raid-controllers/#comment-145">March 13th, 2009 at 7:55 am</a> </small>Hi Philip, sorry for the long delay in replying to you. I think it is pretty unlikely that this would work. The mechanism takes advantage of the fact the aacraid driver and ARC firmware allow the physical devices to be visible to the OS as SCSI generic devices. I don’t think the same feature was available in the older “B-code” firmware and dpt_i2o driver. If you can see the physical devices in /proc/scsi/scsi and they have SCSI generic device nodes associated with them it would be worth a try. Unfortunately I don’t have this hardware available to test myself.Sorry not to be more help, Phil</li>
<li id="comment-158"><cite>Markus</cite> Says:<br />
<small><a title="" href="http://www.adaptec.com/weblog/2008/09/26/smartmontools-and-adaptec-raid-controllers/#comment-158">May 8th, 2009 at 11:54 am</a> </small>Hi Philip,can you tell me if the Adaptec 5445, 5805 or 5085 will work with smartmontools?</p>
<p>Thanks<br />
Markus</li>
<li id="comment-160"><cite>Vladimir</cite> Says:<br />
<small><a title="" href="http://www.adaptec.com/weblog/2008/09/26/smartmontools-and-adaptec-raid-controllers/#comment-160">May 12th, 2009 at 8:54 am</a> </small>Hi !How to use smartctl for getting smart-info from sata disk atached to adaptec sas 3405 adapter ?</p>
<p>If I run “smartctl -a -d sat /dev/sg” or “smartctl -a -d scsi /dev/sg” smart-info is not shown.</p>
<p>with sas disks is all good.</li>
<li id="comment-161"><cite>Vladimir</cite> Says:<br />
<small><a title="" href="http://www.adaptec.com/weblog/2008/09/26/smartmontools-and-adaptec-raid-controllers/#comment-161">May 12th, 2009 at 8:56 am</a> </small>Some changes:If I run “smartctl -a -d sat /dev/sgX” or “smartctl -a -d scsi /dev/sgX” smart-info is not shown.</li>
<li id="comment-164"><cite><a href="http://www.adaptec.com/" rel="external nofollow">Phil Wilson</a></cite> Says:<br />
<small><a title="" href="http://www.adaptec.com/weblog/2008/09/26/smartmontools-and-adaptec-raid-controllers/#comment-164">May 14th, 2009 at 12:43 pm</a> </small>Hi Vladimir, I’m sorry for the long delay &#8211; been travelling to our head office and then stuck in all day meetings so I’m trying to catch up.The way that this works is that smartctl generates an ATA command to retrieve the smart information but because the underlying transport is based on SCSI, it uses the SCSI ATA translation (SAT) command to create a standard SCSI command descriptor block with the ATA command embedded inside it.</p>
<p>The later generation series-2 and series-5 controllers understand this command (op code 85h) and process the embedded SATA command however the firmware for the series-3 controllers doesn’t support it.</p>
<p>I went round this with our design engineering group to see if it was possible to add support to the series-3 but it would require a lot of development effort. Its a shame because SAT support adds capability like being able to download microcode to SATA disks through the controllers which has been important to our data centre customers.</p>
<p>Just as an aside, the next version of the ASM GUI and arcconf CLI program provides new menu options allowing you to download disk microcode to SAS and SATA disks on series-2 and 5 controllers.</p>
<p>Just a quick heads up for series-2 and series-5 customers who have updated to firmware 16507 (which is only available by contacting our tech support team). This includes some changes to support the new disk firmware flash capabiltiy but has introduced a glitch with smartctl. I’m investigating this but for the time being, if you are using this firmware then you need to add -T permissive to the end of your smartctl command.</p>
<p>Hope this is a help &#8211; welcome any feedback.<br />
thanks, Phil</li>
<li id="comment-183"><cite>Mike</cite> Says:<br />
<small><a title="" href="http://www.adaptec.com/weblog/2008/09/26/smartmontools-and-adaptec-raid-controllers/#comment-183">May 30th, 2009 at 5:53 pm</a> </small>Hello,I have a ICP5085BL and it does not work for me. OS is Ubuntu 9.10, newest firmware.</p>
<p><a href="mailto:mike@host:/dev$">mike@host:/dev$</a> sudo smartctl –all -d sat /dev/sg10<br />
smartctl version 5.38 [x86_64-unknown-linux-gnu] Copyright (C) 2002-8 Bruce Allen<br />
Home page is <a href="http://smartmontools.sourceforge.net/" rel="nofollow">http://smartmontools.sourceforge.net/</a></p>
<p>=== START OF INFORMATION SECTION ===<br />
Device Model: [No Information Found]<br />
Serial Number: [No Information Found]<br />
Firmware Version: [No Information Found]<br />
Device is: Not in smartctl database [for details use: -P showall]<br />
ATA Version is: 1<br />
ATA Standard is: Exact ATA specification draft version not indicated<br />
Local Time is: Sat May 30 20:54:03 2009 CEST<br />
SMART is only available in ATA Version 3 Revision 3 or greater.<br />
We will try to proceed in spite of this.<br />
SMART support is: Ambiguous &#8211; ATA IDENTIFY DEVICE words 82-83 don’t show if SMART supported.<br />
Checking for SMART support by trying SMART ENABLE command.<br />
SMART ENABLE appeared to work! Continuing.<br />
SMART support is: Ambiguous &#8211; ATA IDENTIFY DEVICE words 85-87 don’t show if SMART is enabled.<br />
A mandatory SMART command failed: exiting. To continue, add one or more ‘-T permissive’ options.</p>
<p>Any ideas?</p>
<p>Kind regards<br />
Mike</li>
<li id="comment-184"><cite>Mike</cite> Says:<br />
<small><a title="" href="http://www.adaptec.com/weblog/2008/09/26/smartmontools-and-adaptec-raid-controllers/#comment-184">May 30th, 2009 at 5:58 pm</a> </small>Oh Ubuntu version is 9.04 <img src="http://www.adaptec.com/weblog/wp-includes/images/smilies/icon_smile.gif" alt=":)" /></li>
<li id="comment-189"><cite><a href="http://www.adaptec.com/" rel="external nofollow">Phil Wilson</a></cite> Says:<br />
<small><a title="" href="http://www.adaptec.com/weblog/2008/09/26/smartmontools-and-adaptec-raid-controllers/#comment-189">June 2nd, 2009 at 11:47 am</a> </small>Hi Mike, sorry for the delay. The ICP 5085BL is a different model to the Adaptec controllers and doesn’t follow the same model numbering convention. It has higher performance but is based on the same code base as the Adaptec series-3. Unfortunately this code base doesn’t support the SAT opcode as mentioned in my previous note. Consequently smartctl would work with SAS disks but not with SATA.The controller will still forward any SMART warnings or errors generatedb by the drive to the management software / operating system.</p>
<p>Sorry for not being clearer over the model numbers &#8211; I remember thinking it would be challenging when the Adaptec series-5 controllers were launched.</p>
<p>many thanks, Phil</li>
<li id="comment-278"><cite>Ryan</cite> Says:<br />
<small><a title="" href="http://www.adaptec.com/weblog/2008/09/26/smartmontools-and-adaptec-raid-controllers/#comment-278">August 30th, 2009 at 2:07 pm</a> </small>Is it possible to use smartctl with a 2420S? If not, what other ways can the health of the individual SCSI drives be monitored?</li>
<li id="comment-279"><cite>Ryan</cite> Says:<br />
<small><a title="" href="http://www.adaptec.com/weblog/2008/09/26/smartmontools-and-adaptec-raid-controllers/#comment-279">August 30th, 2009 at 2:13 pm</a> </small>I answered my own question: modprobe sg and use the /dev/sgX devices instead.</li>
<li id="comment-284"><cite><a href="http://www.patrick-brueckner.de/" rel="external nofollow">Patrick</a></cite> Says:<br />
<small><a title="" href="http://www.adaptec.com/weblog/2008/09/26/smartmontools-and-adaptec-raid-controllers/#comment-284">September 12th, 2009 at 1:44 pm</a> </small>Hey, I was just wondering if this was also possible for the Adaptec ASR-2420SA.<br />
Reading the information from /dev/sgX results in this message:# smartctl –all /dev/sg0 -d sat -T<br />
smartctl version 5.38 [i486-slackware-linux-gnu] Copyright (C) 2002-8 Bruce Allen<br />
Home page is <a href="http://smartmontools.sourceforge.net/" rel="nofollow">http://smartmontools.sourceforge.net/</a></p>
<p>=======&gt; ARGUMENT REQUIRED FOR OPTION: T<br />
=======&gt; VALID ARGUMENTS ARE: normal, conservative, permissive, verypermissive</li>
<li id="comment-286"><cite><a href="http://www.adaptec.com/" rel="external nofollow">Phil Wilson</a></cite> Says:<br />
<small><a title="" href="http://www.adaptec.com/weblog/2008/09/26/smartmontools-and-adaptec-raid-controllers/#comment-286">September 14th, 2009 at 4:44 pm</a> </small>Hi Patrick, sorry for the delay. I’m not sure about this &#8211; I’ll have to give it a try (travelling at the moment so it would be later this week). You could try adding -T permissive on the end. It depends whether the firmware of the 2420 supports the SAT command. If you try &#8211; let me know what happens.thanks, Phil</li>
<li id="comment-301"><cite>Joel Franco</cite> Says:<br />
<small><a title="" href="http://www.adaptec.com/weblog/2008/09/26/smartmontools-and-adaptec-raid-controllers/#comment-301">October 22nd, 2009 at 11:08 am</a> </small>Thank You by this information.I didn’t know that could be possible to take the information passtrough the raid board.</p>
<p>It could be cool if you publish a table with the raid boards that this method supports; it’s dificul to us, users, to know how to get information from the raid device without open source consolidated tools.</li>
<li id="comment-306"><cite><a href="http://www.adaptec.com/" rel="external nofollow">Phil Wilson</a></cite> Says:<br />
<small><a title="" href="http://www.adaptec.com/weblog/2008/09/26/smartmontools-and-adaptec-raid-controllers/#comment-306">October 30th, 2009 at 1:02 pm</a> </small>Hi Joel, good point, I’ll try to put together a list of what controllers have which passthrough features. It might take a bit of time as I’ll have to try some of them to determine what is supported.The latest controllers &#8211; series 2 and series 5 &#8211; support SCSI and SAT passthrough and will work with smartmontools for both SATA and SAS disks. There is a driver bug which appears when using the latest firmware documented here with a temporary workaround until a driver fix makes it into distributions.</p>
<p><a href="http://linux.adaptec.com/2009/07/24/using-smartmontools-538-with-series-255z-controllers-with-firmware-17380-onwards/" rel="nofollow">http://linux.adaptec.com/2009/07/24/using-smartmontools-538-with-series-255z-controllers-with-firmware-17380-onwards/</a></p>
<p>Series-3 controllers support SCSI passthrough but in the standard code as shipped in the channel (non-OEM), do not support SAT passthough smartmontools will work with SAS but not SATA disks.</p>
<p>many thanks, Phil</li>
<li id="comment-308"><cite><a href="http://no/" rel="external nofollow">Paul</a></cite> Says:<br />
<small><a title="" href="http://www.adaptec.com/weblog/2008/09/26/smartmontools-and-adaptec-raid-controllers/#comment-308">November 2nd, 2009 at 11:50 pm</a> </small>Patrick, you did not pass any parameter to the -T option.Try -T verypermissive</li>
<li id="comment-361"><cite><a href="http://www.lexiconn.com/" rel="external nofollow">Rob Mangiafico</a></cite> Says:<br />
<small><a title="" href="http://www.adaptec.com/weblog/2008/09/26/smartmontools-and-adaptec-raid-controllers/#comment-361">February 19th, 2010 at 4:32 pm</a> </small>Is it safe to run smartctl tests on an Adaptec 3404 controller with SAS drives with commands such as:<br />
smartctl -t short /dev/sg2<br />
smartctl -t long /dev/sg2We would like to catch the uncorrectable errors, as the controller is not failing out failing drives automatically, which is resulting in failed stripes in a RAID-1 array many times.</p>
<p>Just want to make sure it’s safe to run tests against the physical drives with smartctl when using an Adaptec 3405 controller. Thanks! Rob</li>
<li id="comment-363"><cite><a href="http://www.adaptec.com/" rel="external nofollow">fri23368</a></cite> Says:<br />
<small><a title="" href="http://www.adaptec.com/weblog/2008/09/26/smartmontools-and-adaptec-raid-controllers/#comment-363">February 22nd, 2010 at 10:53 am</a> </small>Hello Rob,smartmon tools are officially supported on Adaptec Series-2/5/5Z cards.</p>
<p>Support for Series-3 has been added recently but only for specific accounts so this has not been officially validated by Adaptec.</p>
<p>You can download the neccessary firmware here:</p>
<p><a href="http://www.adaptec.com/support/files/" rel="nofollow">http://www.adaptec.com/support/files/</a></p>
<p>Filenames:<br />
3085_fw_b17335.exe<br />
3405_fw_b17335.exe<br />
3805_fw_b17335.exe<br />
31205_fw_b17335.exe<br />
31605_fw_b17335.exe</p>
<p>Password for all files: phoenix</p>
<p>Regards<br />
Juergen</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.adaptec.com/weblog/2008/09/26/smartmontools-and-adaptec-raid-controllers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
