RHEL6 不重启扫描新添加硬盘

Posted on 2018-05-02 15:40  飘飘的摇摇  阅读(332)  评论(0编辑  收藏  举报

First find your host bus number

grep mpt /sys/class/scsi_host/host?/proc_name

Which should return a line like

/sys/class/scsi_host/host0/proc_name:mptspi

where host0 is the relevant field.

use this to rescan the bus with the following command

echo "- - -" > /sys/class/scsi_host/host0/scan

In the above command the the hyphens represent controller,channel,lun,

so – – – indicates all controllers, all channels and all luns should be scanned.

 

参考

https://blogs.it.ox.ac.uk/oxcloud/2013/03/25/rescanning-your-scsi-bus-to-see-new-storage/

Copyright © 2024 飘飘的摇摇
Powered by .NET 8.0 on Kubernetes