Date: Mon, 22 Dec 2025 04:29:47 +0000 From: Martin <iio7@protonmail.com> To: "freebsd-hackers@freebsd.org" <freebsd-hackers@freebsd.org> Subject: Re: Prevent spin-up of USB HD after upgrading to FreeBSD 15 Message-ID: <MQTkKiXBVTjPXdULFHodNXAGP09lwp-WUKRG7ykRpalEPNiAnLzVpVndxK9ga6PlsFqBjqZ0IpxEeeTctEyESBFZ-2X3DWCy712NOABVvxU=@protonmail.com> In-Reply-To: <CANCZdfq6OAK9ZPojp00OP1kRuWUuNnBNW%2BosO5FXeifbMQNBEQ@mail.gmail.com> References: <j7XoSQMU-9G-lOiNcAsrUE4FmIzX26V971Z5fLI7RtfIyvm_6PoXbSksem-pXoMZNy9CchKhGl7C2T9xkQAlL84Y89Y5byUOkOuIwSnBtlY=@protonmail.com> <CANCZdfooL8vCCKbm0txCb%2BTDffGhxc1fDD4SwVLM08tDZPz=GA@mail.gmail.com> <t565nv2ZOb8O-k2pel6bLS_AsjvqgIA6Io6cGvbkWjcPbC_miDkRrqzEWflTpN5hvINq7vwhuZ6y8avls__jRm464UoxN944kTpB-8yXXQc=@protonmail.com> <CANCZdfp7WSETfqxq=bc9fqrFFncYcRgzeJ%2BnyX3xZoOo-xPiAQ@mail.gmail.com> <2ol9PnW7p50uz0__d_HOZzN2nfR0mB_SFeYzSBYdfCzuVJRDQ7xLNL6nlOAqu-PTMiN9ONG01J1mTL4vEFQc66oZVMJTJuGxFDkOG2yQwRc=@protonmail.com> <CANCZdfpkf9_nWKDTUZ3VSK-XyfgvC5RheqRw4gxG3jtuCbrA1w@mail.gmail.com> <KHx7394uinh0FMuTPEUOlXA6f73RBcydhoCmale26K9bsFvJANtTnClNzSUrWj1DEBDaPtlKTa5I36U0-DCEZ4u4tWQnppfCOhPzZAPfFIo=@protonmail.com> <CANCZdfq6OAK9ZPojp00OP1kRuWUuNnBNW%2BosO5FXeifbMQNBEQ@mail.gmail.com>
index | next in thread | previous in thread | raw e-mail
On Friday, December 19th, 2025 at 7:52 PM, Warner Losh <imp@bsdimp.com> wrote: > On Thu, Dec 18, 2025 at 11:17 AM Martin <iio7@protonmail.com> wrote: > > > 1 32062 xpt_action_default:entry da5: CDB: 2a 00 c8 00 25 b8 00 00 08 00 > > ... > > > 3 32062 xpt_action_default:entry da5: CDB: 2a 00 c8 00 25 c0 00 00 10 00 > > 3 32062 xpt_action_default:entry da5: CDB: 2a 00 c8 00 25 d0 00 00 08 00 > > 3 32062 xpt_action_default:entry da5: CDB: 2a 00 c8 00 25 e0 00 00 10 00 > > 3 32062 xpt_action_default:entry da5: CDB: 8a 00 00 00 00 01 00 00 2a d0 00 00 00 08 00 00 > > 3 32062 xpt_action_default:entry da5: CDB: 8a 00 00 00 00 01 00 00 2c 50 00 00 00 20 00 00 > > 3 32062 xpt_action_default:entry da5: CDB: 8a 00 00 00 00 01 00 00 2d 60 00 00 00 08 00 00 > > 3 32062 xpt_action_default:entry da5: CDB: 8a 00 00 00 00 01 3e 36 29 b0 00 00 00 30 00 00 > > 2 32062 xpt_action_default:entry da5: CDB: 2a 00 c8 00 25 f0 00 00 08 00 > > 3 32062 xpt_action_default:entry da5: CDB: 2a 00 c8 00 25 f8 00 00 08 00 > > 3 32062 xpt_action_default:entry da5: CDB: 2a 00 c8 00 26 00 00 00 08 00 > > etc > > So the first byte of the CDB is the opcode. 2a is WRITE(10) and 8a is WRITE(16). So FreeBSD is deciding to write rather a lot to this drive. That's why it's waking up. I'm not sure why it's deciding to write to this zpool (if I recall your original email correctly). Is it mounted and getting traffic somehow? That's the next thing to look into. I didn't see any read opcodes, so maybe this is a resilver? No, it's not mounted and it's a single drive, not in a mirror or anything. No resilvering. I have just upgraded ZFS on my Artix Linux installation from ZFS 2.3.5 to 2.4.0 and now the same is happening there as well, so that's something.help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?MQTkKiXBVTjPXdULFHodNXAGP09lwp-WUKRG7ykRpalEPNiAnLzVpVndxK9ga6PlsFqBjqZ0IpxEeeTctEyESBFZ-2X3DWCy712NOABVvxU=>
