Scan for new FC volume in Linux (RHEL/CentOS/OEL)
Sometimes we need to map new DISK/LUN from SAN Storage to a running Linux Server (RHEL/CentOS/OEL) and we need to make new filesystem on it or extend an existing LVM VG or LV partition. Following activities are required: First of all collect information about the host - uname -a (running kernel version) cat /etc/redhat-release (exact version of OS) fdisk -l (existing disks & partitions) blkid (identify existing block devices and information like UUID, Filesystem Type etc) lsblk (identify disks & partitions in a tree like format) ls -alrth /sys/class/fc_host/ (identify no of FC HBAs in the system) pvdisplay (lists LVM PV devices) vgdisplay (lists LVM Volume Groups) lvdisplay (lists LVM partitions) Next Step - Scan the HBAs to identify new LUNs mapped to this host server: echo "1" > /sys/class/fc_host/host1/issue_lip echo "1" > /sys/class/fc_host/host2/issue_lip echo "- - -" > /sys/class/scsi_host/h...