Help finding a bad disk in proxmox in zfs

hello. Im running proxmox 8.0.3 and i have a disk that went bad however I can’t figure out how to identify the disk. I have the serial numbers labeled on the front of the drive caddies. Is there a way to find the serial of the bad drive?

I’m not sure I understand the question. You can SEE the serial number right there; it ends in b160.

If you need the WWN instead, do ls -lh /dev/disk/by-id | grep b160 and that’ll give you the raw devicename (eg /dev/sdx); you can then do ls -lh /dev/disk/by-id | grep sdx | grep wwn to find the WWN ID for that drive.

Some old integrated RAID controllers (like the HP P420i) in pass-through / HBA mode do not show the actual drive serial numbers in /dev/disk/by-id/. Instead, they generate a semi-random string of numbers.

You can grab the serial number of the drive with smartctl -a /dev/disk/by-id/scsi-yourfaulteddiskid | grep Serial