How Do I Scan Newly Added Lun in Linux?
Contents in Linux We Can Scan the Luns Using the Script “Rescan-Scsi-Bus. Sh” or Triggering Some Device Host Files with Some Values. Note the Number of Hosts...
Contents
In Linux we can scan the LUNs using the script “rescan-scsi-bus.sh” or triggering some device host files with some values. Note the number of hosts available in the server. If you have more number of hosts file under the directory /sys/class/fc_host, then use the command for each hosts file by replacing the “host0”.
How do I scan a new LUN in Linux?
Follow the steps below to scan the new LUN in OS and then in multipath.
- Rescan SCSI hosts: # for host in ‘ls /sys/class/scsi_host’ do echo ${host}; echo “- – -” > /sys/class/scsi_host/${host}/scan done.
- Issue LIP to FC hosts: …
- Run rescan script from sg3_utils:
Must Read
How do I scan a new scsi disk in Linux?
How to scandetect new LUN’s & SCSI disks in Linux?
- Scan each scsi host device using /sys class file.
- Run the “rescan–scsi-bus.sh” script to detect new disks.