Date: Mon, 24 Aug 2020 03:07:18 -0700 From: David Christensen <dpchrist@holgerdanske.com> To: freebsd-questions@freebsd.org Subject: Re: adding disk to zfs mirror after removal of disk Message-ID: <338afe71-1e76-16fc-8315-d38785438248@holgerdanske.com> In-Reply-To: <20200824020207.GB17289@bastion.zyxst.net> References: <20200821230206.GA56267@bastion.zyxst.net> <ab5857f4-cdc7-b589-1b39-5d2fb550ad5b@holgerdanske.com> <20200822050431.GA17289@bastion.zyxst.net> <9274f688-2897-8d0b-d799-100316684b06@holgerdanske.com> <20200824020207.GB17289@bastion.zyxst.net>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?338afe71-1e76-16fc-8315-d38785438248>