From owner-freebsd-questions@freebsd.org Mon Aug 24 10:07:31 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 C95413B8B69 for ; Mon, 24 Aug 2020 10:07:31 +0000 (UTC) (envelope-from dpchrist@holgerdanske.com) Received: from holgerdanske.com (holgerdanske.com [IPv6:2001:470:0:19b::b869:801b]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "www.holgerdanske.com", Issuer "www.holgerdanske.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4BZnqQ4VHvz4Wtj for ; Mon, 24 Aug 2020 10:07:30 +0000 (UTC) (envelope-from dpchrist@holgerdanske.com) Received: from dpchrist-mbp.tracy.holgerdanske.com (99-100-19-101.lightspeed.frokca.sbcglobal.net [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 ; Mon, 24 Aug 2020 03:07:19 -0700 Subject: Re: adding disk to zfs mirror after removal of disk To: freebsd-questions@freebsd.org References: <20200821230206.GA56267@bastion.zyxst.net> <20200822050431.GA17289@bastion.zyxst.net> <9274f688-2897-8d0b-d799-100316684b06@holgerdanske.com> <20200824020207.GB17289@bastion.zyxst.net> From: David Christensen Message-ID: <338afe71-1e76-16fc-8315-d38785438248@holgerdanske.com> Date: Mon, 24 Aug 2020 03:07:18 -0700 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:60.0) Gecko/20100101 Thunderbird/60.9.1 MIME-Version: 1.0 In-Reply-To: <20200824020207.GB17289@bastion.zyxst.net> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4BZnqQ4VHvz4Wtj 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 [1.28 / 15.00]; RCVD_TLS_ALL(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_SPAM_SHORT(0.38)[0.378]; 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]; ARC_NA(0.00)[]; DMARC_NA(0.00)[holgerdanske.com]; R_SPF_NA(0.00)[no SPF record]; 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]; RCVD_COUNT_TWO(0.00)[2]; MAILMAN_DEST(0.00)[freebsd-questions] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 24 Aug 2020 10:07:31 -0000 On 8/23/20 7:02 PM, tech-lists wrote: > In the end, I deleted the pool and re-created it ... Deleting and recreating definitely has its advantages. > Seems what I should have done is zpool replace ada3 ada3 after fixing the > failing disk, in order to retain the mirror. The "diskid..." nodes incorporate drive make, model, and serial number, which is appealing because the node name is machine-generated (precluding typographic errors), unique, and matches the physical label on the drive. This is probably the best answer if you have a lot of disks. So (see [1]): # zpool replace wd ada3 diskid/DISK-WD-WCC... But deleting the pool and starting over gives you the opportunity to create and use human-friendly labels. I have a dozen or so data and backup disks, and I use GPT with labels. It is nice to have multiple good options. :-) > Funny you mention this, I'm doing ... cvs too ... on a dedicated machine. A networked version control system is very useful for system administration, among other things. I don't know how people get by without one. My CVS repository is in a jail on my SOHO server, along side a jail for Samba. Every time I work on that machine, I lose CVS support. I have contemplated moving CVS to my old laptop for just this reason. But what I really want is to configure another server identically and set up HA for both services. > thanks for your help, YW. I'm glad it worked out. :-) David [1] https://docs.oracle.com/cd/E19253-01/819-5461/gbcet/index.html