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]
- >
rescan-scsi-bus.sh linux扫盘 脚本的更多相关文章
- Linux Shell常用脚本整理
轮询检测Apache状态并启用钉钉报警◆ #!/bin/bash shell_user="root" shell_domain="apache" shell_l ...
- linux下shell脚本执行jar文件
最近在搞一个shell脚本启动jar文件个关闭jar文件的东东.搞得我都蛋疼了.今天晚上终于弄好了 话说,小弟的linux只是刚入门,经过各方查资料终于搞定了.话不多说,下面开始上小弟写的shell脚 ...
- linux下shell脚本学习
在Linux系统中,虽然有各种各样的图形化接口工具,但是sell仍然是一个非常灵活的工具.Shell不仅仅是命令的收集,而且是一门非常棒的编程语言.您可以通过使用shell使大量的任务自动化,shel ...
- Linux/Unix shell 脚本中调用SQL,RMAN脚本
Linux/Unix shell脚本中调用或执行SQL,RMAN 等为自动化作业以及多次反复执行提供了极大的便利,因此通过Linux/Unix shell来完成Oracle的相关工作,也是DBA必不可 ...
- linux的shell脚本入门
Linux shell脚本入门教程 为什么要进行shell编程 在Linux系统中,虽然有各种各样的图形化接口工具,但是sell仍然是一个非常灵活 的工具.Shell不仅仅是命令的收集,而且是一门非常 ...
- Linux 下 expect 脚本语言中交互处理常用命令
Linux 下 expect 脚本语言中交互处理常用命令 1. #!/usr/bin/expect 告诉操作系统脚本里的代码使用那一个 shell 来执行.这里的 expect 其实和 Linux 下 ...
- 在linux后台执行脚本
1. 使用&符号在后台执行命令 你可以在Linux命令或者脚本后面增加&符号,从而使命令或脚本在后台执行,例如:. $ ./my-shell-script.sh & 2. 使用 ...
- Linux常用Shell脚本珍藏【转载】
我们在运维中,尤其是linux运维,都知道脚本的重要性,脚本会让我们的 运维事半功倍,所以学会写脚本是我们每个linux运维必须学会的一门功课,这里收藏linux运维常用的脚本.如何学好脚本,最关键的 ...
- Linux shell编写脚本部署pxe网络装机
Linux shell编写脚本部署pxe网络装机 人工安装配置,Linux PXE无人值守网络装机 https://www.cnblogs.com/yuzly/p/10582254.html 脚本实 ...
随机推荐
- day05-3 初步了解数据类型
目录 数据类型介绍 数字类型 整形(int) 浮点型(float) 字符串 列表 字典 布尔值 数据类型介绍 不同的数据会有不同的数据类型 为了定义不同的数据,我们Python中提供了下述几个数据类型 ...
- flex-2
1. 2. justify:整理版面 3. 4.归纳 justify-content:flex-start(默认).center.flex-end 下面还会提到剩下的两种项目在主轴上对齐方式: spa ...
- 在Windows环境下使用短信猫收发短信的简单配置:
Windows简单配置: 1.插入usb接口,打开电脑的设备管理器,装驱动后,查看端口下设备的com(串口)是多少,接下来就是配置短信猫的必须参数: 如果短信猫是COM(串口)口的,一般端口是COM1 ...
- 执行python manage.py makemigrations时报错TypeError: __init__() missing 1 required positional argument: 'on_delete'
在执行python manage.py makemigrations时报错: TypeError: __init__() missing 1 required positional argument: ...
- NOIP2015 运输计划 (树上差分+二分答案)
---恢复内容开始--- 题目大意:给你一颗树,你可以把其中一条边的边权改成0,使给定的一些树链的权值和的最大值最小 把lenth定义为未修改边权时的答案 考虑二分答案,如果二分的答案成立,设修改成0 ...
- zabbix_get 获取agnet端mysql数据失败
问题 在使用zabbix_get获取agent端的mysql数据时,总是报错,ERROR 2002 (HY000): Can't connect to local MySQL server throu ...
- 关于libnmap 的一些应用
随笔描述 nmap 可以进行端口的扫描,在安全或运维中可以说是一款不错的神奇吧,在大部分LINUX 里面都自带了nmap 这款工具,他不仅仅是端口扫描,自身还提供许多插件可以使用. 官方文档 nmap ...
- 线性回归(regression)
简介 回归分析只涉及到两个变量的,称一元回归分析.一元回归的主要任务是从两个相关变量中的一个变量去估计另一个变量,被估计的变量,称因变量,可设为Y:估计出的变量,称自变量,设为X. 回归分析就是要找出 ...
- Python学习笔记(4)列表
2019-02-26 列表(list):①创建方法:用‘[ ]’,将数据包括起来,数据之间用逗号隔开.②空列表:empty = []③增删改查: 1)增加: a.append()方法——将元素添加到列 ...
- Vue中如何在组件内部实现一个双向数据绑定?
假设有一个输入框组件,用户输入时,同步父组件页面中的数据. 具体思路:父组件通过props传值给子组件,子组件通过 $emit 来通知父组件修改相应的props值,具体实现如下: import Vue ...