From nobody Fri Jul 9 10:50:56 2021 X-Original-To: stable@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 4DF5B1273215 for ; Fri, 9 Jul 2021 10:51:05 +0000 (UTC) (envelope-from petefrench@ingresso.co.uk) Received: from constantine.ingresso.co.uk (constantine.ingresso.co.uk [IPv6:2001:470:6a18:411::3]) (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 did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4GLqhS27lyz4bnF for ; Fri, 9 Jul 2021 10:51:04 +0000 (UTC) (envelope-from petefrench@ingresso.co.uk) Received: from dilbert.ingresso.co.uk ([2001:470:6a18:411::6]) by constantine.ingresso.co.uk with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94.2 (FreeBSD)) (envelope-from ) id 1m1o5x-0007xX-2m for stable@freebsd.org; Fri, 09 Jul 2021 10:50:57 +0000 Received: from petefrench by dilbert.ingresso.co.uk with local (Exim 4.94.2 (FreeBSD)) (envelope-from ) id 1m1o5w-000A3m-Rg for stable@freebsd.org; Fri, 09 Jul 2021 11:50:56 +0100 To: stable@freebsd.org Subject: Mysterious swap partition I can only get rid of on reboot Message-Id: From: Pete French Date: Fri, 09 Jul 2021 11:50:56 +0100 X-Rspamd-Queue-Id: 4GLqhS27lyz4bnF X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=pass (policy=none) header.from=ingresso.co.uk; spf=pass (mx1.freebsd.org: domain of petefrench@ingresso.co.uk designates 2001:470:6a18:411::3 as permitted sender) smtp.mailfrom=petefrench@ingresso.co.uk X-Spamd-Result: default: False [-3.79 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; RBL_DBL_DONT_QUERY_IPS(0.00)[2001:470:6a18:411::3:from]; ARC_NA(0.00)[]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2001:470:6a18:411::3]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; NEURAL_HAM_LONG(-1.00)[-0.995]; RCPT_COUNT_ONE(0.00)[1]; SPAMHAUS_ZRD(0.00)[2001:470:6a18:411::3:from:127.0.2.255]; RCVD_COUNT_THREE(0.00)[3]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.998]; DMARC_POLICY_ALLOW(-0.50)[ingresso.co.uk,none]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; R_DKIM_NA(0.00)[]; ASN(0.00)[asn:6939, ipnet:2001:470::/32, country:US]; MIME_TRACE(0.00)[0:+]; MAILMAN_DEST(0.00)[stable] X-ThisMailContainsUnwantedMimeParts: N List-Id: Production branch of FreeBSD source code List-Archive: https://lists.freebsd.org/archives/freebsd-stable List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-stable@freebsd.org X-BeenThere: freebsd-stable@freebsd.org So, one thing which came out of my dying drives saga is this. I have a swap partition on each drive. on /dev/ada0p2 and /dev/ada1p2. When a drive dies, like ada0 did earlier, then swapinfo looks like this: Device 1K-blocks Used Avail Capacity /dev/#C:0x74 16777216 0 16777216 0% /dev/ada1p2 16777216 0 16777216 0% Total 33554432 0 33554432 0% OK, thats a bit odd. But I stick a new drive in, partition it, and run 'swapon -a' and it ends up looking like this: Device 1K-blocks Used Avail Capacity /dev/#C:0x74 16777216 0 16777216 0% /dev/ada0p2 16777216 0 16777216 0% /dev/ada1p2 16777216 0 16777216 0% Total 50331648 0 50331648 0% ...and the thing is that I cant remove /dev/#C:0x74 using swapoff that I have managed to find. I have to reboot to make it go away. -pete.