Kevin 教程 1,260 次浏览 46条评论


在服务器新加 SCSI 类型硬盘后,不重启系统情况下可能识别不了,需要用下面命令手动刷新一下。

注:先sudo su切换到 root 身份再运行,不然会提示权限不够。

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

上面红色部分是 SCSI 接口,服务器通常有多个这样接口,用ls /sys/class/scsi_host命令查看。

[root@test ~]# ls /sys/class/scsi_host
host0  host1  host2  host3  host4  host5  host6  host7

那么如何查询使用的是哪个接口呢?运行udevadm info -a -p /sys/class/scsi_generic/sg0查看打印信息。其中下面这两段是我们要找的,可以看到笔者这台服务器 scsi_host 值是 host0。

  looking at parent device '/devices/pci0000:00/0000:00:17.0/host0/target0:0:0':

  looking at parent device '/devices/pci0000:00/0000:00:17.0/host0':

确认 scsi_host 值后,按实际情况修改上面刷新命令运行。若要确认命令运行情况,可sudo tail -20 /var/log/messages查看最近 20 条系统日志,之后再sudo fdisk -l查看硬盘是否已经被识别。


查询 scsi_host 值网上还流传有另一个命令(如下),但笔者在 CentOS/RHEL6 下测试无效。

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


  1. #1

    ivermectin for corona https://ivermectin.mlsmalta.com/

  2. #2

    new hydroxychloroquine studies https://hydroxychloroquine.webbfenix.com/

  3. #3

    generic vidalista price https://vidalista40mg.mlsmalta.com/

  4. #4

    dapoxetine 60mg costco https://ddapoxetine.com/

  5. #5

    price of tadalafil 10mg https://wisig.org/

  6. #6

    hydroxychloroquine stock symbol https://hydroxychloroquinee.com/

  7. #7

    amstyles.com https://amstyles.com/

  8. #8

    5 day prednisone pack dosage https://prednisone.bvsinfotech.com/

  9. #9

    doxycycline hyclate and supplements http://doxycycline.zolftgenwell.org/

  10. #10

    internet medical treatment https://buymeds.mlsmalta.com/

  11. #11

    internet medical treatment https://medpills.bee-rich.com/

  12. #12

    hydroxychloroquine pills for sale from mexico https://hydroxychloroquine.grassfed.us/

  13. #13

    hydroxychloroquine pills for sale from mexico https://hydroxychloroquine.lm360.us/

  14. #14

    substitute for cialis or viagra https://www.lm360.us/

  15. #15

    acyclovir prescription dosage https://www.herpessymptomsinmen.org/productacyclovir/

  16. #16

    how to synthesize chloroquine https://hydroxychloroquine.lm360.us/

  17. #17

    how to synthesize chloroquine https://hydroxychloroquine.wisig.org/

  18. #18

    how does ivermectin work http://ivermmectin.co/

  19. #19

    viagra tips to improve effectiveness https://viaplz.com/

  20. #20

    tadalafil without a doctor’s prescription https://cialis.advantagetriseal.com/

  21. #21

    tadalafil without a doctor’s prescription https://cialis.mrdgeography.com/

  22. #22

    loans by phone

  23. #23

    silagra tablets online

  24. #24

    emergency loans for veterans

  25. #25

    california payday loan

  26. #26

    take out a loan

  27. #27

    buy viagra australia

  28. #28

    loan site

  29. #29

    payday loans las vegas

  30. #30

    where to get kamagra

  31. #31

    best debt consolidation loans

  32. #32

    buy kamagra oral jelly online uae

  33. #33

    cheap tadacip

  34. #34

    where can i get a loan with bad credit

  35. #35

    no teletrack payday loan companies

  36. #36

    viagra generic cost

  37. #37

    cipro pill price

  38. #38

    tadalafil 20 mg best price

  39. #39

    loan no credit

  40. #40

    Heya! I’m at work surfing around your blog from my new
    iphone 3gs! Just wanted to say I love reading through your
    blog and look forward to all your posts! Carry on the
    superb work!

    My homepage – google

  41. #41

    Asking questions are genuinely nice thing if you are not
    understanding something completely, except this article provides fastidious understanding yet.

    Feel free to surf to my site: top naija music site

  42. #42

    Great post. I’m dealing with some of these issues as well..

    My web blog … google

  43. #43

    Hello i am kavin, its my first occasion to commenting anyplace, when i read this paragraph i thought i
    could also make comment due to this good piece of writing.

    Here is my homepage – My Hero College Bed Linen

  44. #44

    Hello there! I could have sworn I’ve been to this
    site before but after reading through some of
    the post I realized it’s new to me. Anyhow, I’m definitely happy I found it
    and I’ll be book-marking and checking back frequently!

    My website; riverwalk apartments philly (cesarfatog.blogdiloz.com)

  45. #45

    This is the perfect web site for anybody who hopes to understand this topic.
    You understand a whole lot its almost hard to argue with you
    (not that I actually would want to…HaHa). You certainly put a brand new spin on a
    topic that’s been discussed for decades. Excellent stuff, just excellent!

    Look at my website – security company wigan

  46. #46

    first time ivermectin use reviews https://ivermectin1st.com/


电邮地址用于 Gravatar 头像显示,不会被公开可见。