Date: Thu, 28 Aug 1997 03:07:58 -0700 From: Greg Earle <earle@isolar.Tujunga.CA.US> To: freebsd-scsi@freebsd.org Cc: freebsd-stable@freebsd.org Subject: FreeBSD 2.1-STABLE: Why can't I disklabel a SCSI disk? Message-ID: <9708281008.AA29967@isolar.Tujunga.CA.US>
next in thread | raw e-mail | index | archive | help
I'm running FreeBSD 2.1-STABLE on a Pentium 133 box:
# uname -a
FreeBSD xxxx1.jpl.nasa.gov 2.1-STABLE FreeBSD 2.1-STABLE #0: \
Wed Jun 4 21:45:18 PDT 1997 \
earle@xxxx1.jpl.nasa.gov:/usr/src/sys/compile/XXXX1 i386
I have 4 disks in the system. The system disk is a 2.1 Gb Seagate, and it
had 2 other 4 Gb Seagate Barracudas in it. I noticed that one of the disks
started getting MEDIA ERRORs on a regular basis, so I took a spare 4 Gb disk
out of a sister clone machine that was (at one point) identically configured
and stuck it inside. The disks are now:
Probing for devices on PCI bus 1:
ahc0 <Adaptec 3940 SCSI host adapter> rev 0 int a irq 10 on pci1:4
ahc0: aic7870 Channel A, SCSI Id=7, 16 SCBs
ahc0 waiting for scsi devices to settle
(ahc0:0:0): "SEAGATE ST32550N 0011" type 0 fixed SCSI 2
sd0(ahc0:0:0): Direct-Access 2047MB (4194058 512 byte sectors)
(ahc0:2:0): "SEAGATE ST15150N 0017" type 0 fixed SCSI 2
sd1(ahc0:2:0): Direct-Access 4095MB (8388315 512 byte sectors)
ahc1 <Adaptec 3940 SCSI host adapter> rev 0 int a irq 11 on pci1:5
ahc1: aic7870 Channel B, SCSI Id=7, 16 SCBs
ahc1 waiting for scsi devices to settle
(ahc1:0:0): "SEAGATE ST15150N 0017" type 0 fixed SCSI 2
sd2(ahc1:0:0): Direct-Access 4095MB (8388315 512 byte sectors)
(ahc1:1:0): "SEAGATE ST15150N 0017" type 0 fixed SCSI 2
sd3(ahc1:1:0): Direct-Access 4095MB (8388315 512 byte sectors)
The failing disk is sd3:
[...]
sd3(ahc1:1:0): RECOVERED ERROR info:858b1 asc:10,0 Id CRC or ECC error field replaceable unit: d7 sks:80,21
sd3(ahc1:1:0): RECOVERED ERROR info:858b1 asc:10,0 Id CRC or ECC error field replaceable unit: d7 sks:80,21
sd3(ahc1:1:0): RECOVERED ERROR info:858b1 asc:10,0 Id CRC or ECC error field replaceable unit: d7 sks:80,22
sd3(ahc1:1:0): RECOVERED ERROR info:858b1 asc:10,0 Id CRC or ECC error field replaceable unit: d7 sks:80,8
(Last one happened an hour ago)
I wanted to back up the sd3 disk to the new spare disk, which is sd1. But
I can't disklabel this spare disk! I can read the disklabel off of the other
three 4 Gb disks with *no* problem ... but no go on sd1:
xxxx1# disklabel sd0 | wc -l
26
xxxx1# disklabel sd2 | wc -l
24
xxxx1# disklabel sd3 | wc -l
23
xxxx1# disklabel sd1
disklabel: ioctl DIOCGDINFO: Invalid argument
xxxx1# disklabel -r sd1
disklabel: /dev/rsd1c: Undefined error: 0
xxxx1# ls -l /dev/rsd1c
crw-r--r-- 1 root operator 13, 10 May 13 21:43 /dev/rsd1c
xxxx1# disklabel -w -r sd1 seagate15150
disklabel: /dev/rsd1c: No such file or directory
The disktab(5) entry I tried cooking up for the Barracuda is:
seagate15150|Seagate ST15150N:\
:dt=SCSI:ty=winchester:ns#78:nt#21:nc#5119:\
:pc#8384922:oc#0:
If I ktrace this last command, it shows it successfully opening /dev/rsd1c,
yet I get "No such file or directory"??? I don't get it ...
Does anyone have any idea why I can't disklabel this particular disk?
And why the O/S is pretending that /dev/rsd1c doesn't exist? It makes
no attempt to write to the disk at all, apparently ... and I don't see
any low-level SCSI driver diagnostics in /var/log/messages, either.
I'm stumped.
Thanks in advance for any suggestions. Please respond directly to me
and I'll summarize if anyone's interested.
- Greg
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9708281008.AA29967>
