From owner-freebsd-questions@freebsd.org Tue Mar 24 20:45:47 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 63A43269F38 for ; Tue, 24 Mar 2020 20:45:47 +0000 (UTC) (envelope-from dpchrist@holgerdanske.com) Received: from holgerdanske.com (holgerdanske.com [IPv6:2001:470:0:19b::b869:801b]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "xray.he.net", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 48n3DL1gThz4FYh for ; Tue, 24 Mar 2020 20:45:37 +0000 (UTC) (envelope-from dpchrist@holgerdanske.com) Received: from 99.100.19.101 ([99.100.19.101]) by holgerdanske.com with ESMTPSA (ECDHE-RSA-AES128-GCM-SHA256:TLSv1.2:Kx=ECDH:Au=RSA:Enc=AESGCM(128):Mac=AEAD) (SMTP-AUTH username dpchrist@holgerdanske.com, mechanism PLAIN) for ; Tue, 24 Mar 2020 13:45:26 -0700 Subject: Re: replace disk in zpool To: freebsd-questions@freebsd.org References: From: David Christensen Message-ID: <18a94704-5411-3b44-a525-2ae50121a467@holgerdanske.com> Date: Tue, 24 Mar 2020 13:45:25 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 48n3DL1gThz4FYh X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of dpchrist@holgerdanske.com has no SPF policy when checking 2001:470:0:19b::b869:801b) smtp.mailfrom=dpchrist@holgerdanske.com X-Spamd-Result: default: False [-2.66 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; URIBL_BLOCKED(0.00)[illumos.org.multi.uribl.com]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; IP_SCORE(-1.66)[ipnet: 2001:470::/32(-4.66), asn: 6939(-3.59), country: US(-0.05)]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; AUTH_NA(1.00)[]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-0.98)[-0.976,0]; DMARC_NA(0.00)[holgerdanske.com]; NEURAL_HAM_MEDIUM(-0.92)[-0.923,0]; R_SPF_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:6939, ipnet:2001:470::/32, country:US]; 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 20:45:47 -0000 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