From owner-freebsd-questions@freebsd.org Tue Nov 6 13:51:08 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 790121124327 for ; Tue, 6 Nov 2018 13:51:08 +0000 (UTC) (envelope-from aimass@yabarana.com) Received: from mail-vs1-xe31.google.com (mail-vs1-xe31.google.com [IPv6:2607:f8b0:4864:20::e31]) (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 5850577228 for ; Tue, 6 Nov 2018 13:51:07 +0000 (UTC) (envelope-from aimass@yabarana.com) Received: by mail-vs1-xe31.google.com with SMTP id 124so7282609vsp.12 for ; Tue, 06 Nov 2018 05:51:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yabarana-com.20150623.gappssmtp.com; s=20150623; h=mime-version:from:date:message-id:subject:to; bh=zveWuo9wCmzH0YqAjJnLYtbiMR4dKEiGIioXDkeTy68=; b=Ywcq1q1HO1y4LLNMTaMZD4VfoHhbSxhUbRDPAtX+w3NyQtnwH19+X25ai/QLb2N2D2 eIJZVOMcN/LiDxr0OZa5G/H21UlGAKVsUTesPCeKhpKYUPh34kOnZCTNRN4c0P6cjCXt bp9HmdiXhMRgHf6g7/lr0fZS7vYoNLu20mum66KCSSIwGuCUPh5OpAVz+Xci2cUzQEwh wEZd0qOT2sPameXXBcXhxBqKv2+T0jFEq23KjO1kuOB+2J6fP6uHLj5ign0AAu2wtUWb 2dqrWTuTZC4xTXLkOYT65iIwsacXhaz5LEHbC4vDVhq/Sl2EkIAl3Jp42hN+zRGyDJt2 K3fQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=zveWuo9wCmzH0YqAjJnLYtbiMR4dKEiGIioXDkeTy68=; b=jXtWE1fAG1SIQ5FHWm7ffFJdPYNhTzqsPwu5xOQZn/RBTQw8B6iAv47aVubRoeD0AB Y3vS18R3zTTj9c7b1c+flSehvheqp2GQsUCvr2Qk/0Nri/S9r8Hva46lo4si4klf6SDE IKscSx9j7mT8APVN+ywez+D4+k7vnVxf44zKOGTRE7r7fj50CXR3P6vsBtOf51xQh7Me WXxPP3WN5pXluUEIgc7iwhNPnmTw2Vw9a7cGoZCpPJ92ppvGBm24hRACjpSa10mScMI2 eDzfNYKywD5HSCS/UExoTQdIUkXAuIQ3EsEMZC/vb7lLupM+Hh0AubsUaJRl4ZPG1bQA vaMA== X-Gm-Message-State: AGRZ1gLup+QLb2rj1KdUVlMh6y3HlCr8uM7pcK4Qi3DhAT4STZCnGEwl NwC6IPo/pcEa4GY7oDcVVb4bPRIiPlvva0bT8Kvuhxd3c6k= X-Google-Smtp-Source: AJdET5fQ4P+W+OBuxpmfkhxO9T+JK7S1HkFRrXtsAw8/gVskbrzqkd2NGb8TYNJvsbZpII8wNx0PkZL/cTJWC+9I9IY= X-Received: by 2002:a67:a983:: with SMTP id m3mr10273646vsh.19.1541512266587; Tue, 06 Nov 2018 05:51:06 -0800 (PST) MIME-Version: 1.0 From: Alejandro Imass Date: Tue, 6 Nov 2018 08:50:55 -0500 Message-ID: Subject: ZFS re attaching failed device to pool To: FreeBSD Questions X-Rspamd-Queue-Id: 5850577228 X-Spamd-Result: default: False [-3.53 / 200.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.81)[-0.813,0]; R_DKIM_ALLOW(-0.20)[yabarana-com.20150623.gappssmtp.com]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; DMARC_NA(0.00)[yabarana.com]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-0.94)[-0.940,0]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[yabarana-com.20150623.gappssmtp.com:+]; MX_GOOD(-0.01)[alt1.aspmx.l.google.com,aspmx.l.google.com,aspmx2.googlemail.com,alt2.aspmx.l.google.com,aspmx3.googlemail.com]; RCVD_IN_DNSWL_NONE(0.00)[1.3.e.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.72)[-0.723,0]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; IP_SCORE(-0.54)[ipnet: 2607:f8b0::/32(-1.21), asn: 15169(-1.42), 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" 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 13:51:08 -0000 Dear Beasties, I have a simple 2 disk pool and one disk started failing and zfs put it in a UNAVAIL status. I shut down the server and took it apart, cleaned it and removed a third device that was on Sata Port C which I think may have been the culprit of the bus fault. This third disk was unrelated to the pool and was an older disk which just had some backup data and was running on an old enclosure with the SATA wires hanging out, etc. you know, those 5 minute hacks that you forget about.. After rebooting, the BIOS saw the failed device and the system booted fine. I ran a smartctl long test on the failed device which took like 7 hours and the report shows no errors and the device is like new. So now I want to tell ZFS to re-attach the device but the documentation is not too clear about this. All the docs, and example I find is physically replacing with another device, not the same one. My question is almost identical to this one which has not been answered either: https://forums.freebsd.org/threads/re-attaching-failed-device-to-pool.66027/ So: can I re-attach by running the replace command on the SAME device? I haven't tried it, but from the question above it seems that it won't let me. Besides I don't want to screw up so if anyone has done this before pls. advise how to proceed in these cases. TIA! -- Alex