关于rescan-scsi-bus.sh脚本的来历和使用注意事项

1.rescan-scsi-bus.sh在sg3_utils-1.28-8.el6.x86_64中,如下试验:

安装sg3_utils-1.28-8.el6.x86_64 包.

[root@localhost repodata]# yum install sg3_utils*

Loaded plugins: product-id, refresh-packagekit, security, subscription-manager

This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.

Setting up Install Process

rhel-source | 4.1 kB 00:00 ...

Package sg3_utils-libs-1.28-8.el6.x86_64 already installed and latest version

Resolving Dependencies

--> Running transaction check

---> Package sg3_utils.x86_64 0:1.28-8.el6 will be installed

--> Finished Dependency Resolution

Dependencies Resolved

===============================================================================================================================================================================================

Package Arch Version Repository Size

===============================================================================================================================================================================================

Installing:

sg3_utils x86_64 1.28-8.el6 rhel-source 500 k

Transaction Summary

===============================================================================================================================================================================================

Install 1 Package(s)

Total download size: 500 k

Installed size: 1.3 M

Is this ok [y/N]: y

Downloading Packages:

Running rpm_check_debug

Running Transaction Test

Transaction Test Succeeded

Running Transaction

Installing : sg3_utils-1.28-8.el6.x86_64 1/1

Verifying : sg3_utils-1.28-8.el6.x86_64 1/1

Installed:

sg3_utils.x86_64 0:1.28-8.el6

Complete!

[root@localhost repodata]#

[root@localhost repodata]# yum provides /usr/bin/rescan-scsi-bus.sh

Loaded plugins: product-id, refresh-packagekit, security, subscription-manager

This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.

sg3_utils-1.28-8.el6.x86_64 : Utilities for devices that use SCSI command sets--->>>>在sg3_utils-1.28-8.el6.x86_64中.

Repo : rhel-source

Matched from:

Filename : /usr/bin/rescan-scsi-bus.sh

sg3_utils-1.28-8.el6.x86_64 : Utilities for devices that use SCSI command sets

Repo : installed

Matched from:

Other : Provides-match: /usr/bin/rescan-scsi-bus.sh

[root@localhost repodata]#

2.对有数据库在运行的操作系统,禁止使用rescan-scsi-bus.sh 的-i选项来运行rescan-scsi-bus.sh,原因见:

Executing rescan-scsi-bus.sh -i ( LIP flag ) caused RAC Node to Hang (Doc ID 1645143.1)

What is LIP ( Loop Initialization Protocol ) ?

LIP scans the interconnect and causes the SCSI layer to be updated to reflect the devices currently on the bus.

A LIP is, essentially, a bus reset, and will cause device addition and removal.

This procedure is necessary to configure a new SCSI target on a Fibre Channel interconnect.

Bear in mind that issue_lip is an asynchronous operation. The command may complete before the entire scan has completed.

What LIP Reset may cause?

Loop Initialization Protocol method to scan the HBA’s can cause delay

and I/O timeouts if the HBA/Device is in use and can also remove devices unexpectedly.

Hence performing the scan using this method is not recommended on any production server where the SAN Devices are already configured in use.

This type of scan is recommended on a newly built server to scan all the LUNS/Devices.

LIP is normally executed when Server boot.

linux rescan-scsi-bus.sh,关于rescan-scsi-bus.sh脚本的来历和使用注意事项相关推荐

  1. Linux存储IO栈(4)-- SCSI子系统之概述

    概述 Linux SCSI子系统的分层架构: 低层:代表与SCSI的物理接口的实际驱动器,例如各个厂商为其特定的主机适配器(Host Bus Adapter, HBA)开发的驱动,低层驱动主要作用是发 ...

  2. 服务器自检后显示scsi,请问一下,如何检测SCSI +RAID 5设置是否正确??

    从网上找的,不知道能不能帮到楼主,看看吧 一.进入scsi raid 主菜单 在主板post 过程中,出现[[[press ctrl-c to start lsi logic configuratio ...

  3. linux startup.sh文件所在目录,Tomcat启动脚本startup.sh分析

    一.分析说明 为了写出更加完善的tomcat启动方面的自动化脚本,健壮自己用于代码上线自动化部署的脚本,特分析下tomcat的bin目录下的starup.sh脚本,学习标准的sh脚本的编写方法,从中吸 ...

  4. Linux工作笔记030---Centos7.3启动tomcat 输入startup.sh后提示command not found

    JAVA技术交流QQ群:170933152 我是这样做的,直接输入:startup.sh是不行的会出标题的错误, 我这样做: sh startup.sh 这样就可以 了,下面是查的 --------- ...

  5. Shell-/bin/bash和/bin/sh解释器的误用引起的脚本语法错误

    文章目录 生猛干货 背景 问题分析 解决办法 知识点回顾 搞定Linux核心技术 生猛干货 从系统安装到程序员必备的Linux技能,还原真实工作场景,手把手带你实战演练 背景 下面的脚本,在Linux ...

  6. linux脚本登录启动失败,在Linux上检查用户登录成功与失败的shell脚本

    在Linux上检查用户登录成功与失败的shell脚本 Linux管理员的典型任务之一是检查Linux系统中成功和失败的登录尝试. 手动验证它们非常困难,因为" /var/log/secure ...

  7. 明明安装了模块,还是出现 错误 ImportError: No module named ‘pandas‘ 原因LINUX上安装了多个python环境,将脚本中python 改为python3问题解

    明明安装了模块,还是出现 错误 ImportError: No module named 'pandas'  原因LINUX上安装了多个python环境,将脚本中python 改为python3问题解 ...

  8. Linux下Dialog+Shell三层目录专业规范跳板机脚本

    #Dialog+Shell介绍 Dialog+Shell结合使用,方能体现出Dialog图形化的效果,在运维的时候,使用图形化界面,能给你一个更直观的感受,相信你会喜欢上他的 #创建脚本目录  [ro ...

  9. linux下java调用python脚本,java - 在Linux Terminal中以编程方式从Java调用python脚本 - 堆栈内存溢出...

    我正在开发一个Java应用程序,用于检查源文件中的补丁程序(是否存在). 用于检测补丁程序更改的核心逻辑位于python脚本[titled'patch.py​​']中,并且我的Java应用程序与此Py ...

  10. 扫盲 Linux&UNIX 命令行——从“电传打字机”聊到“shell 脚本编程”

    扫盲 Linux&UNIX 命令行--从"电传打字机"聊到"shell 脚本编程" 本文目标读者 虽然本文的标题号称是[扫盲],但俺相信:即使是一些 P ...

最新文章

  1. Debian 6.0 安装过程 及中文乱码
  2. visual studio 代码提示插件_程序员请收好:10个非常实用的 VS Code 插件
  3. 如何正确使用Git Flow 流程
  4. LaTeX技巧24:LaTeX常用命令集锦
  5. Android轮播图实现图片圆角,Android开发实现图片圆角的方法
  6. stl中copy()函数_std :: copy_if()函数以及C ++ STL中的示例
  7. js中判断数组中是否包含某元素的方法
  8. RocketMQ使用mmap - TODO
  9. TeeChart Pro VCL/FMX教程(三):图表分页
  10. C#资源,自定义控件等
  11. 「 LaTex 」写论文,natbib宏的参考文献引用格式详解
  12. Spring基础详解
  13. 防拍照防截屏,360企业安全云推“屏幕水印”助企业破解信息安全难题
  14. 论灾备之重要性:七场无法预见的数据中心灾难
  15. 缓解核心交换机网线过多的设计思路
  16. Oracle RAC集群安装,从零开始
  17. 【面试-八股文】万字app测试 面试题,助你吊打面试官系列
  18. 机器学习中误差的定义,以及过拟合现象的介绍
  19. 玩转亚马逊 AWS IoT(1): IoT 业务梳理
  20. H.266/VVC代码学习32:VTM5.0解码端最上层函数

热门文章

  1. 乐高叉车wedo教案_24乐高教育wedo编程摩天轮教案
  2. Kaptcha 验证码框架使用
  3. spring整合kaptcha验证码
  4. 计算机vb代码电阻,利用VB程序编写色环电阻阻值计算器
  5. android timepicker 设置颜色,android – 更改TimePicker文本颜色
  6. matlab怎么求过渡矩阵,求过渡矩阵的方法
  7. r语言和python语法对比_R语言和Python区别对比,你会选择哪一个?
  8. 【原创】2021-2000上市公司重污染企业数据、上市公司重污染行业数据(常用变量均包括,可直接用)
  9. [摘]研究方法 - 实证研究
  10. 【机器学习】解释机器学习模型