Вышла новая версия пакета smartmontools (http://www.smartmontools.org) (5.42), содержащего приложения (smartctl и smartd) для мониторинга и контроля (S)ATA и SCSI/SAS дисков, поддерживающих технологию SMART.
Основные изменения (http://sourceforge.net/apps/trac/smartmontools/browser/tags/...), реализованные с момента выхода 5.40 (http://www.opennet.me/opennews/art.shtml?num=28329):
- Ключ smartctl '-l devstat' (статистка устройства);
- Ключ smartctl '-l ssd' (индикатор выносливости SSD);
- Smartd сохраняет идентификаторы всех SCSI/SAS устройств;
- Smartd посылает email при повторении проблемы;
- Новые ключи smartd '-l offlinests' и '-l selfteststs';
- Множество новых HDD, SSD и USB дисков в базе данных;
- Man-страницы теперь содержат только информацию актуальную для используемой платформы, переработано содержимое man-страниц;
- FreeBSD: Для поддержки ciss устройств больше не требуются исходники ядра;
- FreeBSD: Добавлена поддержка ...URL: http://smartmontools.org
Новость: http://www.opennet.me/opennews/art.shtml?num=32098
udisks --show-info /dev/sda
и без рута
И что, много чего интересного кажет? Я действительно не знаю, и проверить не могу сейчас.
udisks --show-info /dev/sda
Showing information for /org/freedesktop/UDisks/devices/sda
native-path: /sys/devices/pci0000:00/0000:00:11.0/host0/target0:0:0/0:0:0:0/block/sda
device: 8:0
device-file: /dev/sda
presentation: /dev/sda
by-id: /dev/disk/by-id/ata-WDC_WD1501FASS-00W2B0_WD-WMAY00599548
by-id: /dev/disk/by-id/edd-int13_dev81
by-id: /dev/disk/by-id/scsi-SATA_WDC_WD1501FASS-_WD-WMAY00599548
by-id: /dev/disk/by-id/wwn-0x50014ee057dd2f78
by-path: /dev/disk/by-path/pci-0000:00:11.0-scsi-0:0:0:0
detected at: Fri 21 Oct 2011 10:52:53 AM MSK
system internal: 1
removable: 0
has media: 1 (detected at Fri 21 Oct 2011 10:52:53 AM MSK)
detects change: 0
detection by polling: 0
detection inhibitable: 0
detection inhibited: 0
is read only: 0
is mounted: 0
mount paths:
mounted by uid: 0
presentation hide: 0
presentation nopolicy: 0
presentation name:
presentation icon:
size: 1500301910016
block size: 512
job underway: no
usage:
type:
version:
uuid:
label:
partition table:
scheme: mbr
count: 1
drive:
vendor: ATA
model: WDC WD1501FASS-00W2B0
revision: 05.01D50
serial: WD-WMAY00599548
WWN: 50014ee057dd2f78
detachable: 0
can spindown: 1
rotational media: Yes, unknown rate
write-cache: enabled
ejectable: 0
adapter: /org/freedesktop/UDisks/adapters/0000_3a00_3a11_2e0
ports:
/org/freedesktop/UDisks/adapters/0000_3a00_3a11_2e0/host0
similar devices:
media:
compat:
interface: ata
if speed: (unknown)
ATA SMART: Data not collected
smartctl --all /dev/sda
smartctl 5.39.1 2010-01-28 r3054 [x86_64-mandriva-linux-gnu] (local build)
Copyright (C) 2002-10 by Bruce Allen, http://smartmontools.sourceforge.net=== START OF INFORMATION SECTION ===
Device Model: WDC WD1501FASS-00W2B0
Serial Number: WD-WMAY00599548
Firmware Version: 05.01D05
User Capacity: 1 500 301 910 016 bytes
Device is: Not in smartctl database [for details use: -P showall]
ATA Version is: 8
ATA Standard is: Exact ATA specification draft version not indicated
Local Time is: Fri Oct 21 10:58:28 2011 MSK
SMART support is: Available - device has SMART capability.
SMART support is: Enabled=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSEDGeneral SMART Values:
Offline data collection status: (0x82) Offline data collection activity
was completed without error.
Auto Offline Data Collection: Enabled.
Self-test execution status: ( 0) The previous self-test routine completed
without error or no self-test has ever
been run.
Total time to complete Offline
data collection: (24360) seconds.
Offline data collection
capabilities: (0x7b) SMART execute Offline immediate.
Auto Offline data collection on/off support.
Suspend Offline collection upon new
command.
Offline surface scan supported.
Self-test supported.
Conveyance Self-test supported.
Selective Self-test supported.
SMART capabilities: (0x0003) Saves SMART data before entering
power-saving mode.
Supports SMART auto save timer.
Error logging capability: (0x01) Error logging supported.
General Purpose Logging supported.
Short self-test routine
recommended polling time: ( 2) minutes.
Extended self-test routine
recommended polling time: ( 249) minutes.
Conveyance self-test routine
recommended polling time: ( 5) minutes.
SCT capabilities: (0x3037) SCT Status supported.
SCT Feature Control supported.
SCT Data Table supported.SMART Attributes Data Structure revision number: 16
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE
1 Raw_Read_Error_Rate 0x002f 200 200 051 Pre-fail Always - 0
3 Spin_Up_Time 0x0027 160 152 021 Pre-fail Always - 13991
4 Start_Stop_Count 0x0032 100 100 000 Old_age Always - 40
5 Reallocated_Sector_Ct 0x0033 200 200 140 Pre-fail Always - 0
7 Seek_Error_Rate 0x002e 200 200 000 Old_age Always - 0
9 Power_On_Hours 0x0032 093 093 000 Old_age Always - 5116
10 Spin_Retry_Count 0x0032 100 253 000 Old_age Always - 0
11 Calibration_Retry_Count 0x0032 100 253 000 Old_age Always - 0
12 Power_Cycle_Count 0x0032 100 100 000 Old_age Always - 38
192 Power-Off_Retract_Count 0x0032 200 200 000 Old_age Always - 25
193 Load_Cycle_Count 0x0032 178 178 000 Old_age Always - 68214
194 Temperature_Celsius 0x0022 099 084 000 Old_age Always - 53
196 Reallocated_Event_Count 0x0032 200 200 000 Old_age Always - 0
197 Current_Pending_Sector 0x0032 200 200 000 Old_age Always - 0
198 Offline_Uncorrectable 0x0030 200 200 000 Old_age Offline - 0
199 UDMA_CRC_Error_Count 0x0032 200 200 000 Old_age Always - 0
200 Multi_Zone_Error_Rate 0x0008 200 200 000 Old_age Offline - 1SMART Error Log Version: 1
No Errors LoggedSMART Self-test log structure revision number 1
No self-tests have been logged. [To run self-tests, use: smartctl -t]
SMART Selective self-test log data structure revision number 1
SPAN MIN_LBA MAX_LBA CURRENT_TEST_STATUS
1 0 0 Not_testing
2 0 0 Not_testing
3 0 0 Not_testing
4 0 0 Not_testing
5 0 0 Not_testing
Selective self-test flags (0x0):
After scanning selected spans, do NOT read-scan remainder of disk.
If Selective self-test is pending on power-up, resume after 0 minute delay.Почувствуйте разницу...
решили не заморачиваться - и всю простыню сюда ))
Спасибо
Не знал, спасибо
Им надо прикрутить отсылку статистики по SMART атрибутам, и WEB форму чтобы админы заполняли если винт сдох. А потом статистику вести
Зачем??
>>Множество новых HDD, SSD и USB дисков в базе данныхНадо попробовать. А то у своего внешнего диска freeagent goflex никак смарт посмотреть не могу. Сата разъемы в нем глубоко, а вскрывать корпус не хочется.
seatools самрт у него не видит
Все показывает. Также узнал, что внешний диск ST9500420AS с числом оборотов 7200
> А то у своего внешнего диска freeagent goflex никак смарт посмотреть не могу. Сата разъемы в нем глубоко, а вскрывать корпус не хочется.А документацию почитать?
smartctl --all --device=sat,16 /dev/sdXSpecifies the type of the device. The valid arguments to this option are ata, scsi, sat,
marvell, 3ware,N, areca,N, usbcypress, usbjmicron, usbsunplus, cciss,N, hpt,L/M (or
hpt,L/M/N), and test.
...
The ´sat´ device type is for ATA disks that have a SCSI to ATA Translation (SAT) Layer (SATL)
between the disk and the operating system. SAT defines two ATA PASS THROUGH SCSI commands,
one 12 bytes long and the other 16 bytes long that smartctl will utilize when this device
type is selected. The default is the 16 byte variant which can be overridden with either ´-d
sat,12´ or ´-d sat,16´.