zoukankan      html  css  js  c++  java
  • 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]
    >
  • 相关阅读:
    iOS新手在引入第三方出现的几个小问题
    XMPP安装中遇到需要卸载openfire的步骤
    KVC
    SQLite错误码
    简单对象的本地化(以图片为例)
    使用MD5完成自定义Person对象的加密过程
    IOS--工作总结--post上传文件(以流的方式上传)
    IOS开发系列 --- 核心动画
    监听键盘 防止输入时覆盖掉textfiled
    比较选择的开始时间和结束时间的大小
  • 原文地址:https://www.cnblogs.com/liweiming/p/9999700.html
Copyright © 2011-2022 走看看