From owner-freebsd-questions@freebsd.org Tue Mar 31 20:11:27 2020 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 3A2FD26A5D3 for ; Tue, 31 Mar 2020 20:11:27 +0000 (UTC) (envelope-from artem@artem.ru) Received: from smtp59.i.mail.ru (smtp59.i.mail.ru [217.69.128.39]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 48sL7R6MKgz3KKc for ; Tue, 31 Mar 2020 20:11:14 +0000 (UTC) (envelope-from artem@artem.ru) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mail.ru; s=mail2; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To:Subject; bh=SWVRw0LG3Zin05tkiZ+TCNW6ly6JeqIDTSSlJAyszpg=; b=YHwVPN1GLFY+72ia5ehQHX2KTTVi9WV4yXQPbHAkprUBDnlr+OXO7WuU44mesJ0CXeAejPbJFGFtSkPeRlzpJn+VOtCfffcx29miZTs93Lun07qgPxlKQkUC5axX+ds+3LEgv45OJbixrtNPQx2y0yWKJGjKH+QuywEyU8lqNpg=; Received: by smtp59.i.mail.ru with esmtpa (envelope-from ) id 1jJNE2-0003B3-82; Tue, 31 Mar 2020 23:11:06 +0300 Subject: Re: I see no way to convert LBA to disk position To: "Kevin P. Neal" Cc: freebsd-questions@freebsd.org References: <2f107fd2-de31-7dfc-7c3e-abb3597b9f3f@artem.ru> <20200331194552.GA393@neutralgood.org> From: Artem Kuchin Message-ID: Date: Tue, 31 Mar 2020 23:11:02 +0300 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 MIME-Version: 1.0 In-Reply-To: <20200331194552.GA393@neutralgood.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: ru X-7564579A: B8F34718100C35BD X-77F55803: 0A44E481635329DB0E1AA8A03B392317D32E5E48865217365060145B739F5F5CFE5E0A39B35787E4F688BCB05C26794D74841BB71BF617E6C4AE0606FD43761B556A2B8DCD7840CABFCAC5A6DDD0629C X-7FA49CB5: 0D63561A33F958A5F0BB51229AFFD4BE24C2B8F5A611F2E4B272A53F9BBAC8E28941B15DA834481FA18204E546F3947C17119E5299B287EEF6B57BC7E64490618DEB871D839B7333395957E7521B51C2545D4CF71C94A83E9FA2833FD35BB23D27C277FBC8AE2E8BB37B5D51F58B3735A471835C12D1D977C4224003CC8364767815B9869FA544D8D32BA5DBAC0009BE9E8FC8737B5C22497D7908739D16C58076E601842F6C81A12EF20D2F80756B5F012D6517FE479FCD76E601842F6C81A127C277FBC8AE2E8BCB2D3143548416E53AA81AA40904B5D99449624AB7ADAF3726B9191E2D567F0E725E5C173C3A84C3483320834B361D1F089D37D7C0E48F6C5571747095F342E857739F23D657EF2B6825BDBE14D8E7028C9DFF55498CEFB0BD9CCCA9EDD067B1EDA766A37F9254B7 X-D57D3AED: Y8kq8+OzVozcFQziTi/Zi1xwo7H2ZNxGP5qz8aO2mjTJzjHGC4ogvVuzB3zfVUBtENeZ6b5av1fnCBE34JUDkWdM6QxE+Ga5d8voMtmXfSqq2T2UpS0GCJf1Wbpd8t+6 X-Mailru-Sender: 00097D31F91C944B5944008ED339AAA19845F0923656D1D45990C7E904D6298CDEE95B3D783315C26D82E86CD0B8CCCC342CD0BA774DB6A91DF22CB62C7DF609901300E88B9FC5FAEDA952A69F3EBF603453F38A29522196 X-Mras: Ok X-Rspamd-Queue-Id: 48sL7R6MKgz3KKc X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=mail.ru header.s=mail2 header.b=YHwVPN1G; dmarc=none; spf=none (mx1.freebsd.org: domain of artem@artem.ru has no SPF policy when checking 217.69.128.39) smtp.mailfrom=artem@artem.ru X-Spamd-Result: default: False [-2.27 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-0.998,0]; R_DKIM_ALLOW(-0.20)[mail.ru:s=mail2]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[artem.ru]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[mail.ru:+]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[39.128.69.217.list.dnswl.org : 127.0.5.0]; R_SPF_NA(0.00)[]; RCVD_COUNT_ZERO(0.00)[0]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; IP_SCORE(0.03)[ipnet: 217.69.128.0/20(-0.09), asn: 47764(0.24), country: RU(0.01)]; ASN(0.00)[asn:47764, ipnet:217.69.128.0/20, country:RU]; MID_RHS_MATCH_FROM(0.00)[] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 31 Mar 2020 20:11:27 -0000 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.