<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:"Segoe UI";
        panose-1:2 11 5 2 4 2 4 2 2 3;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
p.MsoPlainText, li.MsoPlainText, div.MsoPlainText
        {mso-style-priority:99;
        mso-style-link:"Plain Text Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
span.PlainTextChar
        {mso-style-name:"Plain Text Char";
        mso-style-priority:99;
        mso-style-link:"Plain Text";
        font-family:"Calibri",sans-serif;}
span.EmailStyle20
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
span.EmailStyle21
        {mso-style-type:personal;
        font-family:"Times New Roman",serif;
        color:windowtext;
        font-weight:normal;
        font-style:normal;
        text-decoration:none none;}
span.EmailStyle22
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
span.EmailStyle23
        {mso-style-type:personal;
        font-family:"Times New Roman",serif;
        color:windowtext;
        font-weight:normal;
        font-style:normal;
        text-decoration:none none;}
span.EmailStyle24
        {mso-style-type:personal;
        font-family:"Times New Roman",serif;
        color:windowtext;
        font-weight:normal;
        font-style:normal;
        text-decoration:none none;}
span.EmailStyle25
        {mso-style-type:personal;
        font-family:"Times New Roman",serif;
        color:windowtext;
        font-weight:normal;
        font-style:normal;
        text-decoration:none none;}
span.EmailStyle26
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
span.EmailStyle27
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
span.EmailStyle28
        {mso-style-type:personal;
        font-family:"Times New Roman",serif;
        color:windowtext;
        font-weight:normal;
        font-style:normal;
        text-decoration:none none;}
span.EmailStyle31
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal">Hi David,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">You can get the information of power management information of logical drives from ‘arcconf  getconfig 1 ld’. This can be used to construct the needed logic, to not send any smartctl commands to the constituent drives<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Output from arcconf tool for GETCONFIG command.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">   <span style="background:yellow;mso-highlight:yellow">Slow down after(Minutes)                   : 3m<o:p></o:p></span></p>
<p class="MsoNormal"><span style="background:yellow;mso-highlight:yellow">   Power off after(Minutes)                   : 5m<o:p></o:p></span></p>
<p class="MsoNormal"><span style="background:yellow;mso-highlight:yellow">   Verify after(Hours)                        : never<o:p></o:p></span></p>
<p class="MsoNormal"><span style="background:yellow;mso-highlight:yellow">  Power State                                : Powered Off</span><o:p></o:p></p>
<p class="MsoNormal">   --------------------------------------------------------<o:p></o:p></p>
<p class="MsoNormal">   Logical Device segment information<o:p></o:p></p>
<p class="MsoNormal">   --------------------------------------------------------<o:p></o:p></p>
<p class="MsoNormal">   Segment 0                                  : Present (953869MB, SATA, HDD, Enclosure:0, Slot:0)             Z9A68LJL<o:p></o:p></p>
<p class="MsoNormal">   Segment 1                                  : Present (953869MB, SATA, HDD, Enclosure:0, Slot:1)             Z9A68G1D<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Please let me know if you have any further queries on this.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thanks,<o:p></o:p></p>
<p class="MsoNormal">Uday<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b>From:</b> David C. Partridge [mailto:david.partridge@perdrix.co.uk]
<br>
<b>Sent:</b> Saturday, February 6, 2021 5:13 PM<br>
<b>To:</b> Sagar Biradar - C34249 <Sagar.Biradar@microchip.com>; Sachin Kumar - I31159 <Sachin.Kumar2@microchip.com>; Christian.Franke@t-online.de; Balaji Marimuthu - I30586 <Balaji.Marimuthu@microchip.com>; Kandula Udayanadh Babu - I30587 <Kandula.UdayanadhBabu@microchip.com><br>
<b>Cc:</b> smartmontools-support@listi.jpberlin.de; Tom White - C33503 <Tom.White@microchip.com><br>
<b>Subject:</b> RE: [smartmontools-support] DEFAULT -n standby not working for Adaptec Raid<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div style="border:solid red 1.0pt;padding:2.0pt 2.0pt 2.0pt 2.0pt">
<p class="MsoNormal" style="background:yellow"><span lang="EN-GB" style="font-family:"Arial",sans-serif;color:red">EXTERNAL EMAIL:
</span><span lang="EN-GB" style="font-family:"Arial",sans-serif">Do not click links or open attachments unless you know the content is safe
<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-GB" style="font-family:"Times New Roman",serif">No that’s not what this is about – the problem is that smartd wakes the drives when it does its regular check – it need to check the drive status (Active, Powered Off) before
 attempting to send a smart command to the devices currently it juist deos its half hourly cgheck and this causes the controller to wake the drive,  Need a way for the smart code to ask the controller whether the drives are active or powered down.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-family:"Times New Roman",serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-family:"Times New Roman",serif">David<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-family:"Times New Roman",serif"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b>From:</b> <a href="mailto:Sagar.Biradar@microchip.com">Sagar.Biradar@microchip.com</a> <<a href="mailto:Sagar.Biradar@microchip.com">Sagar.Biradar@microchip.com</a>>
<br>
<b>Sent:</b> 06 February 2021 01:00<br>
<b>To:</b> <a href="mailto:david.partridge@perdrix.co.uk">david.partridge@perdrix.co.uk</a>;
<a href="mailto:Sachin.Kumar2@microchip.com">Sachin.Kumar2@microchip.com</a>; <a href="mailto:Christian.Franke@t-online.de">
Christian.Franke@t-online.de</a>; <a href="mailto:Balaji.Marimuthu@microchip.com">
Balaji.Marimuthu@microchip.com</a>; <a href="mailto:Kandula.UdayanadhBabu@microchip.com">
Kandula.UdayanadhBabu@microchip.com</a><br>
<b>Cc:</b> <a href="mailto:smartmontools-support@listi.jpberlin.de">smartmontools-support@listi.jpberlin.de</a>;
<a href="mailto:Tom.White@microchip.com">Tom.White@microchip.com</a><br>
<b>Subject:</b> RE: [smartmontools-support] DEFAULT -n standby not working for Adaptec Raid<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><span lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal">Hi David,<br>
Probably you are looking for this<o:p></o:p></p>
<p><i><span style="font-size:10.0pt;font-family:"Segoe UI",sans-serif;color:#DA846B">aacraid,H,L,ID</span></i><span style="font-size:10.0pt;font-family:"Segoe UI",sans-serif;color:#DA846B"> - [Linux, Windows and Cygwin only] the device consists of one or more
 SCSI/SAS or SATA disks connected to an AacRaid controller. The non-negative integers H,L,ID (Host number, Lun, ID) denote which disk on the controller is monitored. Use syntax such as:<br>
<b>smartctl -a -d aacraid,0,0,2 /dev/sda</b><br>
<b>smartctl -a -d aacraid,1,0,4 /dev/sdb</b><o:p></o:p></span></p>
<p><span style="font-size:10.0pt;font-family:"Segoe UI",sans-serif;color:#DA846B">Option '-d sat,auto+...' is implicitly enabled to detect SATA disks. Use '-d scsi+aacraid,H,L,ID' to disable it.<br>
On Linux, the following entry in /proc/devices must exist: <b>aac</b>. Character device nodes /dev/aacH (H=Host number) are created if required.<br>
On Windows, the device name parameter /dev/sdX is ignored if '-d aacraid' is specified.<o:p></o:p></span></p>
<p class="MsoNormal">From<span style="font-size:10.0pt;font-family:"Segoe UI",sans-serif;color:#DA846B">:
<a href="https://www.smartmontools.org/browser/trunk/smartmontools/smartctl.8.in" target="_blank" title="https://www.smartmontools.org/browser/trunk/smartmontools/smartctl.8.in">
https://www.smartmontools.org/browser/trunk/smartmontools/smartctl.8.in</a><o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I am adding Balaji and Uday, from the apps team to help with exact IOCTLs and possible alternatives.<o:p></o:p></p>
<p class="MsoNormal">Balaji and Uday – could you please help David with tools/IOCTL to find the powerstate of all the drives participating in a volume?<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thanks<o:p></o:p></p>
<p class="MsoNormal">Sagar<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div style="border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt">
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b>From:</b> David C. Partridge [<a href="mailto:david.partridge@perdrix.co.uk">mailto:david.partridge@perdrix.co.uk</a>]
<br>
<b>Sent:</b> Friday, February 5, 2021 1:44 PM<br>
<b>To:</b> Sachin Kumar - I31159 <<a href="mailto:Sachin.Kumar2@microchip.com">Sachin.Kumar2@microchip.com</a>>; Sagar Biradar - C34249 <<a href="mailto:Sagar.Biradar@microchip.com">Sagar.Biradar@microchip.com</a>>;
<a href="mailto:Christian.Franke@t-online.de">Christian.Franke@t-online.de</a><br>
<b>Cc:</b> <a href="mailto:smartmontools-support@listi.jpberlin.de">smartmontools-support@listi.jpberlin.de</a>; Tom White - C33503 <<a href="mailto:Tom.White@microchip.com">Tom.White@microchip.com</a>><br>
<b>Subject:</b> RE: [smartmontools-support] DEFAULT -n standby not working for Adaptec Raid<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div style="border:solid red 1.0pt;padding:2.0pt 2.0pt 2.0pt 2.0pt">
<p class="MsoNormal" style="background:yellow"><span lang="EN-GB" style="font-family:"Arial",sans-serif;color:red">EXTERNAL EMAIL:
</span><span lang="EN-GB" style="font-family:"Arial",sans-serif">Do not click links or open attachments unless you know the content is safe
<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-GB" style="font-family:"Times New Roman",serif">Or in fact how to ask the raid controller about the power status of each logical device as the RAID config is for power management by logical device.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-family:"Times New Roman",serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-family:"Times New Roman",serif">D.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-family:"Times New Roman",serif"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b>From:</b> Smartmontools-support <<a href="mailto:smartmontools-support-bounces@listi.jpberlin.de">smartmontools-support-bounces@listi.jpberlin.de</a>>
<b>On Behalf Of </b>David C. Partridge<br>
<b>Sent:</b> 05 February 2021 16:41<br>
<b>To:</b> <a href="mailto:Sachin.Kumar2@microchip.com">Sachin.Kumar2@microchip.com</a>;
<a href="mailto:Sagar.Biradar@microchip.com">Sagar.Biradar@microchip.com</a>; <a href="mailto:Christian.Franke@t-online.de">
Christian.Franke@t-online.de</a><br>
<b>Cc:</b> <a href="mailto:smartmontools-support@listi.jpberlin.de">smartmontools-support@listi.jpberlin.de</a>;
<a href="mailto:Tom.White@microchip.com">Tom.White@microchip.com</a><br>
<b>Subject:</b> Re: [smartmontools-support] DEFAULT -n standby not working for Adaptec Raid<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><span lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-family:"Times New Roman",serif">hdparm -C /dev/sdb reports standby for the logical device anyhow when the device is in Active status (which is wrong)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-family:"Times New Roman",serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-family:"Times New Roman",serif">We need to know how to ask the raid controller the state of each of the *<b>physical</b>* devices which make up the raid array.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-family:"Times New Roman",serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-family:"Times New Roman",serif">D.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Times New Roman",serif"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt">
<p class="MsoPlainText"><o:p> </o:p></p>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>