rescan-scsi-bus.sh linux扫盘 脚本
2024-10-01 15:07:20
[root@ftp:/home/tools/shell]
> yum install sg3_utils*
Loaded plugins: fastestmirror
Repository base is listed more than once in the configuration
Repository updates is listed more than once in the configuration
Repository extras is listed more than once in the configuration
Repository centosplus is listed more than once in the configuration
Repository contrib is listed more than once in the configuration
base | 3.6 kB 00:00:00
epel | 3.2 kB 00:00:00
extras | 3.4 kB 00:00:00
salt-2016.11 | 2.9 kB 00:00:00
updates | 3.4 kB 00:00:00
(1/2): epel/x86_64/updateinfo | 932 kB 00:00:01
(2/2): epel/x86_64/primary | 3.6 MB 00:00:02
Loading mirror speeds from cached hostfile
* base: mirrors.aliyun.com
* extras: mirrors.aliyun.com
* updates: mirrors.aliyun.com
epel 12708/12708
Resolving Dependencies
--> Running transaction check
---> Package sg3_utils.x86_64 0:1.37-12.el7 will be installed
---> Package sg3_utils-devel.x86_64 0:1.37-12.el7 will be installed
---> Package sg3_utils-libs.x86_64 0:1.37-12.el7 will be installed
--> Finished Dependency Resolution Dependencies Resolved ===============================================================================================
Package Arch Version Repository Size
===============================================================================================
Installing:
sg3_utils x86_64 1.37-12.el7 base 644 k
sg3_utils-devel x86_64 1.37-12.el7 base 27 k
sg3_utils-libs x86_64 1.37-12.el7 base 64 k Transaction Summary
===============================================================================================
Install 3 Packages Total download size: 736 k
Installed size: 1.9 M
Is this ok [y/d/N]: y
Downloading packages:
sg3_utils-devel-1.37-12.el7.x8 FAILED B --:--:-- ETA
http://mirrors.cloud.aliyuncs.com/centos/7/os/x86_64/Packages/sg3_utils-devel-1.37-12.el7.x86_64.rpm: [Errno 14] curl#6 - "Could not resolve host: mirrors.cloud.aliyuncs.com; Unknown error"
Trying other mirror.
(1/3): sg3_utils-1.37-12.el7.x86_64.rpm | 644 kB 00:00:01
(2/3): sg3_utils-devel-1.37-12.el7.x86_64.rpm | 27 kB 00:00:00
sg3_utils-libs-1.37-12.el7.x86 FAILED
http://mirrors.aliyuncs.com/centos/7/os/x86_64/Packages/sg3_utils-libs-1.37-12.el7.x86_64.rpm: [Errno 14] curl#7 - "Failed connect to mirrors.aliyuncs.com:80; Connection timed out"
Trying other mirror.
(3/3): sg3_utils-libs-1.37-12.el7.x86_64.rpm | 64 kB 00:00:00
-----------------------------------------------------------------------------------------------
Total 85 kB/s | 736 kB 00:00:08
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : sg3_utils-libs-1.37-12.el7.x86_64 1/3
Installing : sg3_utils-1.37-12.el7.x86_64 2/3
Installing : sg3_utils-devel-1.37-12.el7.x86_64 3/3
Verifying : sg3_utils-1.37-12.el7.x86_64 1/3
Verifying : sg3_utils-devel-1.37-12.el7.x86_64 2/3
Verifying : sg3_utils-libs-1.37-12.el7.x86_64 3/3 Installed:
sg3_utils.x86_64 0:1.37-12.el7 sg3_utils-devel.x86_64 0:1.37-12.el7
sg3_utils-libs.x86_64 0:1.37-12.el7 Complete! [root@ftp:/home/tools/shell]
> rescan-scsi-bus.sh
which: no multipath in (/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin)
Scanning SCSI subsystem for new devices
Scanning host 0 for SCSI target IDs 0 1 2 3 4 5 6 7, all LUNs
Scanning for device 0 0 0 0 ...
OLD: Host: scsi0 Channel: 00 Id: 00 Lun: 00
Vendor: VMware Model: Virtual disk Rev: 1.0
Type: Direct-Access ANSI SCSI revision: 02
Scanning host 1 for SCSI target IDs 0 1 2 3 4 5 6 7, all LUNs
Scanning host 2 for SCSI target IDs 0 1 2 3 4 5 6 7, all LUNs
Scanning for device 2 0 0 0 ...
OLD: Host: scsi2 Channel: 00 Id: 00 Lun: 00
Vendor: NECVMWar Model: VMware IDE CDR10 Rev: 1.00
Type: CD-ROM ANSI SCSI revision: 05
0 new or changed device(s) found.
0 remapped or resized device(s) found.
0 device(s) removed. [root@ftp:/home/tools/shell]
>
最新文章
- ViewPager +Fragment 滑动游标
- odi 12.2.1中访问excel文件
- 2016/10/28 很久没更了 leetcode解题 3sum问题进阶版4sum
- HDU 4405 期望DP
- Jquery ajax请求导出Excel表格
- 网上图书商城项目学习笔记-012BOOK模块查询2
- 省市区三级联动JS
- java-程序执行原理
- JavaScript脚本语言的正则校验法
- PE头的应用---插入代码到EXE或DLL文件中
- 如何关闭IE浏览器在生成原型时候的安全警告
- Mac下chrome的webapp hostadmin 快速切换host
- 调试PostSharp DEMO 遇到的问题
- linux下如何使用vnstat查看服务器带宽流量统计
- Servlet与jsp间的传值问题
- 使用SQL存储过程有什么好处 用视图有什么好处
- org.springframework.expression.spel.SpelEvaluationException: EL1011E: Method call: Attempted to call method test() on null context object
- vue初级学习--控制台创建vue项目
- C#:MVC引用Log4Net生成错误日志
- [Java反射机制]用反射改进简单工厂模式设计