I updated one of our boxes from RELENG_5 to 6. Couple of things I noticed was that the smartmontools and atacontrol seems to be broken now. I updated smartmon to the latest in the ports, but same problem. atapci0: <Intel ICH6 SATA150 controller> port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xf000-0xf00f at device 31.2 on pci0 [verify1] /usr/ports/sysutils/smartmontools# atacontrol list ATA channel 0: Master: ad0 <ST3120026AS/3.18> Serial ATA v1.0 Slave: no device present ATA channel 1: Master: no device present Slave: no device present [verify1] /usr/ports/sysutils/smartmontools# atacontrol cap 0 0 usage: atacontrol <command> args: atacontrol list atacontrol info channel atacontrol attach channel atacontrol detach channel atacontrol reinit channel atacontrol create type [interleave] disk0 ... diskN atacontrol delete channel atacontrol addspare array disk atacontrol rebuild array atacontrol status array atacontrol mode device [mode] atacontrol cap device [verify1] /usr/ports/sysutils/smartmontools# atacontrol info 0 atacontrol: Invalid channel 0 [verify1] /usr/ports/sysutils/smartmontools# [verify1] /usr/ports/sysutils/smartmontools# smartctl -a ad0 smartctl version 5.33 [i386-portbld-freebsd6.0] Copyright (C) 2002-4 Bruce Allen Home page is http://smartmontools.sourceforge.net/ Smartctl open device: ad0 failed: No such file or directory [verify1] /usr/ports/sysutils/smartmontools# hw.ata.ata_dma: 1 hw.ata.atapi_dma: 1 hw.ata.wc: 1 dev.atapci.0.%desc: Intel ICH6 SATA150 controller dev.atapci.0.%driver: atapci dev.atapci.0.%location: slot=31 function=2 handle=\_SB_.PCI0.IDE1 dev.atapci.0.%pnpinfo: vendor=0x8086 device=0x2651 subvendor=0x8086 subdevice=0x2651 class=0x01018a dev.atapci.0.%parent: pci0 dev.ata.0.%desc: ATA channel 0 dev.ata.0.%driver: ata dev.ata.0.%parent: atapci0 dev.ata.1.%desc: ATA channel 1 dev.ata.1.%driver: ata dev.ata.1.%parent: atapci0 dev.ad.0.%parent: ata0 ---Mike -------------------------------------------------------------------- Mike Tancsa, tel +1 519 651 3400 Sentex Communications, mike@sentex.net Providing Internet since 1994 www.sentex.net Cambridge, Ontario Canada www.sentex.net/mike
On 22/08/2005, at 22:24, Mike Tancsa wrote:> > I updated one of our boxes from RELENG_5 to 6. Couple of things I > noticed was that the smartmontools and atacontrol seems to be > broken now. I updated smartmon to the latest in the ports, but same > problem.The ioctl ABI to ATA has changed, you need atacontrol and smartmontools to be in sync. atacontrol is just a recompile, smartmontools you want rev 1.17 or later of the Makefile... - S?ren
At 04:33 PM 22/08/2005, S?ren Schmidt wrote:>On 22/08/2005, at 22:24, Mike Tancsa wrote: > >> >>I updated one of our boxes from RELENG_5 to 6. Couple of things I >>noticed was that the smartmontools and atacontrol seems to be >>broken now. I updated smartmon to the latest in the ports, but same >>problem. > >The ioctl ABI to ATA has changed, you need atacontrol and >smartmontools to be in sync. >atacontrol is just a recompile, smartmontools you want rev 1.17 or >later of the Makefile...Hi, I did a cvsup this morning and built world and kernel [verify1] /dev# ls -l /sbin/atacontrol -r-xr-xr-x 1 root wheel 12448 Aug 22 16:01 /sbin/atacontrol [verify1] /dev# ident /usr/src/sbin/atacontrol/atacontrol.c /usr/src/sbin/atacontrol/atacontrol.c: $FreeBSD: src/sbin/atacontrol/atacontrol.c,v 1.36.2.1 2005/08/07 11:16:58 sos Exp $ [verify1] /dev# FreeBSD verify1.sentex.ca 6.0-BETA3 FreeBSD 6.0-BETA3 #0: Mon Aug 22 11:12:03 EDT 2005 [verify1] /usr/src/sbin/atacontrol# ls -l total 30 drwxr-xr-x 2 root wheel 512 Aug 22 09:40 . drwxr-xr-x 93 root wheel 2048 Aug 22 09:41 .. -rw-r--r-- 1 root wheel 148 Nov 5 2003 Makefile -rw-r--r-- 1 root wheel 5928 Aug 19 11:54 atacontrol.8 -rw-r--r-- 1 root wheel 16821 Aug 7 07:16 atacontrol.c [verify1] /usr/src/sbin/atacontrol# make clean rm -f atacontrol atacontrol.o atacontrol.8.gz atacontrol.8.cat.gz [verify1] /usr/src/sbin/atacontrol# make depend [verify1] /usr/src/sbin/atacontrol# make cc -O2 -fno-strict-aliasing -pipe -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wcast-align -Wunused-parameter -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls -c /usr/src/sbin/atacontrol/atacontrol.c cc -O2 -fno-strict-aliasing -pipe -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wcast-align -Wunused-parameter -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls -o atacontrol atacontrol.o gzip -cn /usr/src/sbin/atacontrol/atacontrol.8 > atacontrol.8.gz [verify1] /usr/src/sbin/atacontrol# make install install -s -o root -g wheel -m 555 atacontrol /sbin install -o root -g wheel -m 444 atacontrol.8.gz /usr/share/man/man8 [verify1] /usr/src/sbin/atacontrol# atacontrol cap 0 0 usage: atacontrol <command> args: atacontrol list atacontrol info channel atacontrol attach channel atacontrol detach channel atacontrol reinit channel atacontrol create type [interleave] disk0 ... diskN atacontrol delete channel atacontrol addspare array disk atacontrol rebuild array atacontrol status array atacontrol mode device [mode] atacontrol cap device [verify1] /usr/src/sbin/atacontrol# atacontrol info 0 atacontrol: Invalid channel 0 [verify1] /usr/src/sbin/atacontrol#
On Mon, Aug 22, 2005 at 04:24:12PM -0400, Mike Tancsa wrote:> I updated one of our boxes from RELENG_5 to 6. Couple of things I > noticed was that the smartmontools and atacontrol seems to be broken > now.[...]> [verify1] /usr/ports/sysutils/smartmontools# atacontrol cap 0 0 > usage: atacontrol <command> args: > atacontrol list > atacontrol info channel > atacontrol attach channel > atacontrol detach channel > atacontrol reinit channel > atacontrol create type [interleave] disk0 ... diskN > atacontrol delete channel > atacontrol addspare array disk > atacontrol rebuild array > atacontrol status array > atacontrol mode device [mode] > atacontrol cap device > [verify1] /usr/ports/sysutils/smartmontools# atacontrol info 0 > atacontrol: Invalid channel 0Mike, You have to use device name for 'cap' and channel name for 'info': # atacontrol cap ad6 Protocol ATA/ATAPI revision 6 device model HDS722525VLAT80 serial number VN69HMCFDTLEDD firmware revision V36OA6EA cylinders 16383 heads 16 sectors/track 63 lba supported 268435455 sectors lba48 supported 488397168 sectors dma supported overlap not supported Feature Support Enable Value Vendor write cache yes yes read ahead yes yes Tagged Command Queuing (TCQ) yes yes 31/0x1F SMART yes no microcode download no no security yes no power management yes yes advanced power management yes no 0/0x00 automatic acoustic management yes no 254/0xFE 128/0x80 # atacontrol info ata3 Master: ad6 <HDS722525VLAT80/V36OA6EA> ATA/ATAPI revision 6 Slave: no device present # uname -r 6.0-BETA2 -- boco
On 2005.08.22 16:24:12 -0400, Mike Tancsa wrote:> [verify1] /usr/ports/sysutils/smartmontools# smartctl -a ad0 > smartctl version 5.33 [i386-portbld-freebsd6.0] Copyright (C) 2002-4 > Bruce Allen > Home page is http://smartmontools.sourceforge.net/I think you have to specify full path for the device now... I ran in to the same thing and it confused me for a bit... [root@zaphod:~] smartctl -a /dev/ad0 smartctl version 5.33 [i386-portbld-freebsd6.0] Copyright (C) 2002-4 Bruce Allen Home page is http://smartmontools.sourceforge.net/ === START OF INFORMATION SECTION ==Device Model: HTS548080M9AT00 [...] On a 6.0-BETA2. -- Simon L. Nielsen -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 187 bytes Desc: not available Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20050822/223a2f7b/attachment.bin
At 05:05 PM 22/08/2005, Simon L. Nielsen wrote:>On 2005.08.22 16:24:12 -0400, Mike Tancsa wrote: > > > [verify1] /usr/ports/sysutils/smartmontools# smartctl -a ad0 > > smartctl version 5.33 [i386-portbld-freebsd6.0] Copyright (C) 2002-4 > > Bruce Allen > > Home page is http://smartmontools.sourceforge.net/ > >I think you have to specify full path for the device now... I ran in >to the same thing and it confused me for a bit...Thanks, that was it! # smartctl -a /dev/ad0 smartctl version 5.33 [i386-portbld-freebsd6.0] Copyright (C) 2002-4 Bruce Allen Home page is http://smartmontools.sourceforge.net/ === START OF INFORMATION SECTION ==Device Model: ST3120026AS Serial Number: 3JT1BSB2 Firmware Version: 3.18 User Capacity: 120,034,123,776 bytes Device is: In smartctl database [for details use: -P show] ATA Version is: 6 ATA Standard is: ATA/ATAPI-6 T13 1410D revision 2 Local Time is: Mon Aug 22 17:06:21 2005 EDT 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: PASSED General SMART Values: Offline data collection status: (0x02) Offline data collection activity was completed without error. Auto Offline Data Collection: Disabled. 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: ( 430) seconds. Offline data collection capabilities: (0x5b) SMART execute Offline immediate. Auto Offline data collection on/off support. Suspend Offline collection upon new command. Offline surface scan supported. Self-test supported. No 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. No General Purpose Logging support. Short self-test routine recommended polling time: ( 1) minutes. Extended self-test routine recommended polling time: ( 85) minutes. SMART Attributes Data Structure revision number: 10 Vendor Specific SMART Attributes with Thresholds: ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE 1 Raw_Read_Error_Rate 0x000f 059 057 006 Pre-fail Always - 30554783 3 Spin_Up_Time 0x0003 099 096 000 Pre-fail Always - 0 4 Start_Stop_Count 0x0032 100 100 020 Old_age Always - 1 5 Reallocated_Sector_Ct 0x0033 100 100 036 Pre-fail Always - 0 7 Seek_Error_Rate 0x000f 083 060 030 Pre-fail Always - 213765438 9 Power_On_Hours 0x0032 091 091 000 Old_age Always - 7941 10 Spin_Retry_Count 0x0013 100 100 097 Pre-fail Always - 0 12 Power_Cycle_Count 0x0032 100 100 020 Old_age Always - 43 194 Temperature_Celsius 0x0022 034 046 000 Old_age Always - 34 195 Hardware_ECC_Recovered 0x001a 059 057 000 Old_age Always - 30554783 197 Current_Pending_Sector 0x0012 100 100 000 Old_age Always - 0 198 Offline_Uncorrectable 0x0010 100 100 000 Old_age Offline - 0 199 UDMA_CRC_Error_Count 0x003e 200 200 000 Old_age Always - 0 200 Multi_Zone_Error_Rate 0x0000 100 253 000 Old_age Offline - 0 202 TA_Increase_Count 0x0032 100 253 000 Old_age Always - 0 SMART Error Log Version: 1 No Errors Logged SMART Self-test log structure revision number 1 Num Test_Description Status Remaining LifeTime(hours) LBA_of_first_error # 1 Short offline Completed without error 00% 7926 - # 2 Short offline Completed without error 00% 7902 - # 3 Short offline Completed without error 00% 7879 - # 4 Short offline Completed without error 00% 7855 - # 5 Short offline Completed without error 00% 7831 - # 6 Short offline Completed without error 00% 7808 - # 7 Short offline Completed without error 00% 7785 - # 8 Short offline Completed without error 00% 7761 - # 9 Short offline Completed without error 00% 7737 - #10 Short offline Completed without error 00% 7714 - #11 Short offline Completed without error 00% 7690 - #12 Short offline Completed without error 00% 7667 - #13 Short offline Completed without error 00% 7643 - #14 Short offline Completed without error 00% 7620 - #15 Short offline Completed without error 00% 7596 - #16 Short offline Completed without error 00% 7572 - #17 Short offline Completed without error 00% 7549 - #18 Short offline Completed without error 00% 7525 - #19 Short offline Completed without error 00% 7502 - #20 Short offline Completed without error 00% 7479 - #21 Short offline Completed without error 00% 7455 - 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.