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 1DE20139360 for ; Tue, 3 Aug 2021 08:18:29 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id DD461E0960; Tue, 3 Aug 2021 08:18:20 +0000 (UTC) Received: from mout.gmx.net (mout.gmx.net [212.227.15.18]) (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 27A57E0953 for ; Tue, 3 Aug 2021 08:18:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1627978688; bh=Oa7VAjv9LgOLJU+iHJnBWcGrq0l8k7dedQNrocLrfF8=; h=X-UI-Sender-Class:Date:From:To:Subject:References:In-Reply-To; b=Z1W/sxrZ9xRiw5IDcPk1XMlertJ84znykCpoqBh8CDrE+Iy5uVaqge/Ba1MlQnOhz sJIB2+i8Lz9IsK7UqKW9UGBoSNga2wBOzcebNe80QlbuW+aV8okvwTd0gNaBAxaZqX Z9881is3wgFZNPFDLjslm8+BjlytPqc3tGjoOHSM= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from moby ([92.117.39.188]) by mail.gmx.net (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1N4zAs-1nBI5E133c-010u0w for ; Tue, 03 Aug 2021 10:18:08 +0200 Date: Tue, 3 Aug 2021 10:18:06 +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: <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="H//utNxFPu3+w8zE" Content-Disposition: inline In-Reply-To: User-Agent: Mutt 2.1.1; VIM - Vi IMproved 8.2 X-Provags-ID: V03:K1:OFBwH7GK4pV/OUWTmnzARdwQQto/L0an/EAeYjkZxO/CvVJzR+E QU6XKVZ3F80GRCRh8FQ4rINz/8uH8jNs6ZnCmPDil7SFuatTbHOUN6QQ7geHnH6Q83wPUKH smvpdVuOM+MxvTJ3HWIw3ptyiKz+5k+0bHzAw8rC3lH9A+0QFovx+uEan1toY1liNbTA1kd Ycl5MTGbxQJAyYoQKfAVg== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:J2V3tLaiLyw=:ZTnsQs54X+MM94tJpCZjk3 bHTbxAe9fazeWOGj5jtdmZNbsJTzzdwE4nVB9EkgK0v2v/1FHwVfMbDYCDnsUBkhUHU2E5mMg f9PL/5d0A+0K42SxUBAY7dHRAOhvWEIgJZ9sW9BOIxIduHsvDADcflc90b9qKm6LNl8UDsf5s r6FN2p7gR+Jevi893tmWdvqOXYpI7VbN+gmBh29K7HvHsWNLUVluDEUZ0ikRbOClfBvuVyIZE 6fbsQh24aVMjaDHWprsPJIHYnVHnUdEH+6vLew/1avvvJDxu+JjSAsaB98MAL3aZ3QMJuqyoy LrZKPwkQxkPs2u0DZwheeBVsfamW46feOenaDDi2AY+AOSdgK3LAz8/4YjiJIvv4usiiIGgE2 lWTyqpC70aK/VcWvg5GU7UGWlU8ecvkZMYdSlQ3uDbllk1/3WM/sStLwQ30rXsnksUNbL4Rtt czK4u6HIxI+7Dnudb1eV3BNNj9XSPPXnFVGDriadrLjo8rw3hovAknNEAKJzhZL/5Nsv0lqHo G+Az7YvVW9v41k7Vx5bl1XlQKuXlrbJ8q8Tz6MJEEDTGYL0c43kT4dwZXW5J8uoCFRrq2u5By dCnXNbIpemGn24Wbg8tWP1xQM1qK9vyPKaQRon+9GEelINoIRNSmOx/u+h0zTVABCB1SFZPEj Q/PtktDSe6ClPJhlyQhQfdauqsMrd9R22A4uW/tutQjBimbHuV0+3HJwtCuuxmckA0UiKQTfz HlsJ+jvWlumE4JFR6XLPMtyb4LnpuRQmuGHnk6twJb4rxrV9QgAOiGUJa2x9/HuVENDTbVdcC K/Dj3kY2BRSw23uOWBsxTieP9FPOcvDNZjXxbzqPhEKemKTgfAfB7Ag7Zx0BERm7/rUVHHDVJ 2EQkp8RCI8R38Pwvcd8pFE+yxjQbTMZhwdTmFKw193ZXKWJzs+Q2vgWHre594VoooZJ5lxioo lvKLbRPsv6/Dx8NGiCKY184nfiuiDyr1BVzxcs9Ep43rGtiEqNuApB/hKAURiAVYIaSYkyxpD q4RQHqfKMEN/HmzScI7+LHo126tSd7mWOPuCxwhec3ZcwHouADnZnZV9gnX+Topvn3y6vFUKB b9NyU1CjxSyRjGNDmUwpS4dsd1mC/Wrzelu X-Archives-Salt: 26e0c5ee-987a-4eae-a326-e4375702a669 X-Archives-Hash: e06879a3ce129bf22ef8111b6124ee10 --H//utNxFPu3+w8zE Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Am Tue, Aug 03, 2021 at 07:10:03AM +0800 schrieb William Kenworthy: > >> Keep in=C2=A0 mind that both repos have the same ID - you should also = rsync > >> 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 repositor= y. > > So I could simply run a borg command on Host A to update the cache some= how. > > > >> 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 = rsyncing > >> 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 direct= ion: > > Hosts --[borg]--> Main backup drive --[rsync]--> secondary backup drive > > > You could delete and rebuild the cache each time (or I think there is a > way to do without it). If the cache can be easily rebuilt, then there=E2=80=99d be no need to stor= e it at all. At least that=E2=80=99s what I hoped, but was shown otherwise; I delet= ed the whole cache, wanting to clean it up from cruft, and then the next run took hours due to complete re-hash. > There are quite a few threads on the borg lists about this in the past > (usually people trying to recover trashed repos) I=E2=80=99ll give them a read in a quiet hour. > - you might ask there if there is a way to deal with changing the ID now? Why would I need to change the ID? As already explained, I will only ever borg to the primary backup disk and mirror that to another disk with rsync. And when the primary fails, I use the secondary as drop-in replacement. --=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. Sometimes the fingers are faster then grammar. --H//utNxFPu3+w8zE Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEVbE9o2D2lE5fhoVsizG+tUDUMMoFAmEI+7kACgkQizG+tUDU MMqa7RAAjWd3bnTVGJjz2MylyO8fCFVOaKAAvZtE7XdWQCfT1iLkxmKAmN/dYWOS hEa6ThETP3xc5gACiAp7EYTzb9fjmDgC05ys2hPlUOmwOZwIo2COhuzfkTEcgc7e sFiSc8nCjAHpC7ImSIdFb68jHuEc7paFF3NghHMAe40GO8tXQyPiqE/xb05hQPKE PVDsp4zDibGs3b/QNXIZl2K4ZVHIu3xqbsNfIAy+3I6nO6U0ZqjQCf2n0gzKnqCR cshjNp1sOA5lKxHKYLGT/OSaVHT5CH1W1TLXC3iX6WRPkFh9urTm/uLb+v/gXdts 2Ix/yZzX68/xAx8qz1RaN6QgcbmGSOXF0FnPz6p6QXeK54zIZvK6WP5LtXdvZkM9 eS3Q4YkYvY5mAat+OdEYfrXhSVuCourx0pMADCzSSRrHyaN2QwTwHG+F0IDsjhou NV2cQnIKLFviQ+P7+x6c+sd9W8lOPG1YmE7NeEYmV3VbotbtmvMJlysZYf5EN00t WLWAaFfp8iupaSeTM4X1Z0MRorB7TvTDo3Z75cfbl8shF1i7ratXvwgVAgMsso/K 8nxvMo8JTrk1R+/389Otb4X8dMKgnPKQDkNX4UHAQbRkbPJhdi0W5qbzHcksNjJz 0IONP0X9f227wU9Lg7zsoLY+N+4E3km42v9iZjTu8mj98zsPB5Y= =JtMG -----END PGP SIGNATURE----- --H//utNxFPu3+w8zE--