Find wwns for LUNs
If you need to discover the wwns of your storage:
for word in $( find /dev/sd* -printf '%f\n' ) ; do printf "%s %s\n" "$( udevadm info -q all -p /block/${word} 2>/dev/null | awk -F'=' '/WWN_WITH_EXT/{print $2}' )" "/dev/${word}" ; done
Or
ls -l /dev/disk/by-id/wwn*
Comments