1. [root@ftp:/home/tools/shell]
  2. > yum install sg3_utils*
  3. Loaded plugins: fastestmirror
  4. Repository base is listed more than once in the configuration
  5. Repository updates is listed more than once in the configuration
  6. Repository extras is listed more than once in the configuration
  7. Repository centosplus is listed more than once in the configuration
  8. Repository contrib is listed more than once in the configuration
  9. base | 3.6 kB 00:00:00
  10. epel | 3.2 kB 00:00:00
  11. extras | 3.4 kB 00:00:00
  12. salt-2016.11 | 2.9 kB 00:00:00
  13. updates | 3.4 kB 00:00:00
  14. (1/2): epel/x86_64/updateinfo | 932 kB 00:00:01
  15. (2/2): epel/x86_64/primary | 3.6 MB 00:00:02
  16. Loading mirror speeds from cached hostfile
  17. * base: mirrors.aliyun.com
  18. * extras: mirrors.aliyun.com
  19. * updates: mirrors.aliyun.com
  20. epel 12708/12708
  21. Resolving Dependencies
  22. --> Running transaction check
  23. ---> Package sg3_utils.x86_64 0:1.37-12.el7 will be installed
  24. ---> Package sg3_utils-devel.x86_64 0:1.37-12.el7 will be installed
  25. ---> Package sg3_utils-libs.x86_64 0:1.37-12.el7 will be installed
  26. --> Finished Dependency Resolution
  27.  
  28. Dependencies Resolved
  29.  
  30. ===============================================================================================
  31. Package Arch Version Repository Size
  32. ===============================================================================================
  33. Installing:
  34. sg3_utils x86_64 1.37-12.el7 base 644 k
  35. sg3_utils-devel x86_64 1.37-12.el7 base 27 k
  36. sg3_utils-libs x86_64 1.37-12.el7 base 64 k
  37.  
  38. Transaction Summary
  39. ===============================================================================================
  40. Install 3 Packages
  41.  
  42. Total download size: 736 k
  43. Installed size: 1.9 M
  44. Is this ok [y/d/N]: y
  45. Downloading packages:
  46. sg3_utils-devel-1.37-12.el7.x8 FAILED B --:--:-- ETA
  47. 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"
  48. Trying other mirror.
  49. (1/3): sg3_utils-1.37-12.el7.x86_64.rpm | 644 kB 00:00:01
  50. (2/3): sg3_utils-devel-1.37-12.el7.x86_64.rpm | 27 kB 00:00:00
  51. sg3_utils-libs-1.37-12.el7.x86 FAILED
  52. 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"
  53. Trying other mirror.
  54. (3/3): sg3_utils-libs-1.37-12.el7.x86_64.rpm | 64 kB 00:00:00
  55. -----------------------------------------------------------------------------------------------
  56. Total 85 kB/s | 736 kB 00:00:08
  57. Running transaction check
  58. Running transaction test
  59. Transaction test succeeded
  60. Running transaction
  61. Installing : sg3_utils-libs-1.37-12.el7.x86_64 1/3
  62. Installing : sg3_utils-1.37-12.el7.x86_64 2/3
  63. Installing : sg3_utils-devel-1.37-12.el7.x86_64 3/3
  64. Verifying : sg3_utils-1.37-12.el7.x86_64 1/3
  65. Verifying : sg3_utils-devel-1.37-12.el7.x86_64 2/3
  66. Verifying : sg3_utils-libs-1.37-12.el7.x86_64 3/3
  67.  
  68. Installed:
  69. sg3_utils.x86_64 0:1.37-12.el7 sg3_utils-devel.x86_64 0:1.37-12.el7
  70. sg3_utils-libs.x86_64 0:1.37-12.el7
  71.  
  72. Complete!
  73.  
  74. [root@ftp:/home/tools/shell]
  75. > rescan-scsi-bus.sh
  76. which: no multipath in (/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin)
  77. Scanning SCSI subsystem for new devices
  78. Scanning host 0 for SCSI target IDs 0 1 2 3 4 5 6 7, all LUNs
  79. Scanning for device 0 0 0 0 ...
  80. OLD: Host: scsi0 Channel: 00 Id: 00 Lun: 00
  81. Vendor: VMware Model: Virtual disk Rev: 1.0
  82. Type: Direct-Access ANSI SCSI revision: 02
  83. Scanning host 1 for SCSI target IDs 0 1 2 3 4 5 6 7, all LUNs
  84. Scanning host 2 for SCSI target IDs 0 1 2 3 4 5 6 7, all LUNs
  85. Scanning for device 2 0 0 0 ...
  86. OLD: Host: scsi2 Channel: 00 Id: 00 Lun: 00
  87. Vendor: NECVMWar Model: VMware IDE CDR10 Rev: 1.00
  88. Type: CD-ROM ANSI SCSI revision: 05
  89. 0 new or changed device(s) found.
  90. 0 remapped or resized device(s) found.
  91. 0 device(s) removed.
  92.  
  93. [root@ftp:/home/tools/shell]
  94. >

rescan-scsi-bus.sh linux扫盘 脚本的更多相关文章

  1. Linux Shell常用脚本整理

    轮询检测Apache状态并启用钉钉报警◆ #!/bin/bash shell_user="root" shell_domain="apache" shell_l ...

  2. linux下shell脚本执行jar文件

    最近在搞一个shell脚本启动jar文件个关闭jar文件的东东.搞得我都蛋疼了.今天晚上终于弄好了 话说,小弟的linux只是刚入门,经过各方查资料终于搞定了.话不多说,下面开始上小弟写的shell脚 ...

  3. linux下shell脚本学习

    在Linux系统中,虽然有各种各样的图形化接口工具,但是sell仍然是一个非常灵活的工具.Shell不仅仅是命令的收集,而且是一门非常棒的编程语言.您可以通过使用shell使大量的任务自动化,shel ...

  4. Linux/Unix shell 脚本中调用SQL,RMAN脚本

    Linux/Unix shell脚本中调用或执行SQL,RMAN 等为自动化作业以及多次反复执行提供了极大的便利,因此通过Linux/Unix shell来完成Oracle的相关工作,也是DBA必不可 ...

  5. linux的shell脚本入门

    Linux shell脚本入门教程 为什么要进行shell编程 在Linux系统中,虽然有各种各样的图形化接口工具,但是sell仍然是一个非常灵活 的工具.Shell不仅仅是命令的收集,而且是一门非常 ...

  6. Linux 下 expect 脚本语言中交互处理常用命令

    Linux 下 expect 脚本语言中交互处理常用命令 1. #!/usr/bin/expect 告诉操作系统脚本里的代码使用那一个 shell 来执行.这里的 expect 其实和 Linux 下 ...

  7. 在linux后台执行脚本

    1. 使用&符号在后台执行命令 你可以在Linux命令或者脚本后面增加&符号,从而使命令或脚本在后台执行,例如:. $ ./my-shell-script.sh & 2. 使用 ...

  8. Linux常用Shell脚本珍藏【转载】

    我们在运维中,尤其是linux运维,都知道脚本的重要性,脚本会让我们的 运维事半功倍,所以学会写脚本是我们每个linux运维必须学会的一门功课,这里收藏linux运维常用的脚本.如何学好脚本,最关键的 ...

  9. Linux shell编写脚本部署pxe网络装机

    Linux shell编写脚本部署pxe网络装机 人工安装配置,Linux PXE无人值守网络装机  https://www.cnblogs.com/yuzly/p/10582254.html 脚本实 ...

随机推荐

  1. day05-3 初步了解数据类型

    目录 数据类型介绍 数字类型 整形(int) 浮点型(float) 字符串 列表 字典 布尔值 数据类型介绍 不同的数据会有不同的数据类型 为了定义不同的数据,我们Python中提供了下述几个数据类型 ...

  2. flex-2

    1. 2. justify:整理版面 3. 4.归纳 justify-content:flex-start(默认).center.flex-end 下面还会提到剩下的两种项目在主轴上对齐方式: spa ...

  3. 在Windows环境下使用短信猫收发短信的简单配置:

    Windows简单配置: 1.插入usb接口,打开电脑的设备管理器,装驱动后,查看端口下设备的com(串口)是多少,接下来就是配置短信猫的必须参数: 如果短信猫是COM(串口)口的,一般端口是COM1 ...

  4. 执行python manage.py makemigrations时报错TypeError: __init__() missing 1 required positional argument: 'on_delete'

    在执行python manage.py makemigrations时报错: TypeError: __init__() missing 1 required positional argument: ...

  5. NOIP2015 运输计划 (树上差分+二分答案)

    ---恢复内容开始--- 题目大意:给你一颗树,你可以把其中一条边的边权改成0,使给定的一些树链的权值和的最大值最小 把lenth定义为未修改边权时的答案 考虑二分答案,如果二分的答案成立,设修改成0 ...

  6. zabbix_get 获取agnet端mysql数据失败

    问题 在使用zabbix_get获取agent端的mysql数据时,总是报错,ERROR 2002 (HY000): Can't connect to local MySQL server throu ...

  7. 关于libnmap 的一些应用

    随笔描述 nmap 可以进行端口的扫描,在安全或运维中可以说是一款不错的神奇吧,在大部分LINUX 里面都自带了nmap 这款工具,他不仅仅是端口扫描,自身还提供许多插件可以使用. 官方文档 nmap ...

  8. 线性回归(regression)

    简介 回归分析只涉及到两个变量的,称一元回归分析.一元回归的主要任务是从两个相关变量中的一个变量去估计另一个变量,被估计的变量,称因变量,可设为Y:估计出的变量,称自变量,设为X. 回归分析就是要找出 ...

  9. Python学习笔记(4)列表

    2019-02-26 列表(list):①创建方法:用‘[ ]’,将数据包括起来,数据之间用逗号隔开.②空列表:empty = []③增删改查: 1)增加: a.append()方法——将元素添加到列 ...

  10. Vue中如何在组件内部实现一个双向数据绑定?

    假设有一个输入框组件,用户输入时,同步父组件页面中的数据. 具体思路:父组件通过props传值给子组件,子组件通过 $emit 来通知父组件修改相应的props值,具体实现如下: import Vue ...