adding disk to zfs mirror after removal of disk

David Christensen dpchrist at holgerdanske.com
Sat Aug 22 20:01:27 UTC 2020


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 at 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


More information about the freebsd-questions mailing list