From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by lists.proxmox.com (Postfix) with ESMTPS id 9BA6986B5D for ; Mon, 27 Dec 2021 11:10:43 +0100 (CET) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 8D2C8180B0 for ; Mon, 27 Dec 2021 11:10:13 +0100 (CET) Received: from picard.linux.it (picard.linux.it [IPv6:2001:1418:10:5::2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by firstgate.proxmox.com (Proxmox) with ESMTPS id 17DC9180A5 for ; Mon, 27 Dec 2021 11:10:13 +0100 (CET) Received: by picard.linux.it (Postfix, from userid 10) id 494193C65EF; Mon, 27 Dec 2021 11:10:06 +0100 (CET) Received: from news by eraldo.lilliput.linux.it with local (Exim 4.89) (envelope-from ) id 1n1mtF-0000Tk-RI for pve-user@lists.proxmox.com; Mon, 27 Dec 2021 11:06:01 +0100 From: Marco Gaiarin Date: Mon, 27 Dec 2021 11:03:24 +0100 Organization: Il gaio usa sempre TIN per le liste, fallo anche tu!!! Message-ID: X-Trace: eraldo.lilliput.linux.it 1640599417 1145 192.168.1.24 (27 Dec 2021 10:03:37 GMT) X-Mailer: tin/2.4.4-20191224 ("Millburn") (Linux/5.4.0-91-generic (x86_64)) X-Gateway-System: SmartGate 1.4.5 To: pve-user@lists.proxmox.com X-SPAM-LEVEL: Spam detection results: 0 AWL 0.013 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% JMQ_SPF_NEUTRAL 0.5 SPF set to ?all KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record Subject: [PVE-User] Correct substitution of a ZFS failed disk... X-BeenThere: pve-user@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox VE user list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Dec 2021 10:10:43 -0000 I've found many useful and relevant information about ZFS and boot loader, but not (even of wiki) a simple guide on how substitute a faled disk in a ZFS boot pool (for sake of simplicity, suppsing a two-disk ZFS mirror). Surely this will involve: 1) set the disk as offline: zpool offline rpool-data 2) add the new disk: zpool replace rpool-data /dev/xxxx 3) reinstall the bootloader on new disk: proxmox-boot-tool format /dev/yyyyy proxmox-boot-tool init /dev/yyyyy But... in what order?! I suppose i need to partition the disk before using 'zpool replace'... 'proxmox-boot-tool' take care of that?! Thanks. -- Worrying about case in a Windows (AD) context is one of the quickest paths to insanity. (Patrick Goetz)