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]
    >
  • 相关阅读:
    Oracle EBS-SQL (PO-3):检查期间手工下达的采购订单记录数.sql
    Oracle EBS-SQL (PO-2):检查当月到货补单的记录数.sql
    Oracle EBS-SQL (PO-1):检查供货比例异常.sql
    Oracle EBS-SQL (MRP-2):检查期间主计划录入记录数.sql
    Oracle EBS-SQL (MRP-1):检查期间内计划完成的任务.sql
    Oracle EBS-SQL (INV-3):检查仓库库存价值明细.sql
    Oracle EBS-SQL (INV-2):检查帐户别名发放记录.sql
    Oracle EBS-SQL (INV-1):检查物料成本为0并且物料状态不是'NEW'的物料.sql
    Oracle EBS-SQL (BOM-13):检查未定义库存分的物料类.sql
    Oracle EBS-SQL (BOM-12):BOM清单查询
  • 原文地址:https://www.cnblogs.com/liweiming/p/9999700.html
Copyright © 2011-2022 走看看