CentOS识别新增硬盘设备,在不重启系统情况下

Kevin 教程 2,951 次浏览 109条评论

扫描新增硬盘

在服务器新加 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':
    KERNELS=="target0:0:0"
    SUBSYSTEMS=="scsi"
    DRIVERS==""

  looking at parent device '/devices/pci0000:00/0000:00:17.0/host0':
    KERNELS=="host0"
    SUBSYSTEMS=="scsi"
    DRIVERS==""

确认 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/

  47. #47

    Thanks in support of sharing such a good thinking, paragraph is pleasant, thats why i
    have read it fully

    Here is my blog water wave hair [Waylon]

  48. #48

    Undeniably consider that which you stated. Your favourite reason appeared to be on the net the
    easiest factor to be mindful of. I say to you, I certainly
    get irked even as other people think about concerns that they just don’t understand
    about. You managed to hit the nail upon the top and also outlined
    out the entire thing without having side-effects , other folks can take a signal.
    Will likely be again to get more. Thanks

    Also visit my webpage – Oil & Filter Changes

  49. #49

    I visited several websites but the audio quality for audio
    songs present at this website is actually superb.

    Review my blog post; เรียนต่อ

  50. #50

    Good day! This is kind of off topic but I need some advice from an established blog.
    Is it very difficult to set up your own blog?
    I’m not very techincal but I can figure things out pretty fast.
    I’m thinking about setting up my own but I’m not sure where to start.
    Do you have any ideas or suggestions? Cheers

    My web site CampLand Aluminum Folding Table (web-design-agency62838.blogthisbiz.com)

  51. #51

    This design is wicked! You most certainly know how
    to keep a reader amused. Between your wit and your videos,
    I was almost moved to start my own blog (well, almost…HaHa!) Fantastic job.
    I really loved what you had to say, and more than that, how you presented it.

    Too cool!

    My website: Timed multiplication test pdf

  52. #52

    I like the valuable info you provide in your articles.
    I’ll bookmark your weblog and check again here regularly.
    I am quite sure I’ll learn a lot of new stuff right here!
    Good luck for the next!

    my homepage … Printable Multiplication Timed Tests

  53. #53

    Having read this I believed it was really enlightening. I appreciate you finding the
    time and effort to put this short article together. I once again find myself spending way too much time both reading and posting comments.
    But so what, it was still worthwhile!

    Also visit my web blog Multiplication timed tests online (https://web-design-agency81470.estate-blog.com/)

  54. #54

    It’s the best time to make some plans for the future and it is time to be happy.
    I have learn this submit and if I may just I want to recommend
    you few attention-grabbing things or tips.
    Perhaps you can write subsequent articles referring to this
    article. I wish to read more issues about it!

    Also visit my web page – Online clothes shopping in sri lanka

  55. #55

    Great article. I will be going through many of these issues as well..

    my website; Runners meme

  56. #56

    I visited several blogs however the audio quality
    for audio songs existing at this web site is
    actually superb.

    Also visit my web-site :: build Instagram brand 2021

  57. #57

    Very energetic post, I liked that a lot. Will there be a part 2?

    my page :: bookstore in kuwait (Basil)

  58. #58

    You ought to take part in a contest for one of the greatest sites
    on the web. I’m going to highly recommend this web site!

    Feel free to visit my web page; electronics store in kuwait

  59. #59

    That is a really good tip especially to those fresh to the blogosphere.
    Short but very precise info… Appreciate your sharing
    this one. A must read post!

    Also visit my blog post check over here

  60. #60

    Amazing! This blog looks just like my old one!
    It’s on a entirely different topic but it has pretty much the
    same page layout and design. Outstanding choice of
    colors!

    Take a look at my web-site :: Bangladesh Newspapers

  61. #61

    Excellent site. Lots of helpful info here. I am sending
    it to some buddies ans additionally sharing in delicious.
    And of course, thanks in your effort!

    My website – shynxl technology

  62. #62

    Hi there, I enjoy reading through your post. I like to write a little comment
    to support you.

    Have a look at my homepage – Real estate agent in Saratoga Springs NY

  63. #63

    Hi! I’ve been following your weblog for a while
    now and finally got the bravery to go ahead and give you a shout out from Lubbock Texas!

    Just wanted to mention keep up the good job!

    my web page; gps tracker – http://creative-agency05059.atualblog.com/

  64. #64

    Everything is very open with a clear explanation of the challenges.
    It was definitely informative. Your site is useful.
    Many thanks for sharing!

    Review my web blog mental strength

  65. #65

    Hi colleagues, its impressive post on the topic of cultureand completely defined, keep it up all the
    time. http://antiibioticsland.com/Augmentin.htm

  66. #66

    I’m curious to find out what blog platform you happen to be
    working with? I’m having some small security issues
    with my latest website and I’d like to find something more safeguarded.
    Do you have any solutions?

    Feel free to surf to my blog post :: replica clothes

  67. #67

    I am no longer positive the place you’re getting your information, but good
    topic. I must spend a while learning much more or figuring out more.
    Thank you for wonderful information I used to be on the lookout
    for this information for my mission.

    Also visit my webpage :: radiator core

  68. #68

    cialis prescription coupon http://edonline.online/

  69. #69

    cialis prescription coupon http://edbuy.online/

  70. #70

    Thanks very interesting blog!

    My web blog – grilling zucchini in the oven

  71. #71

    Excellent way of describing, and pleasant article to get data about my presentation subject,
    which i am going to present in college.

    Here is my web-site; pubg mobile background

  72. #72

    It is perfect time to make some plans for the future and it is time to be happy.
    I have read this post and if I could I wish to suggest you few
    interesting things or advice. Maybe you can write next articles
    referring to this article. I want to read even more things about it!

    my web-site; technology student association

  73. #73

    I was suggested this blog via my cousin. I’m now not sure whether this
    put up is written by way of him as nobody else recognise such
    specific about my trouble. You’re incredible!
    Thank you!

    Here is my blog – Massage chairs for sale [Mabel]

  74. #74

    Nice blog here! Also your website loads up very fast! What web host are you using?
    Can I get your affiliate link to your host? I wish my web site loaded up as fast as yours
    lol

    my web page; Cordelia Enciso (photointeriorpro.ru)

  75. #75

    My partner and I stumbled over here from a different website
    and thought I might as well check things out.
    I like what I see so i am just following you. Look forward to going over your web page again.

    my site Private Swimming Lessons Singapore (https://writeablog.net/g5oljoc804/swimming-is-highly-well-liked-among-the-toddlers-little-ones-grownups-and)

  76. #76

    hydroxychloroquine prophylaxis dose https://hhydroxychloroquine.com/

  77. #77

    Very nice post. I just stumbled upon your weblog and wished to mention that I’ve truly enjoyed surfing around your
    weblog posts. In any case I will be subscribing to your rss feed and I’m hoping you
    write once more soon!

    Here is my web site Bong Ney

  78. #78

    Hello, i think that i noticed you visited my web site
    thus i got here to return the favor?.I am trying to
    to find things to improve my site!I suppose its good
    enough to use a few of your concepts!!

    Feel free to visit my website … Online vape accessories

  79. #79

    I just could not depart your site before suggesting that I actually enjoyed the usual info
    an individual supply on your visitors? Is going to be back regularly in order to check up on new posts

    Here is my blog post Chrystal Sabatini

  80. #80

    Nice post. I was checking constantly this weblog and I
    am impressed! Extremely helpful information specially the final phase 🙂 I handle such
    info a lot. I used to be seeking this particular info for a long time.

    Thanks and good luck.

    my web page; grill london broil

  81. #81

    I was wondering if you ever thought of changing the structure of your site?
    Its very well written; I love what youve got to say.

    But maybe you could a little more in the way of content so people could connect
    with it better. Youve got an awful lot of text
    for only having 1 or 2 pictures. Maybe you could space it out better?

    Also visit my website mailers servers email leads marketing email sender tools cpanels

  82. #82

    I don’t even understand how I finished up right here, but I thought this post used to be great.
    I don’t recognise who you’re however definitely you are going to a famous blogger
    if you are not already. Cheers!

    Check out my blog post … White pomeranian for sale

  83. #83

    I’m really impressed with your writing talents and also with the format for your weblog.
    Is this a paid topic or did you customize it yourself?
    Anyway keep up the excellent high quality writing, it is uncommon to peer a nice blog like this
    one today..

    Also visit my web-site: Consuelo Lail

  84. #84

    My brother recommended I might like this website. He was entirely right.
    This post truly made my day. You cann’t imagine just how much time I had spent for this information! Thanks!

    Here is my blog post: russian store – marketing-companies71470.blogdomago.com,

  85. #85

    Heya i’m for the primary time here. I found this board and I find It truly helpful & it helped me out a lot.
    I hope to give one thing back and help others such as you helped me.

    Also visit my webpage … replica clothes

  86. #86

    Howdy! I know this is somewhat off-topic but I needed to ask.
    Does managing a well-established blog like yours require
    a large amount of work? I am completely new to operating a blog however I do write
    in my diary everyday. I’d like to start a blog so I can share my personal experience and feelings online.
    Please let me know if you have any kind of suggestions or tips for brand new aspiring bloggers.
    Thankyou!

    My webpage Valorie Higginbottom

  87. #87

    Good post. I learn something totally new and challenging on blogs I stumbleupon every
    day. It will always be exciting to read through articles from other writers and practice something from their sites.

    Also visit my site: Affordable golf cars (Wyatt)

  88. #88

    If you want to obtain a good deal from this piece of writing then you have to apply such strategies
    to your won web site.

    Visit my web blog – tafsir mimpi

  89. #89

    Thanks a lot for sharing this with all of us you really know
    what you are talking about! Bookmarked. Kindly also talk over
    with my website =). We could have a link trade contract between us

    Review my web-site: Video editing calgary (June)

  90. #90

    Hi, I desire to subscribe for this website to obtain most recent updates, so
    where can i do it please assist.

    Here is my web-site – Crypto

  91. #91

    Have you ever considered about adding a little bit more than just your articles?
    I mean, what you say is important and everything.
    Nevertheless think about if you added some great visuals or video
    clips to give your posts more, “pop”! Your content is
    excellent but with pics and video clips, this site could certainly
    be one of the very best in its niche. Fantastic blog!

    my web page – Claud Shewmake

  92. #92

    Hey! I know this is kind of off-topic but I had to ask.
    Does operating a well-established blog like yours take a lot of work?
    I am brand new to running a blog however I do write in my diary on a daily basis.
    I’d like to start a blog so I can easily share my experience and thoughts online.

    Please let me know if you have any kind of suggestions or tips for new aspiring bloggers.
    Appreciate it!

    Review my blog – Mental Strength training

  93. #93

    hey there and thank you for your info – I have definitely picked up something new from right here.
    I did however expertise a few technical issues using this site, as I experienced to reload the web site many times
    previous to I could get it to load correctly.
    I had been wondering if your hosting is OK?
    Not that I’m complaining, but slow loading instances times will sometimes affect your placement in google and can damage your
    quality score if advertising and marketing with Adwords.

    Anyway I’m adding this RSS to my e-mail and could look out for much more of your respective exciting content.
    Make sure you update this again soon.

    Here is my page – everything you need for home fitness training

  94. #94

    Thank you for the auspicious writeup. It in fact was a amusement account it.
    Look advanced to more added agreeable from you! By the way, how can we
    communicate?

    My blog … Terpene infused cbd crystals, http://trevorxkxjw.theobloggers.com/,

  95. #95

    I am in fact grateful to the holder of this website who has shared this wonderful piece of
    writing at at this time.

    My web site – bandarq

  96. #96

    This is my first time pay a quick visit at here and i am
    actually impressed to read everthing at alone place.

    Review my webpage: Sports Movies & Series

  97. #97

    Helpful info. Lucky me I discovered your web site by accident, and I am stunned why this
    accident did not took place earlier! I bookmarked it.

    Here is my page; woodworking

  98. #98

    WOW just what I was searching for. Came here by searching for
    CentOS新增硬盘

    Look at my site; 롤대리

  99. #99

    I am regular visitor, how are you everybody?
    This paragraph posted at this web site is truly
    good.

    Feel free to visit my webpage :: Cream of tartar to quit
    smoking snopes (pbase.com)

  100. #100

    Spot on with this write-up, I actually think this website needs much more attention. I’ll probably be back again to
    read through more, thanks for the information!

    My web blog; Apparel Business Owner (Princess)

  101. #101

    Hello, after reading this remarkable piece of writing i
    am too happy to share my experience here with friends.

    Here is my web page: wedding invitations

  102. #102

    Yes! Finally someone writes about High quality kratom.

    Review my webpage Cheap online kratom – Xavier

  103. #103

    This is really interesting, You’re an overly skilled blogger.
    I have joined your rss feed and sit up for searching for
    more of your great post. Additionally, I’ve shared your web site
    in my social networks

    my blog: Bamboo sheet (https://daltonvqyd490.sitey.me/)

  104. #104

    Woah! I’m really loving the template/theme of this blog.
    It’s simple, yet effective. A lot of times it’s very difficult to get that “perfect balance” between usability and appearance.
    I must say you’ve done a very good job with this. Additionally, the blog loads super fast for me on Chrome.
    Excellent Blog!

    Visit my web site :: Name of a company

  105. #105

    I’m not that much of a online reader to be honest but your sites really nice, keep it up!
    I’ll go ahead and bookmark your website to
    come back later on. All the best

    Here is my blog post … Cameras security

  106. #106

    Quality articles or reviews is the main to be a focus for the users to pay a quick visit the website, that’s what this web
    site is providing.

    Also visit my page :: denver maternity photographers

  107. #107

    Nice post. I learn something new and challenging on sites
    I stumbleupon on a daily basis. It will always be exciting to read content
    from other authors and practice something from other
    sites.

    Also visit my web site – https://emailcrear.com

  108. #108

    discount canadian pharmacy cialis https://cialis.mlsmalta.com/

  109. #109

    discount canadian pharmacy cialis https://cialis.webbfenix.com/

发表评论

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