From owner-freebsd-questions@freebsd.org Sat May 2 04:17:24 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 A33A12BF4DD for ; Sat, 2 May 2020 04:17:24 +0000 (UTC) (envelope-from ipluta@wp.pl) Received: from mx3.wp.pl (mx3.wp.pl [212.77.101.9]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 49DbS32cqgz4dB2 for ; Sat, 2 May 2020 04:17:23 +0000 (UTC) (envelope-from ipluta@wp.pl) Received: (wp-smtpd smtp.wp.pl 16346 invoked from network); 2 May 2020 06:17:20 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wp.pl; s=1024a; t=1588393040; bh=BYlMFMTkYrx2GQnvjYTFvHqA6r/BqDbdrRWEdAFV5CA=; h=From:Subject:To; b=ORj9d6yMUSC1FcfbAFhqaPsPraVdO7ZfJKkL5L0260WMJuQpWGDxdxjDnKJkYDA+P JnC0UoflP1raXzE4/Mh4ywgA6C2WWTU339aEo+tyYAw0slzmZy4Y/7OJpo2pbnwmJu +zzO4UppU/ZLZmvZwyrolaq7eRlREqiMyi71HQw8= Received: from aayy197.neoplus.adsl.tpnet.pl (HELO [10.0.0.81]) (ipluta@wp.pl@[83.6.136.197]) (envelope-sender ) by smtp.wp.pl (WP-SMTPD) with ECDHE-RSA-AES256-GCM-SHA384 encrypted SMTP for ; 2 May 2020 06:17:20 +0200 From: Ireneusz Pluta Subject: How to get rid of an unavailable pool? To: freebsd-questions@freebsd.org Message-ID: <32264a1f-3bcf-9d74-603d-c201bffd256c@wp.pl> Date: Sat, 2 May 2020 06:15:00 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: pl X-WP-MailID: f7b2664f07c1520104c14f2ca53826f3 X-WP-AV: skaner antywirusowy Poczty Wirtualnej Polski X-WP-SPAM: NO 0000001 [MRJA] X-Rspamd-Queue-Id: 49DbS32cqgz4dB2 X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=wp.pl header.s=1024a header.b=ORj9d6yM; dmarc=pass (policy=none) header.from=wp.pl; spf=pass (mx1.freebsd.org: domain of ipluta@wp.pl designates 212.77.101.9 as permitted sender) smtp.mailfrom=ipluta@wp.pl X-Spamd-Result: default: False [-2.00 / 15.00]; R_SPF_ALLOW(-0.20)[+ip4:212.77.96.0/19]; FREEMAIL_FROM(0.00)[wp.pl]; TO_DN_NONE(0.00)[]; DKIM_TRACE(0.00)[wp.pl:+]; DMARC_POLICY_ALLOW(-0.50)[wp.pl,none]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; SUBJECT_ENDS_QUESTION(1.00)[]; FREEMAIL_ENVFROM(0.00)[wp.pl]; ASN(0.00)[asn:12827, ipnet:212.77.101.0/24, country:PL]; MID_RHS_MATCH_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[wp.pl.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[wp.pl:s=1024a]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; IP_SCORE_FREEMAIL(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; IP_SCORE(0.00)[ip: (-7.54), ipnet: 212.77.101.0/24(-3.95), asn: 12827(-2.85), country: PL(0.06)]; RCVD_IN_DNSWL_NONE(0.00)[9.101.77.212.list.dnswl.org : 127.0.5.0]; RCVD_TLS_LAST(0.00)[]; RWL_MAILSPIKE_POSSIBLE(0.00)[9.101.77.212.rep.mailspike.net : 127.0.0.17]; RCVD_COUNT_TWO(0.00)[2] 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 04:17:24 -0000 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