Subject: re: Still no luck with -current
To: Jochen Kunz <jkunz@unixag-kl.fh-kl.de>
From: matthew green <mrg@eterna.com.au>
List: port-sparc64
Date: 05/24/2005 05:21:47
i am currently attempting to install a "new" ultra60 and i am also
seeing weirdness accessing one of the disks.  i have both a 4GB and
an 18GB disk installed.  the 4GB disk appears to work fine.  the
18GB does not.  basically, i have observed that write() to this disk
*is* working but that the return value of write(2) (or any variant,
newfs(8) uses pwrite(2)) is "0" indicating that no bytes were written.
this is why newfs complains "end of device".  i have performed some
experimentation with dd(1) on the disk.  if i write a sector, i get
a write failure (0 bytes).  but if i then re-read the sector, i get
the same data that i wrote previously that failed.  using 2 different
patterns for the sector to test, i have convinced myself that the
disk writes do occur, but somehow netbsd is reporting no bytes.
(these tests were performed on the _raw_ device.)

one additional oddity i've noticed is that the block device seems to
"mostly work", at least for newfs (perhaps it fails when newfs tries
to write a non-block-sized bit of data.)  newfs fails after creating
all the cylinder groups(?) ala.  the difference is below.


so, something is "funny" somewhere indeed.  i have no idea what yet.


.mrg.


(first raw device, then block device.)

prime-evil ~# newfs sd0a
/dev/rsd0a: 15205.9MB (31141608 sectors) block size 16384, fragment size 2048
        using 83 cylinder groups of 183.22MB, 11726 blks, 23040 inodes.
wtfs: write error for sector 31141607: No such file or directory
prime-evil ~# newfs /dev/sd0a
/dev/sd0a: 15205.9MB (31141608 sectors) block size 16384, fragment size 2048
        using 83 cylinder groups of 183.22MB, 11726 blks, 23040 inodes.
super-block backups (for fsck -b #) at:
       32,   375264,   750496,  1125728,  1500960,  1876192,  2251424,  2626656,
  3001888,  3377120,  3752352,  4127584,  4502816,  4878048,  5253280,  5628512,
  6003744,  6378976,  6754208,  7129440,  7504672,  7879904,  8255136,  8630368,
  9005600,  9380832,  9756064, 10131296, 10506528, 10881760, 11256992, 11632224,
 12007456, 12382688, 12757920, 13133152, 13508384, 13883616, 14258848, 14634080,
 15009312, 15384544, 15759776, 16135008, 16510240, 16885472, 17260704, 17635936,
 18011168, 18386400, 18761632, 19136864, 19512096, 19887328, 20262560, 20637792,
 21013024, 21388256, 21763488, 22138720, 22513952, 22889184, 23264416, 23639648,
 24014880, 24390112, 24765344, 25140576, 25515808, 25891040, 26266272, 26641504,
 27016736, 27391968, 27767200, 28142432, 28517664, 28892896, 29268128, 29643360,
 30018592, 30393824, 30769056,
rdfs: read error for sector 64: Undefined error: 0
0.892u 44.731s 1:05.10 70.0%    0+0k 18+120858io 0pf+0w
prime-evil ~#