CentOS识别新增硬盘设备,在不重启系统情况下
扫描新增硬盘
在服务器新加 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
ivermectin for corona https://ivermectin.mlsmalta.com/
new hydroxychloroquine studies https://hydroxychloroquine.webbfenix.com/
generic vidalista price https://vidalista40mg.mlsmalta.com/
dapoxetine 60mg costco https://ddapoxetine.com/
price of tadalafil 10mg https://wisig.org/
hydroxychloroquine stock symbol https://hydroxychloroquinee.com/
amstyles.com https://amstyles.com/
5 day prednisone pack dosage https://prednisone.bvsinfotech.com/
doxycycline hyclate and supplements http://doxycycline.zolftgenwell.org/
internet medical treatment https://buymeds.mlsmalta.com/
internet medical treatment https://medpills.bee-rich.com/
hydroxychloroquine pills for sale from mexico https://hydroxychloroquine.grassfed.us/
hydroxychloroquine pills for sale from mexico https://hydroxychloroquine.lm360.us/
substitute for cialis or viagra https://www.lm360.us/
acyclovir prescription dosage https://www.herpessymptomsinmen.org/productacyclovir/
how to synthesize chloroquine https://hydroxychloroquine.lm360.us/
how to synthesize chloroquine https://hydroxychloroquine.wisig.org/
how does ivermectin work http://ivermmectin.co/
viagra tips to improve effectiveness https://viaplz.com/
tadalafil without a doctor’s prescription https://cialis.advantagetriseal.com/
tadalafil without a doctor’s prescription https://cialis.mrdgeography.com/
loans by phone
silagra tablets online
emergency loans for veterans
california payday loan
take out a loan
buy viagra australia
loan site
payday loans las vegas
where to get kamagra
best debt consolidation loans
buy kamagra oral jelly online uae
cheap tadacip
where can i get a loan with bad credit
no teletrack payday loan companies
viagra generic cost
cipro pill price
tadalafil 20 mg best price
loan no credit
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
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
Great post. I’m dealing with some of these issues as well..
My web blog … google
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
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)
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
first time ivermectin use reviews https://ivermectin1st.com/