Am 11.07.2009 um 17:47 schrieb Bernd Walter: > On Sat, Jul 11, 2009 at 03:39:37PM +0200, Stefan Bethke wrote: >> Am 11.07.2009 um 15:30 schrieb Bernd Walter: >> >>> On Sat, Jul 11, 2009 at 02:54:01PM +0200, Stefan Bethke wrote: >>>> gmirror and/or ufs got into an odd state after a panic, where fsck >>>> could not fix errors on the mirror device, but each member >>>> filesystem >>>> was fine. Even after destroying the mirror, fixing all three >>>> member >>>> file systems with fsck, and recreating the mirror with just a >>>> single >>>> member fsck found the same errors on the mirror device. >>> >>> You've created the partitions without mirror? >>> The member drives are one block larger than the mirrored and if the >>> filesystem tries to use it under mirror it will fail. >>> The easiest way to avoid is to create the gmirror and then setup >>> your partitions on the mirror. >> >> No, I've newfs'ed the mirror device, not the disk partitions, so that >> shouldn't be the problem. Unless gmirror fails to subtract the >> metadata sector from the mirror device. > > I see - normally this should work fine then. > But you get read problem and I asume you wouldn't ask if you also see > hardware errors. > So this is likely accessing a block, which is not part of the volume. > Of course a bad UFS metadata can point to non existing data as well. > I would still verify the sizes - is the block far out of volume range, > or just a bit? > Is the underlying paritioning Ok? There must have been some misalignment, because the unreadable sector is in fact one past the last one: > CANNOT READ BLK: 8388576 > UNEXPECTED SOFT UPDATE INCONSISTENCY > > CONTINUE? yes > > THE FOLLOWING DISK SECTORS COULD NOT BE READ: 8388607, > # dd if=/dev/mirror/diesel_root bs=1m of=/dev/null > 4095+1 records in > 4095+1 records out > 4294966784 bytes transferred in 36.500572 secs (117668479 bytes/sec) $ expr 4294966784 / 512 8388607 It all looks like I did the newfs on the raw partition instead of on the mirror device, although I'm rather certain I did not, since I was aware of the metadata sector that gmirror requires, and was careful to create all partitions and filesystems accordingly. Any chance newfs would have rounded the device size the wrong way? Stefan -- Stefan Bethke <stb_at_lassitu.de> Fon +49 151 14070811Received on Mon Jul 13 2009 - 09:12:03 UTC
This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:51 UTC