From owner-freebsd-questions@freebsd.org Tue Nov 6 18:16:53 2018 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B0A5E112C541 for ; Tue, 6 Nov 2018 18:16:53 +0000 (UTC) (envelope-from aimass@yabarana.com) Received: from mail-vk1-xa31.google.com (mail-vk1-xa31.google.com [IPv6:2607:f8b0:4864:20::a31]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 778FC84A9C for ; Tue, 6 Nov 2018 18:16:51 +0000 (UTC) (envelope-from aimass@yabarana.com) Received: by mail-vk1-xa31.google.com with SMTP id h128so3095502vkg.11 for ; Tue, 06 Nov 2018 10:16:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yabarana-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=rvBdTjdOUsSE7KvMkpmYemM4HnK5ruEznmRxJ8DLM24=; b=H/6yVkRdLygeA74+3uWbBNhc0EzKIxRuOCa98qowzpqjOZSMhhjFNBLXHaEXYlyHrF a70iFJ7m/xCHppsIr+sp8gaQT6jmshsozbkqD5IYMs/ImCwkRqlwwrQ6ZZJ53GFKH3IW RfaTtlCt4df7Bn409TJmd/te9AK8lIpRzKkIUThC13ySjJrXlV4LGZENitbr66WDhngt g9+KHN3dbazlaL3856YkWzZugbr+bx2h6JHQGHjKRKvhzNyOiT2QmOimxWq3OKigVPBZ yjKSZtByPGtiwXcX799Xh+3nalRZBzC7p+7DF/AVwbn3O3krpO44Hr49l4AAHcrGW0dQ 9c9Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=rvBdTjdOUsSE7KvMkpmYemM4HnK5ruEznmRxJ8DLM24=; b=YhXSU85DpX+ePbZzYG7ay6yjAbNI/vbSyS2jsJ7UiJiTn7tMLXJxR+AgmSwKOwjgIp WMhnoTmygRDu9qUrCNDrDfh53+jVn1asWtnT3QIdOIo9SKZpnXYh1nl2Zyycwnt22GRz tEEs39wnkEU9HP6rImWT7McznpcoI6Q1n3ReUQzmd1lGksA49JxRl8nG2BB7VDUxX+OV nzVG8aIXrKffem/ZCDGTf8yQT8iGCYOJiYObfwBiST+gXacjmGVY5KodT8I/HrWWBaMO H74KdkN0VSyLXi2USjVM0VzaYM+fn9ajudqEcokQq/G1Tfm41S29edmqWAvbirgkyYdW xXUA== X-Gm-Message-State: AGRZ1gLhCvuVOURjUkDtMrm29vozZG/sNPufB5VXzajROAyYA10b8YsN frvxzc/vKS9ZX/kWpp/NydVksr4aq5YjjzVgSZhxP9FLPeU= X-Google-Smtp-Source: AJdET5f4g+3CFC+Muj8zmc3xOUHUgEpCrKaL4Uczab7WOXqeq+47hr8G1xJHdr/rggfyhYiQ0/RCPYGl2guuFG8Tte0= X-Received: by 2002:a1f:60c9:: with SMTP id u192mr2989743vkb.36.1541528210884; Tue, 06 Nov 2018 10:16:50 -0800 (PST) MIME-Version: 1.0 References: <4C7379FD-8646-4246-9CD0-AC3B281B32C9@lists.vlassakakis.de> In-Reply-To: <4C7379FD-8646-4246-9CD0-AC3B281B32C9@lists.vlassakakis.de> From: Alejandro Imass Date: Tue, 6 Nov 2018 13:16:40 -0500 Message-ID: Subject: Re: ZFS re attaching failed device to pool To: freebsd-en@lists.vlassakakis.de Cc: FreeBSD Questions X-Rspamd-Queue-Id: 778FC84A9C X-Spamd-Result: default: False [-3.26 / 200.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.97)[-0.973,0]; R_DKIM_ALLOW(-0.20)[yabarana-com.20150623.gappssmtp.com]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; NEURAL_HAM_LONG(-0.96)[-0.965,0]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; DMARC_NA(0.00)[yabarana.com]; TO_MATCH_ENVRCPT_SOME(0.00)[]; MX_GOOD(-0.01)[cached: alt1.aspmx.l.google.com]; DKIM_TRACE(0.00)[yabarana-com.20150623.gappssmtp.com:+]; RCVD_IN_DNSWL_NONE(0.00)[1.3.a.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; NEURAL_HAM_SHORT(-0.25)[-0.254,0]; RCPT_COUNT_TWO(0.00)[2]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; IP_SCORE(-0.56)[ipnet: 2607:f8b0::/32(-1.29), asn: 15169(-1.41), country: US(-0.08)]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; RCVD_COUNT_TWO(0.00)[2] X-Rspamd-Server: mx1.freebsd.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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: Tue, 06 Nov 2018 18:16:53 -0000 On Tue, Nov 6, 2018 at 9:05 AM Philipp Vlassakakis < freebsd-en@lists.vlassakakis.de> wrote: > Hi Alex, > > Did you try =E2=80=9Ezpool online zroot NAME-OF-DEGRADED-DISK=E2=80=9C an= d =E2=80=9Ezpool zroot > clear=E2=80=9C ? > > Regards, > Philipp > Hey Phillip, thanks for the suggestion. I just tried it and it says: Device xxx onlined but remains in faulted state And the "Action"suggests to run replace. Then I tried clear and waited for the scrub to finish bu the device still says UNAVAIL. So I went ahead and RTFM again and did "detach" and the "add"like the handbook suggests. Now the pool says ONLINE. BUT, why is the first disk labeled as "p3" and not the second one??? # zpool status -v pool: zroot state: ONLINE scan: scrub repaired 0 in 0h6m with 0 errors on Tue Nov 6 07:24:56 2018 config: NAME STATE READ WRITE CKSUM zroot ONLINE 0 0 0 diskid/DISK-WD-WCC4N2YTRX40p3 ONLINE 0 0 0 diskid/DISK-WD-WCC4N6XZY8C2 ONLINE 0 0 0 # zpool history History for 'zroot': 2017-06-30.21:38:33 zpool create -o altroot=3D/mnt -O compress=3Dlz4 -O atime=3Doff -m none -f zroot mirror ada0p3 ada1p3 2017-06-30.21:38:33 zfs create -o mountpoint=3Dnone zroot/ROOT 2017-06-30.21:38:33 zfs create -o mountpoint=3D/ zroot/ROOT/default 2017-06-30.21:38:33 zfs create -o mountpoint=3D/tmp -o exec=3Don -o setuid= =3Doff zroot/tmp 2017-06-30.21:38:33 zfs create -o mountpoint=3D/usr -o canmount=3Doff zroot= /usr 2017-06-30.21:38:33 zfs create zroot/usr/home 2017-06-30.21:38:34 zfs create -o setuid=3Doff zroot/usr/ports 2017-06-30.21:38:34 zfs create zroot/usr/src 2017-06-30.21:38:34 zfs create -o mountpoint=3D/var -o canmount=3Doff zroot= /var 2017-06-30.21:38:34 zfs create -o exec=3Doff -o setuid=3Doff zroot/var/audi= t 2017-06-30.21:38:34 zfs create -o exec=3Doff -o setuid=3Doff zroot/var/cras= h 2017-06-30.21:38:34 zfs create -o exec=3Doff -o setuid=3Doff zroot/var/log 2017-06-30.21:38:35 zfs create -o atime=3Don zroot/var/mail 2017-06-30.21:38:35 zfs create -o setuid=3Doff zroot/var/tmp 2017-06-30.21:38:35 zfs set mountpoint=3D/zroot zroot 2017-06-30.21:38:35 zpool set bootfs=3Dzroot/ROOT/default zroot 2017-06-30.21:38:35 zpool export zroot 2017-06-30.21:38:37 zpool import -o altroot=3D/mnt zroot 2017-06-30.21:38:42 zpool set cachefile=3D/mnt/boot/zfs/zpool.cache zroot 2018-11-06.05:18:34 zpool clear zroot 2018-11-06.07:13:34 zpool online zroot /dev/diskid/DISK-WD-WCC4N6XZY8C2 2018-11-06.07:18:01 zpool clear zroot 2018-11-06.07:35:55 zpool detach zroot /dev/diskid/DISK-WD-WCC4N6XZY8C2 2018-11-06.07:36:24 zpool add zroot /dev/diskid/DISK-WD-WCC4N6XZY8C2 > > On 6. Nov 2018, at 14:53, Alejandro Imass wrote: > > > >> On Tue, Nov 6, 2018 at 8:50 AM Alejandro Imass > wrote: > >> > >> Dear Beasties, > >> > >> I have a simple 2 disk pool and one disk started failing and zfs put i= t > in > > [...] > >