From nobody Mon Dec 22 04:29:47 2025 X-Original-To: freebsd-hackers@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 4dZQCk2x3yz6M9xF for ; Mon, 22 Dec 2025 04:29:54 +0000 (UTC) (envelope-from iio7@protonmail.com) Received: from mail-24429.protonmail.ch (mail-24429.protonmail.ch [109.224.244.29]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "protonmail.com", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dZQCj0ttJz3j5N for ; Mon, 22 Dec 2025 04:29:53 +0000 (UTC) (envelope-from iio7@protonmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=protonmail.com header.s=protonmail3 header.b=ZQsziXYG; dmarc=pass (policy=quarantine) header.from=protonmail.com; spf=pass (mx1.freebsd.org: domain of iio7@protonmail.com designates 109.224.244.29 as permitted sender) smtp.mailfrom=iio7@protonmail.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1766377790; x=1766636990; bh=laVLpKGoiqB+BWDMO8DQble6b8TunCsSdQ8/5NGLoiE=; h=Date:To:From:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=ZQsziXYGqmL/0QEVfrRhGib++Dit9v3+uQCRam2UgQ7/LH2xLJQxqoxjQIjzRFwOO gvm4ZLwt+oNeQOJuy+Tg08S9yC/qasdrE0tsMVXA17UB4lpKhfjBMwxfuDsQ43T7Zx SzUoP8mkj+eV8IB6oEsoLcloN3AAZaY7080hbzn9e0FtbPzCO6ORYvvZ1d4xU83taI nwTzLP4te0qKWVrtkbqsUBBsE1iL5f3n20K3JfhEAdtiO/8Ut9dg+SvO3bCFbl2mgc l2px5uDCT7iqELnDzBB8PYisQXCYhZPA0QU3Wg18RQcbl7YIwbaRSn3FwZIHGFmEgw aMnNqVg1avtww== Date: Mon, 22 Dec 2025 04:29:47 +0000 To: "freebsd-hackers@freebsd.org" From: Martin Subject: Re: Prevent spin-up of USB HD after upgrading to FreeBSD 15 Message-ID: In-Reply-To: References: <2ol9PnW7p50uz0__d_HOZzN2nfR0mB_SFeYzSBYdfCzuVJRDQ7xLNL6nlOAqu-PTMiN9ONG01J1mTL4vEFQc66oZVMJTJuGxFDkOG2yQwRc=@protonmail.com> Feedback-ID: 31965842:user:proton X-Pm-Message-ID: 7bbc93a8f11c26c1e41afd2a48063b990bb5a8f3 List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.34 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.94)[-0.941]; DMARC_POLICY_ALLOW(-0.50)[protonmail.com,quarantine]; RWL_MAILSPIKE_EXCELLENT(-0.40)[109.224.244.29:from]; R_SPF_ALLOW(-0.20)[+ip4:109.224.244.0/24]; R_DKIM_ALLOW(-0.20)[protonmail.com:s=protonmail3]; MIME_GOOD(-0.10)[text/plain]; MISSING_XM_UA(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_FROM(0.00)[protonmail.com]; FREEMAIL_ENVFROM(0.00)[protonmail.com]; RCVD_IN_DNSWL_NONE(0.00)[109.224.244.29:from]; RCPT_COUNT_ONE(0.00)[1]; ARC_NA(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; MLMMJ_DEST(0.00)[freebsd-hackers@freebsd.org]; TO_DN_EQ_ADDR_ALL(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; RCVD_COUNT_ZERO(0.00)[0]; DKIM_TRACE(0.00)[protonmail.com:+] X-Rspamd-Queue-Id: 4dZQCj0ttJz3j5N On Friday, December 19th, 2025 at 7:52 PM, Warner Losh wro= te: > On Thu, Dec 18, 2025 at 11:17=E2=80=AFAM Martin wro= te: >=20 > > 1 32062 xpt_action_default:entry da5: CDB: 2a 00 c8 00 25 b8 00 00 08 0= 0 >=20 > ... >=20 > > 3 32062 xpt_action_default:entry da5: CDB: 2a 00 c8 00 25 c0 00 00 10 0= 0 > > 3 32062 xpt_action_default:entry da5: CDB: 2a 00 c8 00 25 d0 00 00 08 0= 0 > > 3 32062 xpt_action_default:entry da5: CDB: 2a 00 c8 00 25 e0 00 00 10 0= 0 > > 3 32062 xpt_action_default:entry da5: CDB: 8a 00 00 00 00 01 00 00 2a d= 0 00 00 00 08 00 00 > > 3 32062 xpt_action_default:entry da5: CDB: 8a 00 00 00 00 01 00 00 2c 5= 0 00 00 00 20 00 00 > > 3 32062 xpt_action_default:entry da5: CDB: 8a 00 00 00 00 01 00 00 2d 6= 0 00 00 00 08 00 00 > > 3 32062 xpt_action_default:entry da5: CDB: 8a 00 00 00 00 01 3e 36 29 b= 0 00 00 00 30 00 00 > > 2 32062 xpt_action_default:entry da5: CDB: 2a 00 c8 00 25 f0 00 00 08 0= 0 > > 3 32062 xpt_action_default:entry da5: CDB: 2a 00 c8 00 25 f8 00 00 08 0= 0 > > 3 32062 xpt_action_default:entry da5: CDB: 2a 00 c8 00 26 00 00 00 08 0= 0 >=20 > etc >=20 > So the first byte of the CDB is the opcode. 2a is WRITE(10) and 8a is WRI= TE(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 traff= ic somehow? That's the next thing to look into. I didn't see any read opcod= es, 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.