To scan for a newly added lun in RHEL OS: ================================ echo "- - -" > /sys/class/scsi_host/hostX/scan will list the SAN model ------------------------- yum install lsscsi.x86_64 lsscsi ls -l /dev/disk/by-path cat /sys/class/fc_host/host1/issue_lip echo "1" > /sys/class/fc_host/host1/issue_lip echo "1" > /sys/class/fc_host/host2/issue_lip echo "- - -" > /sys/class/scsi_host/host1/scan echo "- - -" > /sys/class/scsi_host/host2/scan multipath -ll Scan the newly added scan -------------------------- rescan-scsi-bus.sh rescan-scsi-bus.sh -i rescan-scsi-bus.sh -l -w List the scanned Harddisk ------------------------- fdisk -l|grep Disk ls -l /dev/disk/by-uuid ls -l /dev/disk/by-id systool -c fc_host -v ls -1 /sys/class/fc_host/ To identify luns already mapped ------------------------------- sg_map -x check if the HBAs are detected on your system. Use the following command for that: ---------------------------------------------------------------------------------- lspci | egrep -i "Fibre|Fibre" check if the fibre cables are connected to the HBA. -------------------------------------------------- systool -c fc_host -A "port_state" systool -c fc_host -v systool -c fc_host -A "port_name" show wwid details ------------------ multipath -v2 -d
Monday, February 8, 2016
SAN LUN Mapping in Redhat
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment