Linux scan disk

After the Linux disk is expanded, the expanded disk cannot be found with the fldsk command. Because the business cannot be interrupted, the server cannot be restarted to scan the disk temporarily. Here you can scan the disk in the following way.
First, find the scan

ls /sys/class/scsi_host/

Then execute echo '- - -' > scan
scsi_host and execute it several times if there are several hosts under it.

echo “- - -” > /sys/class/scsi_host/host0/scan
echo “- - -” > /sys/class/scsi_host/host1/scan
echo “- - -” > /sys/class/scsi_host/host2/scan

Finally, just check
fdisk -l
or
df -h
Please add a picture description

Guess you like

Origin blog.csdn.net/TS_forever007/article/details/129836223