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 8CB26139000 for ; Thu, 29 Jul 2021 20:55:40 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 72835E095C; Thu, 29 Jul 2021 20:55:34 +0000 (UTC) Received: from mout.gmx.net (mout.gmx.net [212.227.15.19]) (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 A912DE093D for ; Thu, 29 Jul 2021 20:55:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1627592120; bh=S2a1IcOmBdq0kf5UEBG4nY9Yaxi3lLTNiW53f0pIcXA=; h=X-UI-Sender-Class:Date:From:To:Subject:References:In-Reply-To; b=AtDxyDRng/i0ub1/D7bQrTH3I8eGVjNB2g3bDpEg7sl39rYoek/XVaz14SyGMc/4g hYZVV0uojkV6UTqB711+zBhzscUMX5/SRMgXg/o5+rRwIF6sMjIyfedwXSlBGmtq2J 5F8fwsV+Tfrm7jhq7QCXWYIs1tNRYqWVH8M9ATWA= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from kern ([92.117.33.176]) by mail.gmx.net (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MHoRA-1mMyQL3NCA-00ErzQ for ; Thu, 29 Jul 2021 22:55:19 +0200 Date: Thu, 29 Jul 2021 22:55:18 +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: <9946c2eb-bb5c-a9c0-ced9-1ac269cd69a0@gmail.com> <6ecbf2d6-2c6f-3f66-5eee-f4766d5e5254@gmail.com> <24805.48814.331408.860941@tux.local> <5483630c-3cd1-bca2-0a6d-62bb85a5adc6@gmail.com> <96fc901a-2ce4-0ea0-0ed1-1c529145c0e9@gmail.com> <6102DB58.7040103@youngman.org.uk> 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="raGDKmcVVdvyYUM8" Content-Disposition: inline In-Reply-To: <6102DB58.7040103@youngman.org.uk> User-Agent: Mutt 2.1.1; VIM - Vi IMproved 8.2 X-Provags-ID: V03:K1:gSS8HGPO0Cdrcrf5GcvcK1P5mRB9XQ8JDM/sA+DEo+2HLfKE2lE lW37qZUzSS2m3fAhdhlnCjaKsT9jWjEiTjtkW6K/+yox1MTo04QRuWEwjXkJak3M1jr1Cnv Ai82otxg9ncAUHw4Sv2TIWLSqXigZr5W8yMWoEQ1kDXnp9PscJnaaMYbUgCZYu5Hcpp/QQI EzVvT49b38XJMwIyk0uDQ== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:RAtxvdm6phE=:/Cy1g1mLE0AC85lqHX0drf WRPmvpMGOfSkXGioSEuVO5SNY+zGXynJyhmrgNjAZMEGcvjVUmJfmL1nPvWw/0g4kDq0qg9Ja GKaLzy04qN1XfhncMkSqnv8bWo/GK7PiFCYN64nM3DMCj78tSerFgcZ59BUxEc/48fSqo6QmF n7arIczOeBLmma60DN6rudjXtWxkKnjqabb/43PArD3rw/tGppPjolWiwoWOgMWSPstellswD ohy/JAWdGg564yn6SmW58bbSiXgi+uhu3nw85jXzJDhoQwCQaOlruqsX+vk/Ltm3ygCfn1317 YpQsM5FmVc/gaeZin4YEBSx6e3rJZ6SjeX1gVEkSxTRe4ThHM7BuuZDu2VgmCiGRFLm7ASJUO uQR8xvFHWf51vQVn6+riUrR7dhqvv+FgpL78sUZlfNnVi0DSR0psaln+fsP1U12+T1ObsJyZa JdBIyEmFCKVNMDv3yapm/uqRFnEjvmiyawEeXmX77Wxixx/45CdSe1biTEXr3OTQ0Q3GNd8YM iiqnlsp1sc1PVl4qzUT78gbXaZRIUPDSTbpD7IFcvL/w9B3zSEOK/0kmIPEAZNkhebqrTI9AL HlsIHnkWIb0zj5SqQtCwxuh9y57r6d6lN9x28s2o0uzDtHZ42FCIBcseAEDbapokwxcNROmwf V4c9Lr4LUicrF2iF5VkQ/91QcgcmMiXQSOG8rDe4WZc0zaJAERGgqRF+ThBiCMfFFEtpvBXpA scB+3/JDvsLVSs/DSuC/9KB/GK+0lV5hBqQhWgpzCngmH55S8DgcUEnAbECn+hsi7O4LpiTnB j/rzev1Pm9uUsxmzZGr0X2bwjeyVMfthHtY42e+zR1spwrBkZYnA0E196r9AWkoWqXWFvzTH3 Mr+MbvuLliLBIsKCJ172jV5C6pVxD3OfCDpA1lm+3sYfaO0P1D1DTL/8WZIsuHpnuZ+MVYT6B ANtXH7sjD0CK3FRb1FipzN7esY5UKFbUrmGG94l0iTB3r5S4uGQXldmMtvJkD8eigDrSb5TDu 8LQzLsyBkZiJxErCY8GZWzYCsDOUqbcRhfbqqaVW8J0o4yIrc/1TF2nvE99tShjGWLrTzUS2s I7ta1wHDL0CRlXSbO26cAy+NAzG3W7/x8ww X-Archives-Salt: 16c72c4b-39b6-4189-a129-f64f5739d710 X-Archives-Hash: 0ad0a27c60cc98c757d9b78ca35e9b76 --raGDKmcVVdvyYUM8 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Am Thu, Jul 29, 2021 at 05:46:16PM +0100 schrieb Wols Lists: > > Yea. First the SMR fiasco became public and then there was some other PR > > stunt they did that I can=E2=80=99t remember right now, and I said =E2= =80=9CI can=E2=80=99t buy WD > > anymore=E2=80=9D. But there is no real alternative these days. And CMR = drives are > > becoming ever rarer, especially in the 2.5=E2=80=B3 realm. Except for o= ne single > > seagate model, there isn=E2=80=99t even a bare SATA drive above 2 TB av= ailable on > > the market! Everything above that size is external USB stuff. And those > > disks don=E2=80=99t come with standard SATA connectors anymore, but hav= e the USB > > socket soldered onto their PCB. > >=20 > Are you talking 2.5" drives here? I meant in general, but =E2=80=93 as I said =E2=80=93 =E2=80=9Cespecially i= n the 2.5=E2=80=B3 realm=E2=80=9D. ;-) For 3.5=E2=80=B3, it=E2=80=99s mostly the low-capacity drives that are affe= cted. Probably because here the ratio of fixed cost (case, electronics) vs. per-capacity cost (platters, heads) is higher, so the pressure to reduce manufacturing cost is also higher. High-capacity drives tend to remain CMR at the mo=E2= =80=99. > The SMR stunt was a real cock-up as far as raid was concerned - they > moved their WD Red "ideal for raid and NAS" drives over to SMR and > promptly started killing raid arrays left right and centre as people > replaced drives ... you now need Red Pro so the advice for raid is just > "Avoid WD". Red Plus is fine, too. I think the =E2=80=9CPlus=E2=80=9D is marketing spea= k for non-SMR. Which is why probably SMRs now have the price tag of old CMRs, and the new CMRs have a =E2=80=9Cplus=E2=80=9D on the price tag. > From what I can make out with Seagate, the old Barracuda line is pretty > much all CMR, they had just started making some of them SMR when the > brown stuff hit the rotating blades. Seagate made a statement that their NAS drives are not and never will be SM= R. In case someone is interested, here=E2=80=99s a little experience report: Two days ago, I bought a 2.5=E2=80=B3 WD My Passport 4 TB for a new off-sit= e backup strategy I want to implement. They even killed the rubber feet on the underside to save a few cents. >:'-( ) Interestingly, the even cheaper elements series (which is the cheapest because it has no complimentary sofware and no encryption or password feature) still has them. Probably because its case design is older. I just finished transferring my existing Borg backup repos. Right at the beginning, I tested a small repo of 3 GiB and I got good throughput. After around 2 GiB or so the drive went down to 10 MiB/s for a very long time (writing at least another 3 GiB, I have no idea what that was). I was already pondering my options. But once that was over, I=E2=80=99ve si= nce been writing 1,2 TiB to the drive with rsync happily without any glitches, averaging at slightly above 100 MiB/s. I used SMR-friendly ext4 settings and Borg uses datafiles of 500 MiB size, which greatly reduces sprinkled metadata writes b/c it=E2=80=99s only a few thousand files instead of milli= ons. According to smartctl, the drive claims to support Trim, but so far I=E2=80= =99ve been unsuccessful to invoke it with fstrim. First I had to enable the allow-discard option in the underlying LUKS container, which is disabled by default for security reasons. But either I=E2=80=99m still missing a detail= , or the USB-SATA-bridge really does not support it. Or it does, but the kernel is unaware: yesterday I read an article about enabling a flag for the USB controller via a custom UDEV rule. Who knows. --=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. For a pessimist, the day has 24 bruises. --raGDKmcVVdvyYUM8 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEVbE9o2D2lE5fhoVsizG+tUDUMMoFAmEDFbQACgkQizG+tUDU MMqN8Q/+MJ12eTuWIYYTBGFHCnh1P1M1RwbcuGqlQQMDBRxtW2rs231YPhhMmgJ5 TixXv07vEBV6rx6wVx07Z4A/eBO39MP1qdxhFfFS+nWASPRXdjy0Cq9vmyvPGHxw /fpm2a7qJE0iqH+TS1a7SpGogT875MGvaPyWuqphs1a2wQ8yvpa8reQ664Xuf5zG oqRRk4ERtUEeEmWKw4OPM0uVw0lDztY6icHPJiTB++UzyZFjCGvGXgPA5MudckMD 2diiTQgWzYZG1j1tqVZw7iWsVb6BcuFJMwffNENjVhdVvlarGZfXXXB3vfHxyKrg YRNpGwSB5v0L2WN7Yz+FhETFoiXMwqqgsml15gcnStvCkLtuuSufHD7tgIMt6A2Y ST6gMnjWM9tq36cxEJ49l+6jGvAOz8AJqZDoYOmB9OAOd6ceC0/OMkqWP6jg8UiI Kyl11CLVi2K+6L+fhXlaO4t0sJJ0AUg+A+Q9FG6sYPGAE/i2qAwMl3nKJvRxBKh6 vSSdKzuVcFxCLNm27BGWV+s0fdg47VbCW8DrcqlrzBXjhFuMybD1zNymuVhT5/5N ngsxXk9170QyFyHpor93CCn6Wnup5EitKkO4BPxsnNnwH4JjcWgTRpqBdA1lHqZS PIE8rU03e1NL0Xul7miHpWMKXkFMFOzA7WK6gJhMEYSLVVRqKRw= =QVMs -----END PGP SIGNATURE----- --raGDKmcVVdvyYUM8--