Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 22 Aug 2020 13:01:12 -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:  <8cbeebd6-dd9b-a1ae-0dca-051da612c552@holgerdanske.com>
In-Reply-To: <913cb7b3-f90b-44f5-5e80-4766b92d788f@cleopatre.mooo.com>
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> <913cb7b3-f90b-44f5-5e80-4766b92d788f@cleopatre.mooo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2020-08-22 06:17, Antoine Vu-Ngoc wrote:
> On 22/08/2020 13:06, David Christensen wrote:

>> On 2020-08-21 22:04, tech-lists wrote:

>>> # zpool status wd
>>>    pool: wd
>>>   state: ONLINE
>>>    scan: scrub repaired 0 in 0 days 01:00:27 with 0 errors on Fri Aug 21
>>> 11:38:48 2020
>>> config:
>>>
>>>          NAME                           STATE     READ WRITE CKSUM
>>>          wd                             ONLINE       0     0 0
>>>            diskid/DISK-WD-WCC131097443  ONLINE       0     0 0
>>>            ada3                         ONLINE       0     0 0
>>>
>>> errors: No known data errors
>>>
>>> The disks are 2 x western digital black 4TB. The disk that was removed from
>>> the mirror is ada3. The didkid/string is aka ada2. Ideally i'd like its name
>>> changed back from that string to ada2 as well.

>> I don't know how you obtained the "diskid/..." name ...

> Another guess: ada2 has been "gparted", ada3 not. check with command gpart show
> adax for each disk involved Antoine

STFW I found this forum post:

 
https://www.reddit.com/r/freebsd/comments/f1wmxi/alternative_to_devdiskbyid_for_zfs/


On my system:

2020-08-22 12:51:34 toor@f3 ~
# freebsd-version; uname -a
12.1-RELEASE-p7
FreeBSD f3.tracy.holgerdanske.com 12.1-RELEASE-p7 FreeBSD 
12.1-RELEASE-p7 GENERIC  amd64


RTFM I found glabel(8). "diskid" appears to be enabled by default.


David



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?8cbeebd6-dd9b-a1ae-0dca-051da612c552>