Opened 3 years ago

Last modified 16 months ago

#1440 new defect

'smartctl -n standby' wakes up Adaptec HBA adapter drives

Reported by: Andrey P. Owned by:
Priority: major Milestone: undecided
Component: all Version: 7.2
Keywords: aacraid linux Cc:

Description (last modified by Christian Franke)

After update from smartctl 6.2 2017-02-27 r4394 Linux 3.10.0-693 to smartctl 6.6 2017-11-05 r4594 Linux 3.10.0-957 we've got logs full of the following messages:

Apr 11 15:13:18 us6-acs1-stor08 smartd[2742]: Device: /dev/sdbb [SAT], CHECK POWER STATUS spins up disk (0x81 -> 0xff)

Hardware: Adaptec HBA adapter.

The issue affects recent smartctl 7.2 as well. It appears in code block trunk/smartmontools/os_linux.cpp@5208#L3437 when executing linux_smart_device(O_RDWR|O_NONBLOCK) on line trunk/smartmontools/os_linux.cpp@5208#L979 in c-tor of class linux_aacraid_device.

The issue is similar to ticket #37.

Change History (3)

comment:1 by Christian Franke, 3 years ago

Description: modified (diff)

comment:2 by Christian Franke, 3 years ago

Keywords: linux added; hba adaptec power removed
Milestone: Release 7.3undecided

After update from smartctl 6.2 2017-02-27 r4394 Linux 3.10.0-693 ...

The official release was 6.2 2013-07-26 r3841, not r4394.

If possible, please check which smartmontools release introduced the problem.

Apr 11 15:13:18 us6-acs1-stor08 smartd[2742]: Device: /dev/sdbb [SAT], ...

You referred to smartctl, but provided a sample output from smartd. Does this mean that the problem could be reproduced with both?

It appears in code block ... in c-tor of class linux_aacraid_device.

Does the spin up actually appear in or after c-tor execution but before device open()? The c-tors only initialize members and do not access the device.

Please check which command spins up the device:

  smartctl -d aacraid,... -i /dev/sdbb
  smartctl -d sat+aacraid,... -i /dev/sdbb
  smartctl -d scsi+aacraid,... -i /dev/sdbb

The issue is similar to ticket #37.

This was somewhat different. Experiments showed that the spin up was triggered late by close(). Possibly because the kernel then sends some flush command when a raw device was open for writing. It affected default Linux SCSI/SAT/SATA layer, not any RAID controller.

But it is possibly worth the effort to check whether the fix for #37 would also help here. Please try this patch:

  • os_linux.cpp

     
    976976linux_aacraid_device::linux_aacraid_device(smart_interface *intf,
    977977  const char *dev_name, unsigned int host, unsigned int channel, unsigned int device)
    978978   : smart_device(intf,dev_name,"aacraid","aacraid"),
    979      linux_smart_device(O_RDWR|O_NONBLOCK),
     979     linux_smart_device(O_RDONLY|O_NONBLOCK),
    980980     aHost(host), aLun(channel), aId(device)
    981981{
    982982  set_info().info_name = strprintf("%s [aacraid_disk_%02d_%02d_%d]",dev_name,aHost,aLun,aId);

PS: Please do not set the Milestone in future submissions.

comment:3 by (none), 16 months ago

Play Store يتيح لك تنزيل تطبيقات Android وتثبيتها في Google play بشكل رسمي وآمن. إنه متجر Google الرسمي والبوابة الإلكترونية لتطبيقات Android والألعاب والمحتويات الأخرى لهاتفك أو جهازك اللوحي الذي يعمل بنظام Android.
متجر بلاي
Google Play هو قلب نظام التشغيل Android. بدونها ، لن يتمكن المستخدم العادي من جعل جهاز Android يعمل بشكل صحيح. لذلك في هذه المقالة ، سنخبرك بأحدث تحديثات متجر Google Play وأحدث إصدار قيد التشغيل.
جوجل بلاي
تمامًا كما تمتلك Apple متجر التطبيقات الخاص بها ، تمتلك Google Google Play! إنه مكان ضخم ويقدم الكثير من المحتوى لمستخدميه. متجر Play غير متوفر في Google Play كتطبيق للتنزيل.
جوجل بلاي
متجر Play يتعامل فقط مع تطبيقات android. يستخدمه العالم كله لتنزيل التطبيقات في هواتفهم الذكية أو أجهزة Android أو الأجهزة اللوحية. يمكن للمستخدمين البحث عن تطبيقاتهم وتثبيتها باستخدام هذا النظام الأساسي. متجر تطبيقات Appvn هو نظام أساسي مشابه لتنزيلات التطبيقات وتحديثاتها. يتم دفع بعض التطبيقات ولكن معظم التطبيقات مجانية هنا.
جوجل بلاي
تحديث متجر Play إلى أحدث إصدار:

يأتي متجر Play مثبتًا على جميع أجهزة Android نظرًا لأهميته في إدارة التطبيقات المثبتة وتثبيت تطبيقات جديدة. ولكن ، عادةً بالنسبة للمستخدمين الجدد على نظام التشغيل Android أو للأشخاص الذين لم يحدّثوا إصداراتهم المثبتة من متجر Play ، يمكنك التحديث إلى أحدث إصدار من Google Play من خلال ملف APK هذا.
تحميل جوجل بلاي
يمكنك البدء بالتنزيل من هذه الصفحة إذا كنت ترغب في الحصول على أحدث إصدار من إصدار Google Play Store 2019.
يمكنك أيضًا البحث عن جميع أنواع التطبيقات مثل الموسيقى والألعاب والكتب ومقاطع الفيديو ومحرري الصور وغير ذلك الكثير. يؤدي البحث عن كلمة واحدة إلى عدد من أنواع التطبيقات المتشابهة ويمكنك تثبيت التطبيق الذي تريده على هاتف Android الخاص بك. علاوة على ذلك ، فإنه يعرض التصنيفات الحالية للتطبيق. حتى تتمكن من الحكم على التطبيق من خلال تقييم العرض ثم تثبيت التطبيق.
قم بتحديث تطبيقاتك عبر متجر Play مباشرة:

ستتم إدارة جميع التطبيقات التي تقوم بتثبيتها على جهاز Android الخاص بك عبر متجر Play. سيتأكد من وصول جميع الإصدارات الأحدث التي أصدرها مطورو التطبيقات إليك. من خلال تحديث تطبيقاتك باستمرار ، يمكنك تمكينها من العمل بشكل صحيح. تحتوي تحديثات التطبيق عادةً على إصلاحات للأخطاء وميزات جديدة ستجعل تجربة التطبيق أفضل بكثير.

ملاحظة: لن يعمل متجر Google Play إلا بعد تثبيت خدمات Google Play في جهازك.

Version 0, edited 16 months ago by (none) (next)
Note: See TracTickets for help on using tickets.