linux – “echo”中的“ – – – ”是什么 – – – “> / sys / class / scsi_host / host0 / scan’是什么意思?

前端之家收集整理的这篇文章主要介绍了linux – “echo”中的“ – – – ”是什么 – – – “> / sys / class / scsi_host / host0 / scan’是什么意思?前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我知道 linux命令
echo "- - -" > /sys/class/scsi_host/host0/scan

用于重新扫描scsi主机.但是“ – – – ”在命令中意味着什么?

解决方法

这三个值代表通道,SCSI目标ID和LUN.破折号充当通配符,意思是“重新扫描一切”

A quick google search出现this RHEL doc (and dozens of other answers)

This is the same command described in Section 7,“Adding a Storage Device or Path” to add a storage device or path. In this case,however,the channel number,SCSI target ID,and LUN values are replaced by wildcards. Any combination of identifiers and wildcards is allowed,allowing you to make the command as specific or broad as needed. This procedure will add LUNs,but not remove them.

猜你在找的Linux相关文章