Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 31 Mar 2020 23:11:02 +0300
From:      Artem Kuchin <artem@artem.ru>
To:        "Kevin P. Neal" <kpn@neutralgood.org>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: I see no way to convert LBA to disk position
Message-ID:  <e1ee95ed-c7da-06d9-acca-d6d9fbe8b5f4@artem.ru>
In-Reply-To: <20200331194552.GA393@neutralgood.org>
References:  <2f107fd2-de31-7dfc-7c3e-abb3597b9f3f@artem.ru> <20200331194552.GA393@neutralgood.org>

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

31.03.2020 22:45, Kevin P. Neal пишет:
> On Tue, Mar 31, 2020 at 10:28:43PM +0300, Artem Kuchin wrote:
>
>> Then i wrote zeros to the bas sector
>> dd if=/dev/zero of=/dev/ada2 bs=512 oseek=5020507656 count=8
> Wait, does this mean that the two disks in your mirror have different
> data at the same block address? Is that safe? Does gmirror keep track
> of bad blocks and avoid reading from them "forever" when it hits one?
>
> If it was me I'd copy the block from the good drive to the bad drive
> instead of writing zeros.


I don't think it is important because those blocks are unallocated (i 
checked), but

eventually, when did so - copied from one disk to another.  I wrote 
zeros because

smart specs say that i need to write zeroes to resolve pending sector.





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?e1ee95ed-c7da-06d9-acca-d6d9fbe8b5f4>