On Thu, Jun 06, 2019 at 03:14:35PM +0100, Dan MacDonald wrote: > I need a tool that makes it simple to correlate disk device names with > their ids, as can be seen under . The main reason for this is when > administrating ZFS (replacing failed disks etc) it doesn't deal with > device names (sda, sdb etc) but uses disk id's instead and I often > struggle to marry them up. > > I know lsblk already has the "-o model" output column which prints > part of the disk id but I want to see the full disk id (the full > device name, with or without its /dev/disk/by-id prefix) printed under > a column called ID, DISKID or similar. Not sure what you mean with ID in this case. Try lsblk -o+MODEL,WWN or lsblk -o+MODEL,SERIAL maybe we can add SERIAL-LONG, because udev differentiate between SERIAL and SERIAL_SHORT (used by lsblk), and it's MODEL+SERIAL. See also udevadm info /dev/sda Karel -- Karel Zak <kzak@xxxxxxxxxx> http://karelzak.blogspot.com