LINUX.ORG.RU

2.4 sata smartmontools


0

0

Добрый день. Подскажите, возможно ли, через стандартный для SATA дисков драйвер libata (как я понимаю, это когад диски именуются как /dev/sda) мониторить диски? В последний раз была ошибка, что SATA не поддерживается, но офф сайте говорится, что возможно работа только через стандартный IDE драйвер (или legacy mode в БИОС). Есть какие-либо варианты решения проблемы?

★★★★★

Ответ на: комментарий от Gharik

Т.е. если у меня диски видны как sda, sdb, ... -d ata покатит? На каких ядрах должно работать? Т.е. начиная с каких в 2.4?

roy ★★★★★
() автор топика
Ответ на: комментарий от Gharik

Попробовал последние smartmontools:

./smartctl -a /dev/sda
smartctl version 5.37 [i686-pc-linux-gnu] Copyright (C) 2002-6 Bruce Allen
Home page is http://smartmontools.sourceforge.net/


Probable ATA device behind a SAT layer
Try an additional '-d ata' or '-d sat' argument.

-----
./smartctl -a -d ata /dev/sda
smartctl version 5.37 [i686-pc-linux-gnu] Copyright (C) 2002-6 Bruce Allen
Home page is http://smartmontools.sourceforge.net/

Smartctl: Device Read Identity Failed (not an ATA/ATAPI device)

A mandatory SMART command failed: exiting. To continue, add one or more '-T permissive' options.

----
./smartctl -a -d sat /dev/sda
smartctl version 5.37 [i686-pc-linux-gnu] Copyright (C) 2002-6 Bruce Allen
Home page is http://smartmontools.sourceforge.net/

Smartctl: Device Read Identity Failed (not an ATA/ATAPI device)

A mandatory SMART command failed: exiting. To continue, add one or more '-T permissive' options.

Ядро 2.4.32. Что можно попробовать сделать?

roy ★★★★★
() автор топика
Ответ на: комментарий от roy

Мил человек, ну загляните в FAQ, почитайте INSTALL, ведь все написано:

man smartd.conf
man smartctl
man smartd

/usr/sbin/smartctl -s on -o on -S on /dev/hda (only root can do this)
/usr/sbin/smartctl -a /dev/hda (only root can do this)

(сначала СМАРТ включает и только ПОТОМ опрашиваем)

А может на 2.4 поддержка ioctl'ов для смарта кривая - хз, последний сервак с 2.4 давно уже пылью рассыпался.

Gharik
()
Ответ на: комментарий от Gharik

smartctl to read info from your SATA drive, it would fail because libata didn't yet support the needed ATA-passthrough ioctl() calls. Support has been added for this since kernel 2.6.15. Older kernels have to be patched with libata-dev, developed by Jeff Garzik, the developer of libata. The libata patchset can be acquired from http://www.kernel.org/pub/linux/kernel/people/jgarzik/libata/ , and after you install it, you can use smartctl to read SMART info from SATA device. However you must specify, on the command line, option "-d ata".

Спасибо

roy ★★★★★
() автор топика
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.