Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 12 Jul 2010 17:51:39 +0300
From:      Mikolaj Golub <to.my.trociny@gmail.com>
To:        Dmitry Lunts <eingorn777@gmail.com>
Cc:        freebsd-fs@freebsd.org
Subject:   Re: fsdb&smartctl&/var/log/messages
Message-ID:  <86630kda84.fsf@kopusha.home.net>
In-Reply-To: <AANLkTinUBUtB409COLFzZIONoNcwjHx_902Z6rS1-47S@mail.gmail.com> (Dmitry Lunts's message of "Mon, 12 Jul 2010 15:04:07 %2B0400")
References:  <AANLkTinbWD0LUVig1OsaREeTtnfwukceIxzdzijRqeKy@mail.gmail.com> <86aapxc87u.fsf@kopusha.home.net> <AANLkTinUBUtB409COLFzZIONoNcwjHx_902Z6rS1-47S@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

On Mon, 12 Jul 2010 15:04:07 +0400 Dmitry Lunts wrote:

 DL> Mikolaj, thanks for your reply!


 >> As for me it looks like the following might has happened. Your filesystem
 >> block size is 16384 bytes. When reading +CONTENTS fs sent a request to the
 >> driver to read a block -- starting from 4007967 sector of 16384 / 512 = 32
 >> sectors. For one of these sectors (4007996) disk returned error. The driver
 >> reported about the error printing the address of the first sector of failed
 >> request.
 >>
 >> --
 >> Mikolaj Golub
 >>
 DL> Looks reasonable, but nevertheless
 DL> it's still unclear why fsdb->findblk <offset of LBA_of_first_error within
 DL> /dev/ad6s1d>
 DL>  returns nothing?

Playing a little with fsdb it looks like it will find only the first 4 sectors
of any inode's block (for fs with block size = 16K and fragment size = 2K), so
those that belong to the first fragment of the block.

 DL> And one more question. What if I try to remap this bad LBA sector (with dd)
 DL> ?
 DL> Will package database be irreversibly damaged,
 DL> or pkgdb -uF will cure it?
 DL> (Sorry,I'm not sophisticated in FreeBSD very much)
 DL> TIA,

 DL> -- 
 DL> С уважением, Дмитрий
 DL> Best regards, Dmitry
 DL> email: eingorn777@gmail.com

-- 
Mikolaj Golub



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86630kda84.fsf>