From owner-freebsd-questions@freebsd.org Tue Mar 24 21:15: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 8DF1426AD62 for ; Tue, 24 Mar 2020 21:15:49 +0000 (UTC) (envelope-from FreeBSD@chroot.pl) Received: from mail.apsz.com.pl (mail.apsz.com.pl [91.217.18.46]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 48n3ty0Tnbz4R5t for ; Tue, 24 Mar 2020 21:15:36 +0000 (UTC) (envelope-from FreeBSD@chroot.pl) Received: from chroot.pl (89-74-178-152.dynamic.chello.pl [89.74.178.152]) by mail.apsz.com.pl (Postfix) with ESMTPS id 6C8A0E745E; Tue, 24 Mar 2020 22:15:24 +0100 (CET) Subject: Re: replace disk in zpool DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=chroot.pl; s=mail; t=1585084524; bh=jd2aHzbs+JDskwjCI31KRMhsCIIHGRDygIe+KFboG3k=; h=Subject:To:References:From:Cc:Date:In-Reply-To; b=JnSxJUVJ3HYqpARJ3FgYmQC0Ja/13nyWr9Eu3lwCxzdQMfQn7doCHsGZMd63hf3Lj XmKfWB73GRsowWXNBj+jbvIjxGLd+RD9DuoJF/PatlRZtYF9KfkLaInJzkhZIgm4ux F3vY0HkR9t0b/IZYxrFqS+7GDuSWJwoOkUuynd5o8B/YOT+ERl7PMdHL2CrD0w6Nht /dYq5Fk/sZ0WbYz5s/AkHmy3moR45zheClqGhsJKThwK04bnyC6zmSuFsmnuelPJ0z f1rWQ1jofhhjxPpmbI4ocsg7OYt3JW305Rzhjt/u/B2rA/DEk6qxGh0GsGQ55MUwx1 KWaAJPtOS9wUw== To: David Christensen References: <18a94704-5411-3b44-a525-2ae50121a467@holgerdanske.com> From: Lukasz Cc: freebsd-questions@freebsd.org Message-ID: Date: Tue, 24 Mar 2020 22:15:08 +0100 User-Agent: WebMail MIME-Version: 1.0 In-Reply-To: <18a94704-5411-3b44-a525-2ae50121a467@holgerdanske.com> Content-Type: text/plain; charset=utf-8 Content-Language: pl-PL Content-Transfer-Encoding: 8bit X-Spam-Status: Yes, score=4.1 required=4.0 tests=BAYES_50,KHOP_HELO_FCRDNS, RDNS_DYNAMIC autolearn=no autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on mail.apsz.com.pl X-Virus-Scanned: clamav-milter 0.102.2 at mail.apsz.com.pl X-Virus-Status: Clean X-Spam-Flag: YES X-Spam-Report: * 2.0 BAYES_50 BODY: Bayes spam probability is 40 to 60% * [score: 0.5000] * 1.7 RDNS_DYNAMIC Delivered to internal network by host with * dynamic-looking rDNS * 0.4 KHOP_HELO_FCRDNS Relay HELO differs from its IP's reverse DNS X-Spam-Level: **** X-Rspamd-Queue-Id: 48n3ty0Tnbz4R5t X-Spamd-Bar: ++++ Authentication-Results: mx1.freebsd.org; dkim=pass header.d=chroot.pl header.s=mail header.b=JnSxJUVJ; dmarc=pass (policy=none) header.from=chroot.pl; spf=pass (mx1.freebsd.org: domain of FreeBSD@chroot.pl designates 91.217.18.46 as permitted sender) smtp.mailfrom=FreeBSD@chroot.pl X-Spamd-Result: default: False [4.37 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.11)[-0.110,0]; R_DKIM_ALLOW(-0.20)[chroot.pl:s=mail]; SPAM_FLAG(5.00)[]; XM_UA_NO_VERSION(0.01)[]; FROM_HAS_DN(0.00)[]; URIBL_BLOCKED(0.00)[chroot.pl.multi.uribl.com,illumos.org.multi.uribl.com]; R_SPF_ALLOW(-0.20)[+ip4:91.217.18.46]; MIME_GOOD(-0.10)[text/plain]; IP_SCORE(0.01)[country: PL(0.06)]; TO_DN_SOME(0.00)[]; GREYLIST(0.00)[pass,meta]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[chroot.pl:+]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[46.18.217.91.list.dnswl.org : 127.0.10.0]; DMARC_POLICY_ALLOW(-0.50)[chroot.pl,none]; NEURAL_SPAM_LONG(0.46)[0.456,0]; RECEIVED_SPAMHAUS_PBL(0.00)[152.178.74.89.khpj7ygk5idzvmvt5x4ziurxhy.zen.dq.spamhaus.net : 127.0.0.11]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:51426, ipnet:91.217.18.0/23, country:PL]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_TLS_ALL(0.00)[]; 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: Tue, 24 Mar 2020 21:15:50 -0000 Ohh… I forgot mention: it's 12.1-p3 # zpool status -v mypool pool: mypool state: DEGRADED status: One or more devices has experienced an error resulting in data corruption. Applications may be affected. action: Restore the file in question if possible. Otherwise restore the entire pool from backup. see: http://illumos.org/msg/ZFS-8000-8A scan: resilvered 180G in 0 days 16:00:55 with 2 errors on Sun Mar 22 05:18:46 2020 config: NAME STATE READ WRITE CKSUM mypool DEGRADED 0 0 2 raidz1-0 DEGRADED 0 0 4 diskid/DISK-WD-WMC1F0521131 ONLINE 0 0 0 replacing-1 DEGRADED 0 0 0 15838717335844820448 UNAVAIL 0 0 0 was /dev/diskid/DISK-WD-WCC130964640 diskid/DISK-K4JG5D2B ONLINE 0 0 0 ada6 ONLINE 0 0 0 ada1 ONLINE 0 0 0 diskid/DISK-WD-WCC130650055 ONLINE 0 0 0 errors: Permanent errors have been detected in the following files: mypool/XXXXXXXXXXXX Yes, I did exacly as you wrote - removed the failed drive, installed a replacement drive, and issued a 'zpool replace' command. I tried this way to: I disabled running services in that pool, unmounted and mounted it again. Even I exported/imported that pool. It has no readonly property. Of course I have a backup. On 3/24/20 21:45, David Christensen wrote: > On 2020-03-24 11:05, Lukasz wrote: >> Hallo, >> >> I replaced one disk in my raidz1 pool, after that new one was resilvered >> but the entire pool is still in degraded state. In earlier FreeBSD >> versions zpool always returned to online state. Am I missing something >> or have I to do something additional? >> >> # zpool status >>    pool: mypool >>   state: DEGRADED >> status: One or more devices has experienced an error resulting in data >>          corruption.  Applications may be affected. >> action: Restore the file in question if possible.  Otherwise restore the >>          entire pool from backup. >>     see: http://illumos.org/msg/ZFS-8000-8A >>    scan: resilvered 180G in 0 days 16:00:55 with 2 errors on Sun Mar 22 >> 05:18:46 2020 >> config: >> >>          NAME                             STATE     READ WRITE CKSUM >>          mypool                           DEGRADED     0     0     2 >>            raidz1-0                       DEGRADED     0     0     4 >>              diskid/DISK-WD-WMC1F0521131  ONLINE       0     0     0 >>              replacing-1                  DEGRADED     0     0     0 >>                15838717335844820448       UNAVAIL      0     0     0  was >> /dev/diskid/DISK-WD-WCC130964640 >>                diskid/DISK-K4JG5D2B       ONLINE       0     0     0 >>              ada6                         ONLINE       0     0     0 >>              ada1                         ONLINE       0     0     0 >>              diskid/DISK-WD-WCC130650055  ONLINE       0     0     0 >> >> errors: 1 data errors, use '-v' for a list >> >> Regards, >> Lukasz > > > Please run the following commands and paste the console session into a reply: > > # freebsd-version ; uname -a > > # zpool status -v mypool > > > So, you had 5 drives in RAIDZ1, one died, you removed the failed drive, you installed a replacement drive, and you issued a 'zpool replace' command? > > > Have you disabled services that use datasets in that pool? > > > Have you set the readonly property on those datasets? > > > Do you have a backup? > > > David > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"