From owner-freebsd-questions@freebsd.org Sat May 2 08:03:49 2020 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 0BB812C7AB4 for ; Sat, 2 May 2020 08:03:49 +0000 (UTC) (envelope-from trond.endrestol@ximalas.info) Received: from enterprise.ximalas.info (enterprise.ximalas.info [IPv6:2001:700:1100:1::8]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "ximalas.info", Issuer "Hostmaster ximalas.info" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 49DhTH606cz3PH7 for ; Sat, 2 May 2020 08:03:47 +0000 (UTC) (envelope-from trond.endrestol@ximalas.info) Received: from enterprise.ximalas.info (Ximalas@localhost [127.0.0.1]) by enterprise.ximalas.info (8.15.2/8.15.2) with ESMTPS id 04283ejY035894 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Sat, 2 May 2020 10:03:40 +0200 (CEST) (envelope-from trond.endrestol@ximalas.info) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ximalas.info; s=default; t=1588406620; bh=jaPBfBn70A1hcWIw2qITgaAdwXQ94cLgpelauV7WJlo=; h=Date:From:To:cc:Subject:In-Reply-To:References; b=lqxfkgFigLs2T3Dmx76d/tCEjYLYdlVfe13vXuMJ3jYFQj5tQzyGBgk9Qa3AGPb8n 1ykjCXXkrrczxgjN4cCkx9yShSzcPivMAqF2bEs2815ks/kqv9Ek314bzI9XiLfzcu UyIUwylV/+cFMv8lBE0sr3+hadVIvFP/y9SUN/l77ceE1ZpiP/s6OHWavd12FkP51y gaKPm9NxS4cMvOC8QaDJgh9vy6Zfy7UDDAkOO5j7qGuCcz9rrB9GKL2xE83mgnCIvQ v8EGDeTrAvrLXQrbqSDwfQFQb9k8873uktj5vxSYlwbX4Ng9N2BAJcayPVFXyFSGsN T1G5UroaFQK/g== Received: from localhost (trond@localhost) by enterprise.ximalas.info (8.15.2/8.15.2/Submit) with ESMTP id 04283eXY035645; Sat, 2 May 2020 10:03:40 +0200 (CEST) (envelope-from trond.endrestol@ximalas.info) X-Authentication-Warning: enterprise.ximalas.info: trond owned process doing -bs Date: Sat, 2 May 2020 10:03:40 +0200 (CEST) From: =?UTF-8?Q?Trond_Endrest=C3=B8l?= Sender: Trond.Endrestol@ximalas.info To: Ireneusz Pluta cc: freebsd-questions@freebsd.org Subject: Re: How to get rid of an unavailable pool? In-Reply-To: <32264a1f-3bcf-9d74-603d-c201bffd256c@wp.pl> Message-ID: References: <32264a1f-3bcf-9d74-603d-c201bffd256c@wp.pl> User-Agent: Alpine 2.22 (BSF 395 2020-01-19) OpenPGP: url=http://ximalas.info/about/tronds-openpgp-public-key MIME-Version: 1.0 X-Spam-Status: No, score=-1.2 required=5.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on enterprise.ximalas.info X-Rspamd-Queue-Id: 49DhTH606cz3PH7 X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=ximalas.info header.s=default header.b=lqxfkgFi; dmarc=pass (policy=none) header.from=ximalas.info; spf=pass (mx1.freebsd.org: domain of trond.endrestol@ximalas.info designates 2001:700:1100:1::8 as permitted sender) smtp.mailfrom=trond.endrestol@ximalas.info X-Spamd-Result: default: False [-3.07 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-0.999,0]; R_DKIM_ALLOW(-0.20)[ximalas.info:s=default]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+a]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[multipart/mixed,text/plain]; HAS_XAW(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[ximalas.info:+]; CTYPE_MIXED_BOGUS(1.00)[]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[ximalas.info,none]; IP_SCORE(-2.07)[ip: (-8.38), ipnet: 2001:700::/32(-1.26), asn: 224(-0.71), country: NO(-0.02)]; FREEMAIL_TO(0.00)[wp.pl]; FROM_EQ_ENVFROM(0.00)[]; SUBJECT_ENDS_QUESTION(1.00)[]; MIME_TRACE(0.00)[0:+,1:+]; ASN(0.00)[asn:224, ipnet:2001:700::/32, country:NO]; RCVD_TLS_LAST(0.00)[] Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 May 2020 08:03:49 -0000 On Sat, 2 May 2020 06:15+0200, Ireneusz Pluta wrote: > Hi group, > > (Sorry if this post appears twice. The first one, initially sent from another > email account, does not seem to appear.) > > I have (or rather had) a pool like this: > > $ sudo zpool status -v t >   pool: t >  state: UNAVAIL > status: One or more devices are faulted in response to IO failures. > action: Make sure the affected devices are connected, then run 'zpool clear'. >    see: http://illumos.org/msg/ZFS-8000-HC >   scan: none requested > config: > >         NAME                     STATE     READ WRITE CKSUM >         t                        UNAVAIL      0     0 0 >           mirror-0               UNAVAIL      0     0 0 >             4304281762335857859  REMOVED      0     0 0  was /dev/da5 >             1909766900844089131  REMOVED      0     0 0  was /dev/da10 > > errors: Permanent errors have been detected in the following files: > >         :<0x0> >         :<0x1b> >         t:<0x0> > > That was a temporary test pool. I forgot to destroy  or at least export the > pool before pulling these da5 and da10 drives out of the drivebay of the > server. Now it can't be exported or destroyed, the respective zpool operations > hust hang. How to get rid now of this pool, preferably without reboot? The da5 > and da10 are no longer available to be put back, as they have been already > moved elsewhere, and are now part of another pool. > > I guess the pool got stuck at the time of running > /etc/periodic/security/100.chksetuid, when find operation within it tried to > traverse into the mountpoint of the pool. > > The system is FreeBSD 11.2. > > Thanks > > Irek The pool might still be listed in /boot/zfs/zpool.cache. The only way I can think of to get rid of the old pool, is to delete this file and reboot. If you have more pools than your root pool, you should reboot to singleuser mode, mount the root fs read-write, import the remaining pools, and either exit the SUS shell or reboot. -- Trond. From owner-freebsd-questions@freebsd.org Sat May 2 08:28:02 2020 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 43EDF2C82B9 for ; Sat, 2 May 2020 08:28:02 +0000 (UTC) (envelope-from kuku@kukulies.org) Received: from mail.kukulies.org (mail.kukulies.org [116.203.115.43]) by mx1.freebsd.org (Postfix) with ESMTP id 49Dj1F41TXz3Qb8 for ; Sat, 2 May 2020 08:28:01 +0000 (UTC) (envelope-from kuku@kukulies.org) Received: from localhost (localhost [127.0.0.1]) by mail.kukulies.org (Postfix) with ESMTP id 576F110276A for ; Sat, 2 May 2020 10:28:00 +0200 (CEST) Received: from mail.kukulies.org ([127.0.0.1]) by localhost (mail.kukulies.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id EWNKgqaLXnXf for ; Sat, 2 May 2020 10:28:00 +0200 (CEST) Received: from [192.168.178.78] (p57A1FCC2.dip0.t-ipconnect.de [87.161.252.194]) by mail.kukulies.org (Postfix) with ESMTPSA id F0062102769 for ; Sat, 2 May 2020 10:27:59 +0200 (CEST) To: "freebsd-questions@freebsd.org" From: "Christoph P.U. Kukulies" Subject: sym0 weirdness Message-ID: <373ced34-1fe5-c385-e2c4-20cc6f46d9f0@kukulies.org> Date: Sat, 2 May 2020 10:27:58 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 X-Rspamd-Queue-Id: 49Dj1F41TXz3Qb8 X-Spamd-Bar: ++ Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of kuku@kukulies.org has no SPF policy when checking 116.203.115.43) smtp.mailfrom=kuku@kukulies.org X-Spamd-Result: default: False [2.78 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; DMARC_NA(0.00)[kukulies.org]; AUTH_NA(1.00)[]; RCPT_COUNT_ONE(0.00)[1]; RCVD_COUNT_THREE(0.00)[4]; IP_SCORE(0.29)[ipnet: 116.203.0.0/16(3.01), asn: 24940(-1.53), country: DE(-0.02)]; NEURAL_SPAM_MEDIUM(0.30)[0.304,0]; NEURAL_SPAM_LONG(0.88)[0.883,0]; MIME_HTML_ONLY(0.20)[]; R_SPF_NA(0.00)[]; TO_DN_EQ_ADDR_ALL(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:~]; ASN(0.00)[asn:24940, ipnet:116.203.0.0/16, country:DE]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_NO_TLS_LAST(0.10)[]; RECEIVED_SPAMHAUS_PBL(0.00)[194.252.161.87.khpj7ygk5idzvmvt5x4ziurxhy.zen.dq.spamhaus.net : 127.0.0.10] MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 May 2020 08:28:02 -0000