Linux - Find a server is assigned with lun or not, Find what are luns are present in server
Find a server is assigned with lun or not
Below are the simple methods to find out whether a server is integrated with storage device or not. This command will print all the scsi devices present in the server.# cat /proc/scsi/scsi
OUTPUT:
Attached devices: Host: scsi0 Channel: 00 Id: 00 Lun: 00 Vendor: EMC Model: SYMMETRIX Rev: xyz2 Type: Direct-Access ANSI SCSI revision: 02 Host: scsi0 Channel: 00 Id: 00 Lun: 112 Vendor: EMC Model: SYMMETRIX Rev: xyz2 Type: Direct-Access ANSI SCSI revision: 02 Host: scsi0 Channel: 00 Id: 00 Lun: 49 Vendor: EMC Model: SYMMETRIX Rev: xyz2 Type: Direct-Access ANSI SCSI revision: 02 Host: scsi0 Channel: 00 Id: 00 Lun: 50 Vendor: EMC Model: SYMMETRIX Rev: xyz2 Type: Direct-Access ANSI SCSI revision: 02 Host: scsi0 Channel: 00 Id: 00 Lun: 81 Vendor: EMC Model: SYMMETRIX Rev: xxx2 Type: Direct-Access ANSI SCSI revision: 02 Host: scsi0 Channel: 00 Id: 00 Lun: 113 Vendor: EMC Model: SYMMETRIX Rev: abc3 Type: Direct-Access ANSI SCSI revision: 02 Host: scsi0 Channel: 00 Id: 00 Lun: 122 Vendor: EMC Model: SYMMETRIX Rev: abc3 Type: Direct-Access ANSI SCSI revision: 02
# dmesg | grep -i "attached"
Linux command to find the attached scsi devices
# cat /proc/scsi/scsi
# multipath -l
Powermt command to dispaly all the attachec devices
# powermt display dev=all
# ls -l /dev/emcpower? # ls -l /dev/emcpower??
OUTPUT
brw------- 1 root root 120, 1968 May 16 15:07 /dev/emcpowerdt
To find the host number
# ls -l /sys/class/scsi_host/host?
The topic on Linux - Find a server is assigned with lun or not is posted by - Math
Hope you have enjoyed, Linux - Find a server is assigned with lun or notThanks for your time