低质量的社交,不如高质量的独处

rescan-scsi-bus.sh linux扫盘 脚本

[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]
>

 

posted @ 2018-11-22 10:55  Eren.li  阅读(2082)  评论(0编辑  收藏  举报
liweiming0611@163.com
等待有三大特征:
清晰的目的、努力达成的过程、充满不确定性的结果
因上努力,果上随缘
求其上,得其中;求其中,得其下;求其下,无所得