Friday, 12 July 2013

Detect LUN in Linux System in Running Environment


If SAN team provided LUN to Linux system, Linux administrator has to detect the LUN disk into Linux system. This LUN disks can be detected into system without rebooting. Please follow the following commands to detect the LUN on system.


# echo "- - -" > /sys/class/scsi_host/hostX/scan


hostX will be on system according HBA card. If you have 2 HBA cards on system there will be 2 host on system host0 and host1.


For Ex-

For 2 HBA cards please run the following command.

# echo "- - -" > /sys/class/scsi_host/host0/scan
# echo "- - -" > /sys/class/scsi_host/host1/scan

After running above command you can check LUN disk using “fdisk –l” command.




No comments:

Post a Comment