From nobody Thu Feb 16 18:43:24 2023 X-Original-To: freebsd-fs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4PHkNc2XfSz3rKhG for ; Thu, 16 Feb 2023 18:43:28 +0000 (UTC) (envelope-from artem@artem.ru) Received: from smtp3.i.mail.ru (smtp3.i.mail.ru [95.163.41.67]) (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 4PHkNb4CZVz3kcj for ; Thu, 16 Feb 2023 18:43:27 +0000 (UTC) (envelope-from artem@artem.ru) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=mail.ru header.s=mail4 header.b=zTcbUZKL; spf=none (mx1.freebsd.org: domain of artem@artem.ru has no SPF policy when checking 95.163.41.67) smtp.mailfrom=artem@artem.ru; dmarc=none DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mail.ru; s=mail4; h=Content-Transfer-Encoding:Content-Type:Subject:From:To:MIME-Version:Date:Message-ID:From:Subject:Content-Type:Content-Transfer-Encoding:To:Cc; bh=Y5D16USIvu2Bx2ui4Mqvhr5RzVtvOLwcN0kPoBZyrfM=; t=1676573007;x=1676663007; b=zTcbUZKLG1mM8Yb/bVdhfsHCC0zLBtSGOFAFpYnLmkWtFzVBKJCljhx5DXKDm7I1ahgWV1aZrrq+Hk2Z5Qdnfvmq09Kx/KKpfgp4sE9rq/jkhVmrKdZhTfKhQ6G4nL79v/iY78SRa8V2DesZipNboH8MHvxmRzzjlfo9UorWgFn4uQi8q37ByPtxt1VWTmqc6C62ba0F+zlNUG9BeAeKTcKCA80IlnaNcnBP2hvjE8vpZqVOA21gkV5JgjuFjMOkN0gvgXFv3rCcmExrTZMVqLygd7quxIeVr+/1Lyl5h9usB68qLZ6S+v4/2/KKNyp0mg+nEa422RPHfF/S9dcvhQ==; Received: by smtp3.i.mail.ru with esmtpa (envelope-from ) id 1pSjE4-00C73H-VC for freebsd-fs@FreeBSD.org; Thu, 16 Feb 2023 21:43:25 +0300 Message-ID: <0f75f202-263d-de1c-109d-7e6fff359983@artem.ru> Date: Thu, 16 Feb 2023 21:43:24 +0300 List-Id: Filesystems List-Archive: https://lists.freebsd.org/archives/freebsd-fs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-fs@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.7.2 To: freebsd-fs@FreeBSD.org Content-Language: en-US From: Artem Kuchin Subject: Disable gmirror rebuild while fsck and journal fails Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Mailru-Src: smtp X-7564579A: B8F34718100C35BD X-77F55803: 4F1203BC0FB41BD9806C989EC2150E3380C6DFC75C6EE8F43C1995440A46B57D182A05F53808504073D1D27A9EA79FCB097EF169375116FFC458969AE186610E1F11507A3C187FCC X-7FA49CB5: FF5795518A3D127A4AD6D5ED66289B5278DA827A17800CE7227E4400968B082FEA1F7E6F0F101C67BD4B6F7A4D31EC0BCC500DACC3FED6E28638F802B75D45FF8AA50765F7900637204D59D994DFFAD78638F802B75D45FF36EB9D2243A4F8B5A6FCA7DBDB1FC311F39EFFDF887939037866D6147AF826D8E128734F687163EA5CC279CBE606E87F117882F4460429724CE54428C33FAD305F5C1EE8F4F765FCC2ED6D5310B1F811A471835C12D1D9774AD6D5ED66289B52BA9C0B312567BB23117882F44604297287769387670735209647ADFADE5905B1E5D25F19253116ADD2E47CDBA5A96583BA9C0B312567BB2376E601842F6C81A19E625A9149C048EE902A1BE408319B292AE38A8E97BAFFB1D8FC6C240DEA7642DBF02ECDB25306B2B78CF848AE20165D0A6AB1C7CE11FEE36A1CB4668A9CA5FA302FCEF25BFAB345C4224003CC836476E2F48590F00D11D6E2021AF6380DFAD1A18204E546F3947CB11811A4A51E3B096D1867E19FE1407959CC434672EE6371089D37D7C0E48F6C8AA50765F79006377AA2284B41911753EFF80C71ABB335746BA297DBC24807EABDAD6C7F3747799A X-C1DE0DAB: 0D63561A33F958A562F4F7D352C667AE2897663189DD9FDAEBAFFCA96C2C5FDF4EAF44D9B582CE87C8A4C02DF684249CC203C45FEA855C8F X-C8649E89: 4E36BF7865823D7055A7F0CF078B5EC49A30900B95165D3490011A262ADAEDFE25904A8978B05851242B413C804142D69F7B5DADA45F410C672EC0E310B0A8531D7E09C32AA3244CFDDE1A7BFF87F7C8CEB9D15364B8F99295A9E0DC41E9A4CF3EB3F6AD6EA9203E X-D57D3AED: 3ZO7eAau8CL7WIMRKs4sN3D3tLDjz0dLbV79QFUyzQ2Ujvy7cMT6pYYqY16iZVKkSc3dCLJ7zSJH7+u4VD18S7Vl4ZUrpaVfd2+vE6kuoey4m4VkSEu530nj6fImhcD4MUrOEAnl0W826KZ9Q+tr5ycPtXkTV4k65bRjmOUUP8cvGozZ33TWg5HZplvhhXbhDGzqmQDTd6OAevLeAnq3Ra9uf7zvY2zzsIhlcp/Y7m53TZgf2aB4JOg4gkr2biojbL9S8ysBdXhvrUHpiLFuzECfoz6iloQ0 X-Mailru-Sender: B928727FE0CF249431584989AF455E218E0B9A4043C461FB1BE87228224C7847B13FE161D1FCA2CD0A1FD29A504278DEE66B5C1DBFD5D09D2FFF0A5F0DFA254CD0701747CC0EF98689F635B1FCB23A660D4ABDE8C577C2ED X-Mras: Ok X-Spamd-Result: default: False [-3.30 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.999]; R_DKIM_ALLOW(-0.20)[mail.ru:s=mail4]; MIME_GOOD(-0.10)[text/plain]; MIME_TRACE(0.00)[0:+]; R_SPF_NA(0.00)[no SPF record]; FROM_EQ_ENVFROM(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_LAST(0.00)[]; MLMMJ_DEST(0.00)[freebsd-fs@FreeBSD.org]; ASN(0.00)[asn:47764, ipnet:95.163.32.0/19, country:RU]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; ARC_NA(0.00)[]; DKIM_TRACE(0.00)[mail.ru:+]; TO_MATCH_ENVRCPT_ALL(0.00)[]; DMARC_NA(0.00)[artem.ru]; TO_DN_NONE(0.00)[]; DWL_DNSWL_NONE(0.00)[mail.ru:dkim] X-Rspamd-Queue-Id: 4PHkNb4CZVz3kcj X-Spamd-Bar: --- X-ThisMailContainsUnwantedMimeParts: N I am having  trouble after acrash. My gmirror is composed from 2 3TB disks with SU journaling (tunefs -j). I hoped that journaling will allow fast restart in case of a crach but no luck. When fsck with journling is enabled i receive: "Directory XXXX not found" and then i need to do full manual fsck That was a problem number one. From bug reports i've read that it is impossible to fix and is related to write caching. But then every crash i have gmirror rebuilding and it continues rebuilding while doing  fsck on 3TB mirror. This is PAINFULLY slow (3+ hours?) I don't see any way to pause gmirror rebuild for the time fsck is running. Is there? Is there any suggestion how to speed up startups in my case after a crash? Regards, Artem