I've got a Sun V240 that crashes every time it tries to fsck /var
(sd0g in my case).
This happens on more than one of these machines and with more than 1 disk.
It doesn't matter if I run fsck in read-only mode, whenever it tries
to read from this partition it dumps.
It also happens if I try to use dd to copy the partition elsewhere.
###################
FSCK OUTPUT:
###################
# fsck -y /dev/sd0g
** /dev/rsd0g
BAD SUPER BLOCK: MAGIC NUMBER WRONG
LOOK FOR ALTERNATE SUPERBLOCKS? yes
sd0(siop0:0:0): Check Condition (error 0x70) on opcode 0x28
SENSE KEY: Media Error
INFO: 0x22dfdd1 (VALID flag on)
ASC/ASCQ: Unrecovered Read Error
FRU CODE: 0xf
SKSV: Actual Retry Count: 983
CANNOT READ: BLK 23984032
CONTINUE? yes
sd0(siop0:0:0): Check Condition (error 0x70) on opcode 0x28
SENSE KEY: Media Error
INFO: 0x22dfdd1 (VALID flag on)
ASC/ASCQ: Unrecovered Read Error
FRU CODE: 0xf
SKSV: Actual Retry Count: 983
THE FOLLOWING DISK SECTORS COULD NOT BE READ: 23984045,
sd0(siop0:0:0): Check Condition (error 0x70) on opcode 0x28
SENSE KEY: Media Error
INFO: 0x25fe633 (VALID flag on)
ASC/ASCQ: Unrecovered Read Error
FRU CODE: 0xf
SKSV: Actual Retry Count: 1086
CANNOT READ: BLK 27254784
CONTINUE? yes
sd0(siop0:0:0): Check Condition (error 0x70) on opcode 0x28
SENSE KEY: Media Error
INFO: 0x25fe633 (VALID flag on)
ASC/ASCQ: Unrecovered Read Error
FRU CODE: 0xf
SKSV: Actual Retry Count: 1086
THE FOLLOWING DISK SECTORS COULD NOT BE READ: 27254799,
USING ALTERNATE SUPERBLOCK AT 31513888
** File system is already clean
** Last Mounted on
** Phase 1 - Check Blocks and Sizes
sd0(siop0:0:0): Check Condition (error 0x70) on opcode 0x28
SENSE KEY: Media Error
INFO: 0x22f0d00 (VALID flag on)
ASC/ASCQ: Unrecovered Read Error
FRU CODE: 0xf
SKSV: Actual Retry Count: 986
CANNOT READ: BLK 24053344
CONTINUE? yes
sd0(siop0:0:0): Check Condition (error 0x70) on opcode 0x28
SENSE KEY: Media Error
INFO: 0x22f0d00 (VALID flag on)
ASC/ASCQ: Unrecovered Read Error
FRU CODE: 0xf
SKSV: Actual Retry Count: 986
THE FOLLOWING DISK SECTORS COULD NOT BE READ: 24053468,
sd0(siop0:0:0): Check Condition (error 0x70) on opcode 0x28
SENSE KEY: Media Error
INFO: 0x22f0f94 (VALID flag on)
ASC/ASCQ: Unrecovered Read Error
FRU CODE: 0xf
SKSV: Actual Retry Count: 987
CANNOT READ: BLK 24054112
CONTINUE? yes
sd0(siop0:0:0): Check Condition (error 0x70) on opcode 0x28
SENSE KEY: Media Error
INFO: 0x22f0f94 (VALID flag on)
ASC/ASCQ: Unrecovered Read Error
FRU CODE: 0xf
SKSV: Actual Retry Count: 987
THE FOLLOWING DISK SECTORS COULD NOT BE READ: 24054128,
sd0(siop0:0:0): Check Condition (error 0x70) on opcode 0x28
SENSE KEY: Media Error
INFO: 0x22f17a8 (VALID flag on)
ASC/ASCQ: Unrecovered Read Error
FRU CODE: 0xf
SKSV: Actual Retry Count: 988
CANNOT READ: BLK 24056160
CONTINUE? yes
sd0(siop0:0:0): Check Condition (error 0x70) on opcode 0x28
SENSE KEY: Media Error
INFO: 0x22f17a8 (VALID flag on)
ASC/ASCQ: Unrecovered Read Error
FRU CODE: 0xf
SKSV: Actual Retry Count: 988
THE FOLLOWING DISK SECTORS COULD NOT BE READ: 24056196,
sd0(siop0:0:0): Check Condition (error 0x70) on opcode 0x28
SENSE KEY: Soft Error
INFO: 0x24eb30b (VALID flag on)
ASC/ASCQ: Recovered Data - Data Auto-Reallocated
SKSV: Actual Retry Count: 99
panic: done > todo; strategy broken
kdb breakpoint at 13d8760
Stopped at Debugger+0x4: nop
########################
TRACE
########################
ddb> trace
physio(0, 4000cdc83b0, 10000, 4001c271bf0, 13e4520, 4001c271c00) at physio+0x2c
4
spec_read(0, 20042, 0, 0, 0, 0) at spec_read+0xcc
ufsspec_read(4001c271a30, 20042, 4000d142fd0, 0, 0, 0) at ufsspec_read+0x40
VOP_READ(4000ceb2ea0, 4001c271c00, 0, 4000d182230, 0, 0) at VOP_READ+0x38
vn_read(4000d149d00, 4000d149d38, 4001c271c00, 4000d182230, 0, 0) at vn_read+0x
5c
dofileread(16, 3, 4000d149d00, 448f6000, 10000, 10000) at dofileread+0x6c
sys_read(9, 4001c271dd0, 4001c271dc0, 31d594000, 4000, 180cde0) at sys_read+0x5
8
syscall(4001c271ed0, 3, 114dc8, 114dcc, 0, 0) at syscall+0x2bc
softtrap(3, 448f6000, 10000, 31d594000, 0, 0) at softtrap+0x18c
#######################
PS
#######################
ddb> ps
PID PPID PGRP UID S FLAGS WAIT COMMAND
* 5508 22641 22641 0 7 0x4002 fsck_ffs
22641 22277 22641 0 3 0x4082 wait fsck
22277 1 22277 0 3 0x4082 pause ksh
1486 1 1486 0 3 0x80 select cron
26087 1 7964 0 3 0x80 select snmpd
16675 1 16675 0 3 0x80 select sshd
31426 1 31426 0 3 0x180 select inetd
8375 1 8375 0 3 0x80 poll ntpd
29982 1 29982 83 3 0x180 poll ntpd
13005 30091 30091 70 2 0x580 named
30091 1 30091 0 3 0x180 netio named
31865 10778 10778 73 2 0x180 syslogd
10778 1 10778 0 3 0x88 netio syslogd
13 0 0 0 3 0x100200 bored crypto
12 0 0 0 3 0x100200 aiodoned aiodoned
11 0 0 0 2 0x100200 update
10 0 0 0 3 0x100200 cleaner cleaner
9 0 0 0 3 0x100200 reaper reaper
8 0 0 0 3 0x100200 pgdaemon pagedaemon
7 0 0 0 2 0x100600 pfpurge
6 0 0 0 3 0x100200 usbtsk usbtask
5 0 0 0 3 0x100200 usbevt usb0
4 0 0 0 3 0x100200 bored syswq
3 0 0 0 3 0x100200 idle0
2 0 0 0 3 0x100200 kmalloc kmthread
1 0 1 0 3 0x4080 wait init
0 -1 0 0 3 0x80200 scheduler swapper
-----
| / |
|/ O
| / \
|
|
|
| ipipstat (o)
###################
DMESG
###################
syncing disks...
console is /p...@1e,600000/i...@7/ser...@0,3f8
Copyright (c) 1982, 1986, 1989, 1991, 1993
The Regents of the University of California. All rights reserved.
Copyright (c) 1995-2008 OpenBSD. All rights reserved. http://www.OpenBSD.org
OpenBSD 4.4 (GENERIC) #1715: Mon Aug 11 17:55:10 MDT 2008
[email protected]:/usr/src/sys/arch/sparc64/compile/GENERIC
real mem = 2147483648 (2048MB)
avail mem = 2066685952 (1970MB)
mainbus0 at root: Sun Fire V240
cpu0 at mainbus0: SUNW,UltraSPARC-IIIi (rev 2.4) @ 1002 MHz
cpu0: physical 32K instruction (32 b/l), 64K data (32 b/l), 1024K
external (64 b/l)
"SUNW,UltraSPARC-IIIi" at mainbus0 not configured
"memory-controller" at mainbus0 not configured
"memory-controller" at mainbus0 not configured
schizo0 at mainbus0: "Tomatillo", version 4, ign 7c0, bus B 0 to 0
schizo0: dvma map c0000000-dfffffff, iotdb 249e000-251e000
pci0 at schizo0
bge0 at pci0 dev 2 function 0 "Broadcom BCM5704C" rev 0x00, BCM5704 A3
(0x2003): ivec 0x7c8, address 00:03:ba:42:1d:bb
brgphy0 at bge0 phy 1: BCM5704 10/100/1000baseT PHY, rev. 0
bge1 at pci0 dev 2 function 1 "Broadcom BCM5704C" rev 0x00, BCM5704 A3
(0x2003): ivec 0x7c9, address 00:03:ba:42:1d:bc
brgphy1 at bge1 phy 1: BCM5704 10/100/1000baseT PHY, rev. 0
schizo1 at mainbus0: "Tomatillo", version 4, ign 780, bus A 0 to 0
schizo1: dvma map c0000000-dfffffff, iotdb 2c04000-2c84000
pci1 at schizo1
ebus0 at pci1 dev 7 function 0 "Acer Labs M1533 ISA" rev 0x00
"flashprom" at ebus0 addr 0-fffff, 290-290 not configured
rtc0 at ebus0 addr 70-71: m5819p
pcfiic0 at ebus0 addr 320-321 ivec 0x2e
iic0 at pcfiic0
"SUNW,i2c-imax" at iic0 addr 0xb not configured
"SUNW,i2c-imax" at iic0 addr 0xc not configured
spdmem0 at iic0 addr 0x5b: 512MB DDR SDRAM registered ECC PC2300CL2.5
spdmem1 at iic0 addr 0x5c: 512MB DDR SDRAM registered ECC PC2300CL2.5
spdmem2 at iic0 addr 0x63: 512MB DDR SDRAM registered ECC PC2300CL2.5
spdmem3 at iic0 addr 0x64: 512MB DDR SDRAM registered ECC PC2300CL2.5
"ds1307" at iic0 addr 0x68 not configured
"pca9555" at iic0 addr 0x22 not configured
"pca9555" at iic0 addr 0x23 not configured
"pca9555" at iic0 addr 0x25 not configured
"pca9555" at iic0 addr 0x34 not configured
"pca9555" at iic0 addr 0x44 not configured
"pca9556" at iic0 addr 0x38 not configured
power0 at ebus0 addr 800-82f ivec 0x20
com0 at ebus0 addr 3f8-3ff ivec 0x2c: ns16550a, 16 byte fifo
com0: console
com1 at ebus0 addr 2e8-2ef ivec 0x2c: ns16550a, 16 byte fifo
"rmc-comm" at ebus0 addr 3e8-3ef ivec 0x2c not configured
alipm0 at pci1 dev 6 function 0 "Acer Labs M7101 Power" rev 0x00: 223KHz clock
iic1 at alipm0
ohci0 at pci1 dev 10 function 0 "Acer Labs M5237 USB" rev 0x03: ivec
0x7a7, version 1.0, legacy support
pciide0 at pci1 dev 13 function 0 "Acer Labs M5229 UDMA IDE" rev 0xc4:
DMA, channel 0 configured to native-PCI, channel 1 configured to
native-PCI
pciide0: using ivec 0x798 for native-PCI interrupt
atapiscsi0 at pciide0 channel 0 drive 0
scsibus0 at atapiscsi0: 2 targets, initiator 7
cd0 at scsibus0 targ 0 lun 0: <TEAC, DV-28E-B, 1.2B> ATAPI 5/cdrom removable
cd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2
pciide0: channel 1 disabled (no drives)
usb0 at ohci0: USB revision 1.0
uhub0 at usb0 "Acer Labs OHCI root hub" rev 1.00/1.00 addr 1
schizo2 at mainbus0: "Tomatillo", version 4, ign 700, bus A 0 to 0
schizo2: dvma map c0000000-dfffffff, iotdb 2c96000-2d16000
pci2 at schizo2
siop0 at pci2 dev 2 function 0 "Symbios Logic 53c1010-66" rev 0x01:
ivec 0x729, using 8K of on-board RAM
scsibus1 at siop0: 16 targets, initiator 7
sd0 at scsibus1 targ 0 lun 0: <SEAGATE, ST336607LSUN36G, 0307> SCSI3
0/direct fixed
sd0: 34732MB, 24622 cyl, 27 head, 107 sec, 512 bytes/sec, 71132959 sec total
siop1 at pci2 dev 2 function 1 "Symbios Logic 53c1010-66" rev 0x01:
ivec 0x728, using 8K of on-board RAM
scsibus2 at siop1: 16 targets, initiator 7
schizo3 at mainbus0: "Tomatillo", version 4, ign 740, bus B 0 to 0
schizo3: dvma map c0000000-dfffffff, iotdb 2d52000-2dd2000
pci3 at schizo3
bge2 at pci3 dev 2 function 0 "Broadcom BCM5704C" rev 0x00, BCM5704 A3
(0x2003): ivec 0x75c, address 00:03:ba:42:1d:bd
brgphy2 at bge2 phy 1: BCM5704 10/100/1000baseT PHY, rev. 0
bge3 at pci3 dev 2 function 1 "Broadcom BCM5704C" rev 0x00, BCM5704 A3
(0x2003): ivec 0x75d, address 00:03:ba:42:1d:be
brgphy3 at bge3 phy 1: BCM5704 10/100/1000baseT PHY, rev. 0
softraid0 at root
siop0: target 0 now using tagged DT 16 bit 80.0 MHz 62 REQ/ACK offset xfers
bootpath: /p...@1c,600000/s...@2,0/d...@0,0
root on sd0a swap on sd0b dump on sd0b