To rescan an entire SCSI bus and re-register all devices found:
เมื่อต้องการ rescan SCSI ให้ระบบเห็น SCSI Device ตัวใหม่ ซึ่งการ rescan SCSI นั้นใน Linux บางตัวจะเป็นการ add หรือ remove device ด้วย
สำหรับ storage พวก Fibre ให้ใช้คำสั่งด้านล่างดังนี้
echo “1″ > /sys/class/fc_host/host#/issue_lip
สำหรับ storage ทั่วไปใช้คำสั่ง แต่ก็สามารถใช้คำสั่งด้านบนได้เช่นกันแต่อาจจะเสียเวลาสำหรับการ rescan
echo “- – -” > /sys/class/scsi_host/host#/scan
# คือ เลขของ SCSI bus
สำหรับคำสั่งการ remove scsi device คือ
# echo 1 > /sys/block/
/device/delete
หรือ
# echo “scsi remove-single-device” > /proc/scsi/scsi
และสำหรับคำสั่ง add scsi device คือ
# echo “scsi add-single-device
” > /proc/scsi/scsi
tip
การหา
Related posts:
- How to rescan the SCSI bus to add or remove a SCSI device without rebooting the computer? เมื่อต้องการให้ Linux rescan SCSI drive โดยไม่ต้อง restart เครื่องสามารถทำโดยใช้คำสั่ง...
- Free memory by flushing pagecache and slabcache เราสามารถทำการ free memory ได้แบบ on demand โดยใช้คำสั่งง่ายๆ ซึ่งวิธีการนี้จะเป็นการ...
- Change I/O Disk Scheduler without Reboot I/O Scheduler สำหรับ Hard disk หรือพวก block device...
- How to read hard drive device files name ในระบบปฏิบัติการ Linux ได้มีการจัดเก็บข้อมูลของ device ต่างๆเป็นไฟล์ไว้ที่ directory /dev/ ซึ่งชื่อของ...
- Disable some CPUs within Red Hat Enterprise Linux 5 without rebooting the system คำเตือน: โปรดทำการเชค Hardware ว่า support CPU hotswapping หรือไม่ก่อนทำการทดลองเล่นหรือใช้งานคำสั่งนี้...


May 11th, 2009
Tum.
Posted in
Tags: 