ZFS pool HDD fails

omar.migs

New Member
Feb 24, 2024
12
2
3
Hello,
Yesterday i discovered by a complete coincidence that one of the drives in ZFS pool has completely failed without any prior notice. by a complete luck i want to check something in ZFS tab and i saw one of the pools is degraded.
i go today a new 4 TB HDD and installed it, then i ran this command :
zpool replace primary /dev/disk/by-id/ata-ST4000VN006-3CW104_ZW60SLSL-part1 /dev/sdd

the new HDD after resilvering is online and everything is fine again, but i noticed that that the drive reference is different from, here is the zpool status result
root@pve:~# zpool status
pool: primary
state: ONLINE
scan: resilvered 869G in 04:19:35 with 0 errors on Sun Jun 23 05:12:41 2024
config:


NAME STATE READ WRITE CKSUM
primary ONLINE 0 0 0
mirror-0 ONLINE 0 0 0
ata-ST4000VN006-3CW104_ZW60SM7B ONLINE 0 0 0
sdd ONLINE 0 0 0


errors: No known data errors

My question is. in the zfs tab the first drive which is the old one is referenced like this : /dev/disk/by-id/ata-ST4000VN006-3CW104_ZW60SM7B-part1. The second one is just /dev/sdd .

is that okay.
what happens if i add a new drive and label change ?
Sorry it might be a completely nonsense question.

Thanks
 
is that okay.
For now: yes!
what happens if i add a new drive and label change ?
That's the point. "sda/b/c/d" are not always stable. It may change after any hardware modification or firmware upgrades.

Does your status allow to stop everything on that pool and export it? If yes then I would see no problem to try to
Code:
zpool export primary
zpool import -d /dev/disk/by-id/  primary
 
Yesterday i discovered by a complete coincidence that one of the drives in ZFS pool has completely failed without any prior notice.
This is something that scares me a little.
Is there really no single warning in the WebGUI if a pool went bad or there are any checksum errors?
 
@IsThisThingOn I completely agree with you. the funny part is that i got notification mail when resilvering process finished.
i will need to dig this topic a bit because i really got lucky this time and I am not ready at all losing any data.
 
  • Like
Reactions: IsThisThingOn