ata breakage from RELENG_5 to RELENG_6

2005-08-22 Thread Mike Tancsa


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,[EMAIL PROTECTED]
Providing Internet since 1994www.sentex.net
Cambridge, Ontario Canada www.sentex.net/mike

___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: ata breakage from RELENG_5 to RELENG_6

2005-08-22 Thread Søren Schmidt


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


___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: ata breakage from RELENG_5 to RELENG_6

2005-08-22 Thread Mike Tancsa

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  wheel512 Aug 22 09:40 .
drwxr-xr-x  93 root  wheel   2048 Aug 22 09:41 ..
-rw-r--r--   1 root  wheel148 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#  


___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: ata breakage from RELENG_5 to RELENG_6

2005-08-22 Thread Kevin Oberman
 Date: Mon, 22 Aug 2005 16:38:15 -0400
 From: Mike Tancsa [EMAIL PROTECTED]
 Sender: [EMAIL PROTECTED]
 
 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  wheel512 Aug 22 09:40 .
 drwxr-xr-x  93 root  wheel   2048 Aug 22 09:41 ..
 -rw-r--r--   1 root  wheel148 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#  

The arguments for atacontrol have changed. The update to the man pages
was committed to current in the past day or two. I'm not sure it it has
made it to RELENG_6. 

You can't just specify the channel number any more. The channel is now
the device name, e.g. ata0.
-- 
R. Kevin Oberman, Network Engineer
Energy Sciences Network (ESnet)
Ernest O. Lawrence Berkeley National Laboratory (Berkeley Lab)
E-mail: [EMAIL PROTECTED]   Phone: +1 510 486-8634
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: ata breakage from RELENG_5 to RELENG_6

2005-08-22 Thread damir bikmuhametov
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 0

Mike,

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  EnableValue   Vendor
write cacheyes  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/0xFE128/0x80

# atacontrol info ata3
Master:  ad6 HDS722525VLAT80/V36OA6EA ATA/ATAPI revision 6
Slave:   no device present

# uname -r
6.0-BETA2

-- 
boco
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: ata breakage from RELENG_5 to RELENG_6 (nope, just a bit of pilot error)

2005-08-22 Thread Mike Tancsa

At 04:45 PM 22/08/2005, Kevin Oberman wrote:


The arguments for atacontrol have changed. The update to the man pages
was committed to current in the past day or two. I'm not sure it it has
made it to RELENG_6.

You can't just specify the channel number any more. The channel is now
the device name, e.g. ata0.


Ahh, ok. That fixes it for the info command.  I cant seem to get the 
cap magic incantation however.


[verify1] /usr/src/sbin/atacontrol# atacontrol info ata0
Master:  ad0 ST3120026AS/3.18 Serial ATA v1.0
Slave:   no device present
[verify1] /usr/src/sbin/atacontrol#

Ahh, here it is :)

[verify1] /usr/src/sbin/atacontrol# atacontrol cap ad0

Protocol  Serial ATA v1.0
device model  ST3120026AS
serial number 3JT1BSB2
firmware revision 3.18
cylinders 16383
heads 16
sectors/track 63
lba supported 234441648 sectors
lba48 supported   234441648 sectors
dma supported
overlap not supported

Feature  Support  EnableValue   Vendor
write cacheyes  yes
read ahead yes  yes
Native Command Queuing (NCQ)   no-  0/0x00
Tagged Command Queuing (TCQ)   no   no  0/0x00
SMART  yes  yes
microcode download yes  yes
security   yes  no
power management   yes  yes
advanced power management  no   no  65278/0xFEFE
automatic acoustic management  no   no  0/0x00  254/0xFE
[verify1] /usr/src/sbin/atacontrol#

However, I cant seem to get the smartmontools working ?  Anyone using those ?

---Mike 


___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: ata breakage from RELENG_5 to RELENG_6

2005-08-22 Thread Mike Tancsa

At 04:54 PM 22/08/2005, damir bikmuhametov wrote:

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 0

Mike,

You have to use device name for 'cap' and channel name for 'info':

# atacontrol cap ad6


Thanks!  adn makes more sense than the previous method. I just 
needed to look at the EXAMPLES section once more to realize ad0 vs 0.


---Mike 


___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: ata breakage from RELENG_5 to RELENG_6

2005-08-22 Thread Simon L. Nielsen
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...

[EMAIL PROTECTED]:~] 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


pgp6WQRdmtwE7.pgp
Description: PGP signature


Re: ata breakage from RELENG_5 to RELENG_6

2005-08-22 Thread Mike Tancsa

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   006Pre-fail  Always 
 -   30554783
  3 
Spin_Up_Time0x0003   099   096   000Pre-fail  Always 
 -   0
  4 
Start_Stop_Count0x0032   100   100   020Old_age   Always 
 -   1
  5 
Reallocated_Sector_Ct   0x0033   100   100   036Pre-fail  Always 
 -   0
  7 
Seek_Error_Rate 0x000f   083   060   030Pre-fail  Always 
 -   213765438
  9 
Power_On_Hours  0x0032   091   091   000Old_age   Always 
 -   7941
 10 
Spin_Retry_Count0x0013   100   100   097Pre-fail  Always 
 -   0
 12 
Power_Cycle_Count   0x0032   100   100   020Old_age   Always 
 -   43
194 
Temperature_Celsius 0x0022   034   046   000Old_age   Always 
 -   34
195 
Hardware_ECC_Recovered  0x001a   059   057   000Old_age   Always 
 -   30554783
197 
Current_Pending_Sector  0x0012   100   100   000Old_age   Always 
 -   0
198 
Offline_Uncorrectable   0x0010   100   100   000Old_age   Offline 
 -   0
199 
UDMA_CRC_Error_Count0x003e   200   200   000Old_age   Always 
 -   0
200 
Multi_Zone_Error_Rate   0x   100   253   000Old_age   Offline 
 -   0
202 
TA_Increase_Count   0x0032   100   253   000Old_age   Always 
 -   0


SMART Error Log Version: 1
No Errors Logged

SMART Self-test log structure revision number 1
Num  Test_DescriptionStatus  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