Hi,
I use 11.2-RELEASE and I am reading the Handbook's chapter about ZFS.
In particular, I am reading the paragraph 19.3.8 ("Self-Healing").
In such example, command
This is my scenario:
Now I use
After this, it seems ada1 has his name changed:
Even after scrub:
It seems this side effect isn't considered in Handbook.
I am aware that when data is corrupted in real scenarios, it is unlikely that very first bytes in a disk are altered.
Anyway, I wondering if there is a way to rename diskid/DISK-VB3b3a7569-72b00eda to ada1 in this case.
Thank you!
I use 11.2-RELEASE and I am reading the Handbook's chapter about ZFS.
In particular, I am reading the paragraph 19.3.8 ("Self-Healing").
In such example, command
dd
is used to simulate some data corruption on one of two disks.This is my scenario:
Code:
root@bsdscratch:~ # zpool import
pool: mypool
id: 4003180980568308002
state: ONLINE
action: The pool can be imported using its name or numeric identifier.
config:
mypool ONLINE
mirror-0 ONLINE
ada1 ONLINE
ada2 ONLINE
Now I use
dd
:
Code:
root@bsdscratch:~ # dd if=/dev/random of=/dev/ada1 bs=1m count=200
After this, it seems ada1 has his name changed:
Code:
root@bsdscratch:~ # zpool status
pool: mypool
state: ONLINE
status: One or more devices has experienced an unrecoverable error. An
attempt was made to correct the error. Applications are unaffected.
action: Determine if the device needs to be replaced, and clear the errors
using 'zpool clear' or replace the device with 'zpool replace'.
see: http://illumos.org/msg/ZFS-8000-9P
scan: none requested
config:
NAME STATE READ WRITE CKSUM
mypool ONLINE 0 0 0
mirror-0 ONLINE 0 0 0
diskid/DISK-VB3b3a7569-72b00eda ONLINE 0 0 6
ada2 ONLINE 0 0 0
errors: No known data errors
Even after scrub:
Code:
root@bsdscratch:~ # zpool scrub mypool
root@bsdscratch:~ # zpool status
pool: mypool
state: ONLINE
status: One or more devices has experienced an unrecoverable error. An
attempt was made to correct the error. Applications are unaffected.
action: Determine if the device needs to be replaced, and clear the errors
using 'zpool clear' or replace the device with 'zpool replace'.
see: http://illumos.org/msg/ZFS-8000-9P
scan: scrub repaired 9.50K in 0h0m with 0 errors on Sun Nov 4 13:17:23 2018
config:
NAME STATE READ WRITE CKSUM
mypool ONLINE 0 0 0
mirror-0 ONLINE 0 0 0
diskid/DISK-VB3b3a7569-72b00eda ONLINE 0 0 10
ada2 ONLINE 0 0 0
errors: No known data errors
It seems this side effect isn't considered in Handbook.
I am aware that when data is corrupted in real scenarios, it is unlikely that very first bytes in a disk are altered.
Anyway, I wondering if there is a way to rename diskid/DISK-VB3b3a7569-72b00eda to ada1 in this case.
Thank you!