Subject: failure to read SMART data? (sparc64/cmdide)
To: None <current-users@netbsd.org>
From: Rafal Boni <rafal@pobox.com>
List: current-users
Date: 12/03/2003 23:01:16
So the thread about hot WD 250GB drives made me decide to check up on my
Seagate 120GB drives I put in a mirrored config recently, and got this:

# atactl wd2 smart status
SMART supported, SMART enabled
ATA device returned Aborted Command

On both wd1 and wd2 (the two mirrored drives).  The drives are in a Sun
Ultra5 chassis, hanging off a Silicon Image 680 controller, as shown in
the following dmesg snippet:

mainbus0 (root): SUNW,Ultra-5_10
cpu0 at mainbus0: SUNW,UltraSPARC-IIi @ 360 MHz, version 0 FPU
cpu0: 32K instruction (32 b/l), 16K data (32 b/l), 256K external (64 b/l)
psycho0 at mainbus0 addr 0xfffc4000
SUNW,sabre: impl 0, version 0: ign 7c0 bus range 0 to 2; PCI bus 0
DVMA map: c0000000 to e0000000
IOTSB: a46000 to ac6000
pci0 at psycho0
pci0: i/o space, memory space enabled
[...]
ppb1 at pci0 dev 1 function 0: Sun Microsystems, Inc. Simba PCI bridge (rev. 0x13)
pci2 at ppb1 bus 2
pci2: i/o space, memory space enabled
[...]
cmdide1 at pci2 dev 1 function 0
cmdide1: Silicon Image 0680 (rev. 0x02)
cmdide1: bus-master DMA support present
cmdide1: primary channel configured to native-PCI mode
cmdide1: using ivec 10 for native-PCI interrupt
atabus2 at cmdide1 channel 0
cmdide1: secondary channel configured to native-PCI mode
atabus3 at cmdide1 channel 1
[...]
wd1 at atabus2 drive 0: <ST3120026A>
wd1: drive supports 16-sector PIO transfers, LBA48 addressing
wd1: 111 GB, 232581 cyl, 16 head, 63 sec, 512 bytes/sect x 234441648 sectors
wd1: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 5 (Ultra/100)
wd1(cmdide1:0:0): using PIO mode 4, Ultra-DMA mode 5 (Ultra/100) (using DMA data transfers)
wd2 at atabus3 drive 0: <ST3120026A>
wd2: drive supports 16-sector PIO transfers, LBA48 addressing
wd2: 111 GB, 232581 cyl, 16 head, 63 sec, 512 bytes/sect x 234441648 sectors
wd2: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 5 (Ultra/100)
wd2(cmdide1:1:0): using PIO mode 4, Ultra-DMA mode 5 (Ultra/100) (using DMA data transfers)

Is this a peculiarity of that system/architecture/..., or is SMART not
expected to provide useful info on non-x86 systems (or systems where
the BIOS does not frob the drives on bootup?).

FWIW, my desktop system (with an old QUANTUM FIREBALLP LM30) says:

# atactl wd0 smart status
SMART supported, SMART enabled
id	value	thresh	crit	collect	reliability description
  1	100	 20	yes	offline	positive    Raw read error rate
  3	 56	 20	yes	online	positive    Spin-up time
  4	 99	  8	no	online	positive    Start/stop count
  5	100	 20	yes	online	positive    Reallocated sector count
  7	100	 23	yes	online	positive    Seek error rate
  9	 96	  1	no	online	positive    Power-on hours count
 10	100	 20	no	online	positive    Spin retry count
 11	100	 20	yes	online	positive    Calibration retry count
 12	 99	  8	no	online	positive    Device power cycle count
 13	100	 23	yes	online	positive    
196	100	 20	no	offline	positive    Reallocated event count
197	100	 20	no	online	positive    Current pending sector
198	100	  0	no	offline	positive    Offline uncorrectable
199	200	  0	no	online	positive    Ultra DMA CRC error count

That spin-up time number worries me somewhat, tho.  Maybe I should just 
leave the box up all the time :-)

--rafal

----
Rafal Boni                                                     rafal@pobox.com
  We are all worms.  But I do believe I am a glowworm.  -- Winston Churchill