From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 62D9F139355 for ; Mon, 2 Aug 2021 21:53:17 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C1F99E0948; Mon, 2 Aug 2021 21:53:11 +0000 (UTC) Received: from mout.gmx.net (mout.gmx.net [212.227.17.20]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 107A6E0923 for ; Mon, 2 Aug 2021 21:53:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1627941179; bh=UERNvf6T5WOVh7y1eRkZNEqpRhFtniI/3zrd8m9v5JA=; h=X-UI-Sender-Class:Date:From:To:Subject:References:In-Reply-To; b=MN/TAdwrrdb19VrI1DWnBfDZHxgIvb7GAZwUz0r3E3duxmP94Z3EiHosu5fYo84QT v5D1hZrssJy2pLEsdfzurtRoOxeJzlGWrM8+UynS/IIZsvslcyJoaZKorpcHh0S2jp jzh+ndTheYxX6MnTHH90iSzbCBXSVVPTEIOLmytY= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from kern ([92.117.45.35]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1Mdvqg-1mlfNV04MY-00azjL for ; Mon, 02 Aug 2021 23:52:59 +0200 Date: Mon, 2 Aug 2021 23:52:57 +0200 From: Frank Steinmetzger To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] [OT] SMR drives (WAS: cryptsetup close and device in use when it is not) Message-ID: Mail-Followup-To: gentoo-user@lists.gentoo.org References: <56d64f52-1b9a-1309-c720-06bb63c9f80a@iinet.net.au> <7a8c52c3-4c96-89ac-ace0-6eb4b8f1401f@iinet.net.au> <6104C897.5010505@youngman.org.uk> <7e6b56a2-917f-4dd6-3599-722bca5162ca@iinet.net.au> <7b00c8ee-b142-cd21-fc9e-77d272bb116e@iinet.net.au> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="e5MrsfOGG+aNqCel" Content-Disposition: inline In-Reply-To: User-Agent: Mutt 2.1.1; VIM - Vi IMproved 8.2 X-Provags-ID: V03:K1:ynXiXesmdEOQ7ygipQKzQmWS3TjyEnrluHtMeFIMxoHH0ikP7bH ZN4SxCCXg7AnwasSqo58jUdeK8E401Qf7P9au0tMqAgwN9iLlZxyE4SGxYGP9E9tKKPC2Ki OOYc3j4x5UJbBYa6u0c7N4BWArkzjJFPwCss9So8p8kQiMv9pELQ6nfwnrFWGk/Jht0+15W yrBJgo/2K1IVSAUxgFVGQ== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:gyUL3srQsW0=:s99YXgHje+Wpw5hJoaQGP3 6qGv8T9wBTSH5D0iyfL3lTyL0P0zo0T9JzjIua8Rbj4dxQ8R9a1mOveIw3s8sOjO4eRweiNL2 BbxEj/Z6zA3yYXc4/jsOYAS815iQ9RolXtwV4WmYbMrKz92DJTMI0wVZ1Tbiwi4t9US9LkBvB 5hno3p5Ayzdre/ZbhaxIFoxbHGbAFVX4YBxbhPohf3EsosvZrsw1gGrFC3NRwBFVgMXi7gCPl c0OV6rCmlxldrCWMbY8Ha6USS+CF4CAqel8WIxSFJr+eult25RwcviIahzmRowzTbFFI63hvd ychULHQp8S5yWGx6vrMCERyBLiuwilcQ9VvCZwEZXArunDiP3r0TOEBImZm/iDkdyLbPEq5WE hQue9ZFMIbW98qzlRUammXfN/dPhvf2jRKDXYPAiXzhk1iK7oz0CGULIDPqFaTE5zCGd5nCgm yPmpNf2HX9P6e88+qWmcHPBXAwGq3iT6LalMWMi350pTTrjKp3OdMZEK+Zm/x/40SlzJmtPLs nF3Kv9hZod034NJbCfcGsEIZ8+9XCcTEhSZiodwP+rqxCAv8on/ju4TYFaThDVclIezelQaNi OJ/wiNRjnGtr6EJHwO4htYDm1RUQg8aodNZ8O4Ct8WlTeIUJo+DIBtp3LC7TQei5+Ijn+NtOb XJo/2UZswFmqhYXmwc/9QoUA+/3yske6PavK2gETY0BWUvuFIp+mh8/C2+KSO4hl2Ktga1QY5 81QpSQ+Zu0cyWOpj8ezcZijXJi0LMpCxggtfBhqMfPQkgoRbpAJVdtbtH6q7rLatoko61a3cg S5sOyXqpRg+otorDwDIBdmfJCOPU1A9C/1CDsctZuw+bPUwCKWcVUGy2mcWRMYEvbkxpgZMUd j50bPuOIx4Xo9bT7enO0+ZWoEERuvtFa/ic5qQzdtcPht1poicCnntmhZc3ov955dkkZZAwh1 epXoJGiVvSa8R8qFmHuU0xS6Rla7u6enbbuxACitrpgcFDVtZD0SiZrG3Bgh1T6f7Mfsa+bLN rOvkU0IwiLptANXN53iLvDgqheaiKTYnXUQYam3yGElRhTZa0lYS/rZ5S5TwJGQMbXeyzBITN cDsyEZA9BpQSVTYdzciMJlOga6s+lBYE8UF X-Archives-Salt: 28754699-2dc4-4b97-94a4-516e0862f0b2 X-Archives-Hash: 8f6a02a2c36b238673275ad30b80ddb2 --e5MrsfOGG+aNqCel Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Am Mon, Aug 02, 2021 at 01:38:31PM +0800 schrieb William Kenworthy: > > Yup. Today I did my (not so) weekly backup and rsynced the repo to the = new > > drive. After that I wanted to compare performance of my old 3 TB drive = and > > the new SMR one by deleting a snapshot from the repo on each drive. But= Borg > > objected on the second deletion, because =E2=80=9Cthe cache was newer= =E2=80=9D. But that=E2=80=99s > > okay. I actually like this, as this will prevent me from chaning two re= pos > > in parallel which would make them incompatible. > > > Keep in=C2=A0 mind that both repos have the same ID - you should also rsy= nc > the cache and security directories as well as they are now out of sync > (hence the warning). That thought crossed my mind recently but I was unsure how to store the cache. But since the repo is a monolith, it should suffice to rsync the whole cache directory to the backup drive (or do it as a tar). The only problem is the temporal sequence: 1. Host A runs borg and gets a current cache. 2. Host B runs borg on the same repo and gets a current cache. 2a. Host A now has an outdated cache. Usually, Host B uses Host A via ssh as remote location of the repository. So I could simply run a borg command on Host A to update the cache somehow. > Be very careful on how you do this - you are one step away from losing the > while repo if the cache gets out of sync.=C2=A0 The docs warn against rsy= ncing > two repos and then using them at the same time for a good reason. I won=E2=80=99t use them at the same time. It will always be one direction: Hosts --[borg]--> Main backup drive --[rsync]--> secondary backup drive --=20 Gr=C3=BC=C3=9Fe | Greetings | Qapla=E2=80=99 Please do not share anything from, with or about me on any social network. My concience is clean! After all, I=E2=80=99ve never used it. --e5MrsfOGG+aNqCel Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEVbE9o2D2lE5fhoVsizG+tUDUMMoFAmEIaTcACgkQizG+tUDU MMq0Ig/9H+FBkcxlAciJk4WeBq1PfGHLHhbFlWXo7mo0NPb71u9cwdPIrcF84HLG cRuwBLcD5hxkdj+2CedM8A40GjB/ffM7OyluejvgneGmjRtsARFT2vWqbEnT9M2u G3QGcnw+K5bl+HKFplAJfcc6FOTKy9EPwSigCaM4zBrZJ8MqY9Is1t2b0rhvQzt/ z5g5RsAzD2E+6E4e19TfL1s2rOwlMMrbrV2MXDzhqDu0+yz9FgvTq6zimJXykd8N UD/UzUkHWQovAUkgk1KR76WCNHd5o0NZaMLPpyx+sXK83igz77/WW45Qtqle+ysW oA6eUhfsIpmnPyK46bS5tqFBXGbmez/ppICT2UoHRDSXSsgPYD1vZ3N7wqeAngJ6 T/v5Jr65UFHKvhC0ZWb4sIjGd1QDYgKB4IjE946Im0tZmFz1vDhmKv96W7sqxAxs ykDQHbAp1C2waV8J+s0bZIsmh7A6mf7y1xHtm+K8iSlKeX0uXrWhRHjUUjJcOACk kUP1F3huohPPNPO0VIpIT8VAr3PMXlYVKLD7/9AZOAf/KQ5CnZ6055FB9rIVX10A 5MfrhZ+/HShQ6yAOoGS798Eo4eUdTMrEiVOyHMxkLze9OnoVVrvtgri/FkIEwvr8 RN2if+QA2GIwA/pRQo+wSLBJoVlP3s6292JtV9eP2SEZREnEI+k= =nbrV -----END PGP SIGNATURE----- --e5MrsfOGG+aNqCel--