Question: How Do You Scan Detect New Luns on 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 new LUNs 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 find new devices on Linux?
Find out exactly what devices are inside your Linux computer or connected to it. We’ll cover 12 commands for listing your connected devices.
…
- The mount Command. …
- The lsblk Command. …
- The df Command. …
- The fdisk Command. …
- The /proc Files. …
- The lspci Command. …
- The lsusb Command. …
- The lsdev Command.