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 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.

  1. Rescan SCSI hosts: # for host in ‘ls /sys/class/scsi_host’ do echo ${host}; echo “- – -” > /sys/class/scsi_host/${host}/scan done.
  2. Issue LIP to FC hosts: …
  3. Run rescan script from sg3_utils:

How do I scan a new scsi disk in Linux?

How to scandetect new LUN’s & SCSI disks in Linux?

  1. Scan each scsi host device using /sys class file.
  2. Run the “rescan–scsi-bus.sh” script to detect new disks.
Robert Thorne

Robert Thorne

Automotive & Future Transportation Editor

Robert Thorne covers electric vehicle innovations, autonomous driving systems, global mobility trends, and automotive engineering developments.

Share this article
Twitter Facebook Pinterest