How to scan for new disks in CentOS 7 without Rebooting

After adding a new Hard disk to the virtual machine, now run the following commands to expand the disk space in the physical volume of the Operating System without rebooting the virtual machine by Re-scanning the SCSI Bus and then adding SCSI Device.

# ls /sys/class/scsi_host/

# echo “- – -” > /sys/class/scsi_host/host0/scan

# echo “- – -” > /sys/class/scsi_host/host1/scan

# echo “- – -” > /sys/class/scsi_host/host2/scan

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.