Trace: aix_lun_tamano

LUN ID and size on AIX

Also works with VIO or VIOS, you need oem_setup_env.

To get a comma separated list of LUN IDs and its size use this command:

for i in $(lsdev -Cc disk  | awk '{print $1}' ); do serial=$(lscfg -vpl $i |  grep "Serial Number"| awk -F '.' '{print $16}'); size=$(getconf DISK_SIZE /dev/$i);echo "$serial,$size" ;done
aix_lun_tamano.txt · Last modified: 2019/03/07 15:23
Public Domain Except where otherwise noted, content on this wiki is licensed under the following license: Public Domain