Subject: Re: SCSI panic
To: Gary D. Duzan <gary@wheel.tiac.net>
From: Greg Oster <oster@cs.usask.ca>
List: current-users
Date: 09/04/1997 08:51:17
gary@wheel.tiac.net writes:
>
[snip of panic when newfsing /dev/rsd2e]
> The drive is:
>
> sd2 at scsibus0 targ 2 lun 0: <MICROP, 4345WS, x43h> SCSI2 0/direct fixed
> sd2: 4340MB, 4811 cyl, 11 head, 167 sec, 512 bytes/sect x 8890029 sectors
That 8890029 seems wrong (see below).
> And it is labeled as:
>
>
> # /dev/rsd2d:
> type: SCSI
> disk: 4345WS
> label:
> flags:
> bytes/sector: 512
> sectors/track: 167
> tracks/cylinder: 11
> sectors/cylinder: 1837
> cylinders: 4811
> total sectors: 8890029
> rpm: 3600
> interleave: 1
> trackskew: 0
> cylinderskew: 0
> headswitch: 0 # milliseconds
> track-to-track seek: 0 # milliseconds
> drivedata: 0
>
> 8 partitions:
> # size offset fstype [fsize bsize cpg]
> a: 262691 198396 4.2BSD 1024 8192 16 # (Cyl. 108 -
> 250)
> b: 196559 1837 swap # (Cyl. 1 - 107)
> c: 8890029 0 unused 0 0 # (Cyl. 0 -
> 4839*)
> d: 8890029 0 unused 0 0 # (Cyl. 0 -
> 4839*)
> e: 8428156 461087 4.2BSD 1024 8192 16 # (Cyl. 251 -
> 4838)
>
The math in the disklabel doesn't seem to work:
1837 * 4811 = 8837807
which is not 8890029. Also, rsd2e is going to try to write to block
(8428156+461087) 8889243, which is also not within 8837807..
I'd guess you're falling off the end of the drive...
> Is this likely a hardware or config problem? newfs seems to write most
> of the superblock copies before it eventually dies. I'd prefer a
> software bug, of course...
> Thanks.
Hope this helps...
Later...
Greg Oster
oster@cs.usask.ca
Department of Computer Science
University of Saskatchewan, Saskatoon, Saskatchewan, CANADA