Home‎ > ‎Server config‎ > ‎

ZFS - finding the block device number for a given UUID in a ZFS file system

When a ZFS filesystem gives errors on a drive, it reports the SCSI UUID. In order to replace the drive, it needs to be located first. For that, you need to know the actual block device number, so it can be flashed.

eg:

ls -al /dev/disk/by-id|grep scsi|grep -v part|grep 35000cca255de424f

This will give:

lrwxrwxrwx 1 root root    10 Jan 27 16:50 scsi-35000cca255de424f -> ../../sdaz

Which can be used to locate the drive.