[smartmontools-support] DEFAULT -n standby not working for Adaptec Raid

Kandula.UdayanadhBabu at microchip.com Kandula.UdayanadhBabu at microchip.com
Tue Feb 9 09:25:32 CET 2021


Hi David,

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

Output from arcconf tool for GETCONFIG command.

   Slow down after(Minutes)                   : 3m
   Power off after(Minutes)                   : 5m
   Verify after(Hours)                        : never
  Power State                                : Powered Off
   --------------------------------------------------------
   Logical Device segment information
   --------------------------------------------------------
   Segment 0                                  : Present (953869MB, SATA, HDD, Enclosure:0, Slot:0)             Z9A68LJL
   Segment 1                                  : Present (953869MB, SATA, HDD, Enclosure:0, Slot:1)             Z9A68G1D

Please let me know if you have any further queries on this.

Thanks,
Uday


From: David C. Partridge [mailto:david.partridge at perdrix.co.uk]
Sent: Saturday, February 6, 2021 5:13 PM
To: Sagar Biradar - C34249 <Sagar.Biradar at microchip.com>; Sachin Kumar - I31159 <Sachin.Kumar2 at microchip.com>; Christian.Franke at t-online.de; Balaji Marimuthu - I30586 <Balaji.Marimuthu at microchip.com>; Kandula Udayanadh Babu - I30587 <Kandula.UdayanadhBabu at microchip.com>
Cc: smartmontools-support at listi.jpberlin.de; Tom White - C33503 <Tom.White at microchip.com>
Subject: RE: [smartmontools-support] DEFAULT -n standby not working for Adaptec Raid

EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe
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.

David

From: Sagar.Biradar at microchip.com<mailto:Sagar.Biradar at microchip.com> <Sagar.Biradar at microchip.com<mailto:Sagar.Biradar at microchip.com>>
Sent: 06 February 2021 01:00
To: david.partridge at perdrix.co.uk<mailto:david.partridge at perdrix.co.uk>; Sachin.Kumar2 at microchip.com<mailto:Sachin.Kumar2 at microchip.com>; Christian.Franke at t-online.de<mailto:Christian.Franke at t-online.de>; Balaji.Marimuthu at microchip.com<mailto:Balaji.Marimuthu at microchip.com>; Kandula.UdayanadhBabu at microchip.com<mailto:Kandula.UdayanadhBabu at microchip.com>
Cc: smartmontools-support at listi.jpberlin.de<mailto:smartmontools-support at listi.jpberlin.de>; Tom.White at microchip.com<mailto:Tom.White at microchip.com>
Subject: RE: [smartmontools-support] DEFAULT -n standby not working for Adaptec Raid

Hi David,
Probably you are looking for this

aacraid,H,L,ID - [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:
smartctl -a -d aacraid,0,0,2 /dev/sda
smartctl -a -d aacraid,1,0,4 /dev/sdb

Option '-d sat,auto+...' is implicitly enabled to detect SATA disks. Use '-d scsi+aacraid,H,L,ID' to disable it.
On Linux, the following entry in /proc/devices must exist: aac. Character device nodes /dev/aacH (H=Host number) are created if required.
On Windows, the device name parameter /dev/sdX is ignored if '-d aacraid' is specified.
From: https://www.smartmontools.org/browser/trunk/smartmontools/smartctl.8.in

I am adding Balaji and Uday, from the apps team to help with exact IOCTLs and possible alternatives.
Balaji and Uday – could you please help David with tools/IOCTL to find the powerstate of all the drives participating in a volume?

Thanks
Sagar

From: David C. Partridge [mailto:david.partridge at perdrix.co.uk]
Sent: Friday, February 5, 2021 1:44 PM
To: Sachin Kumar - I31159 <Sachin.Kumar2 at microchip.com<mailto:Sachin.Kumar2 at microchip.com>>; Sagar Biradar - C34249 <Sagar.Biradar at microchip.com<mailto:Sagar.Biradar at microchip.com>>; Christian.Franke at t-online.de<mailto:Christian.Franke at t-online.de>
Cc: smartmontools-support at listi.jpberlin.de<mailto:smartmontools-support at listi.jpberlin.de>; Tom White - C33503 <Tom.White at microchip.com<mailto:Tom.White at microchip.com>>
Subject: RE: [smartmontools-support] DEFAULT -n standby not working for Adaptec Raid

EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe
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.

D.

From: Smartmontools-support <smartmontools-support-bounces at listi.jpberlin.de<mailto:smartmontools-support-bounces at listi.jpberlin.de>> On Behalf Of David C. Partridge
Sent: 05 February 2021 16:41
To: Sachin.Kumar2 at microchip.com<mailto:Sachin.Kumar2 at microchip.com>; Sagar.Biradar at microchip.com<mailto:Sagar.Biradar at microchip.com>; Christian.Franke at t-online.de<mailto:Christian.Franke at t-online.de>
Cc: smartmontools-support at listi.jpberlin.de<mailto:smartmontools-support at listi.jpberlin.de>; Tom.White at microchip.com<mailto:Tom.White at microchip.com>
Subject: Re: [smartmontools-support] DEFAULT -n standby not working for Adaptec Raid

hdparm -C /dev/sdb reports standby for the logical device anyhow when the device is in Active status (which is wrong)

We need to know how to ask the raid controller the state of each of the *physical* devices which make up the raid array.

D.



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://listi.jpberlin.de/pipermail/smartmontools-support/attachments/20210209/0cef1be1/attachment-0001.htm>


More information about the Smartmontools-support mailing list