ZFS not recognizing disk by-id after reboot

Feb 24, 2022
30
0
11
35
Hello,

I had a drive disappear from my ZFS pool (1 failed drive), so I decided to replace it. After the replacement, I rebooted the system and the pool came online successfully. However, when I ran zpool status to list all pools and disks, I noticed that two of the disks were not recognized by their IDs, even though I originally created the pool using /dev/disk/by-id (these were not the drives with the error but 2 different ones). (ZFS can still see the disk but not by their ids and it shows the error/warning "was /dev/disk/by-id/diskID") see image as reference

The pool still appears to function correctly
What can I do about this?
Any input is appreciated.

Thanks
 

Attachments

  • zfs.png
    zfs.png
    252.6 KB · Views: 11
Looks like your WD_BLACK_SN850X drives broke down or got disconnected or got removed. Maybe you bumped something while you replaced the other drives?
 
Hi
You could try exporting and importing the pool. This should rebuild the cache and may fix the issue.
regards
Okay thanks for the info. What happens with the vms on the pool when I export it. Is it save to do so when I shutoff all vms? how long does the export/import take approximately? as this is a production server I cannot take it offline for too long.

thanks
 
Obviously, you have to stop the VMs/containers, but the data will remain unchanged. To avoid disturbing production, I would probably do this after normal work hours. The import/export process shouldn't take too long. If everything works as expected, I estimate that it will take 10 minutes for the import/export.

Looks like your WD_BLACK_SN850X drives broke down or got disconnected or got removed. Maybe you bumped something while you replaced the other drives?
Also, consider that if a connection or something is lost, it may interrupt the pool.