CN105630715A - 一种基于Multipath的存储预警方法 - Google Patents

一种基于Multipath的存储预警方法 Download PDF

Info

Publication number
CN105630715A
CN105630715A CN201510961195.0A CN201510961195A CN105630715A CN 105630715 A CN105630715 A CN 105630715A CN 201510961195 A CN201510961195 A CN 201510961195A CN 105630715 A CN105630715 A CN 105630715A
Authority
CN
China
Prior art keywords
multipath
storage
early warning
status
frequency
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201510961195.0A
Other languages
English (en)
Inventor
刘勇彬
杨松
季统凯
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
G Cloud Technology Co Ltd
Original Assignee
G Cloud Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by G Cloud Technology Co Ltd filed Critical G Cloud Technology Co Ltd
Priority to CN201510961195.0A priority Critical patent/CN105630715A/zh
Publication of CN105630715A publication Critical patent/CN105630715A/zh
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/14Handling requests for interconnection or transfer
    • G06F13/16Handling requests for interconnection or transfer for access to memory bus
    • G06F13/1668Details of memory controller
    • G06F13/1684Details of memory controller using multiple buses

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

本发明涉及云计算管理技术领域,特别是指一种基于Multipath的存储预警方法。本发明首先安装Multipath,配置存储多路径;其次设置存储路径状态检查频率;接着按照频率获取当前存储路径状态;然后检查当前路径状态是否出现异常,若异常,发送邮件通知系统管理员;最后进入下一次检查频率。本发明的方法提高存储多路径的稳定性,为Multipath主动预警,让管理员及时发现问题,并快速做出响应;可降低后期运维成本,无需定期检查;可以用于云计算的存储预警。

Description

一种基于Multipath的存储预警方法
技术领域
本发明涉及云计算管理技术领域,特别是指一种基于Multipath的存储预警方法。
背景技术
在云计算环境下,存储被广泛使用,对于存储的高可用性要求较高,通常存储厂家都会提供多路径软件来保障存储的稳定性,但是不同的厂商基于不同的操作系统,都提供了不同的版本。并且有的厂商,软件和硬件也不是一起卖的,如果要使用多路径软件的话,可能还需要向厂商购买license才行。比如EMC公司基于linux下的多路径软件,就需要单独的购买license。为了统一及节省多路径软件成本,传统的做法一般是使用免费的Multipath,Multipath是一个比较通用的包,可以支持大多数存储厂商的设备,即使是一些不是出名的厂商,通过对配置文件进行稍作修改,也是可以支持并运行的很好的。
使用Multipath依然存在一些不足之处,比如没有预警机制,虽然在多路径的情况下断开一条线路后,能够自动切换,但是需要管理员手工检查的时候才能发现存储路径是否出现异常,不能及时发现问题。
发明内容
本发明解决的技术问题在于提供一种基于Multipath的存储预警方法,解决传统方法存在的不足,为Multipath提供一种预警方法。
本发明解决上述技术问题的技术方案是:
所述的方法包括如下步骤:
步骤1:安装Multipath,配置存储多路径;
步骤2:设置存储路径状态检查频率;
步骤3:按照频率获取当前存储路径状态;
步骤4:检查当前路径状态是否出现异常;
步骤5:若异常,发送邮件通知系统管理员;
步骤6:进入下一次检查频率。
所述的Multipath,是指服务器通过多条物理路径连接到存储设备,当因为主机HBA卡、线缆、交换机或者存储设备的RAID控制器故障等原因造成一条物理路径失效时,服务器可以将通过此物理路径的I/O转移到其他正常的物理路径上面,应用程序不会觉察到这种改变,从而提高系统的可用性;
所述的HBA,即主机总线适配器(HostBusAdapter),是一个在服务器和存储装置间提供输入/输出(I/O)处理和物理连接的电路板或集成电路适配器;
所述的RAID控制器是一种硬件设备或软件程序,用于管理计算机或存储阵列中的硬盘驱动器(HDD)/固态硬盘(SSD),以便它们能如逻辑部件一样工作,各施其职。
所述的存储路径状态,即当前从物理服务器到存储之间的连接状态,正常是active表示;
所述的active,即表示激活状态,当前存储路径可用;
所述的频率,即单位时间内主动轮询检查当前存储状态的次数。
所述的异常,是指路径状态出现非active状态。
本发明的方法提高存储多路径的稳定性,为Multipath主动预警,让管理员及时发现问题,并快速做出响应;本发明方法可降低后期运维成本,无需定期检查。
附图说明
下面结合附图对本发明进一步说明:
图1为本发明的流程图。
具体实施方式
本发明的实施方式有多种,这里将基于NETAPP存储多路径为例说明其中一种实现方法,流程图如图1所示,具体实施过程如下:
1、安装Multipath,配置存储多路径
2、设置存储路径状态检查频率
#在gTunnel.conf配置文件设置存储路径状态检查频率
#vi/etc/gTunnel/gTunnel.conf
#multipathcheck=3600//定义一个小时检查一次
3、按照频率获取当前存储路径状态
4、检查当前路径状态是否出现异常
5、若异常,发送邮件通知系统管理员
#根据配置好的管理员邮箱地址,发送邮件,通知管理员异常路径信息6、进入下一次检查频率。

Claims (4)

1.一种基于Multipath的存储预警方法,其特征在于:所述的方法包括如下步骤:
步骤1:安装Multipath,配置存储多路径;
步骤2:设置存储路径状态检查频率;
步骤3:按照频率获取当前存储路径状态;
步骤4:检查当前路径状态是否出现异常;
步骤5:若异常,发送邮件通知系统管理员;
步骤6:进入下一次检查频率。
2.根据权利要求1所述的一种基于Multipath的存储预警方法,其特征在于:所述的Multipath,是指服务器通过多条物理路径连接到存储设备,当因为主机HBA卡、线缆、交换机或者存储设备的RAID控制器故障等原因造成一条物理路径失效时,服务器可以将通过此物理路径的I/O转移到其他正常的物理路径上面,应用程序不会觉察到这种改变,从而提高系统的可用性;
所述的HBA,即主机总线适配器(HostBusAdapter),是一个在服务器和存储装置间提供输入/输出(I/O)处理和物理连接的电路板或集成电路适配器;
所述的RAID控制器是一种硬件设备或软件程序,用于管理计算机或存储阵列中的硬盘驱动器(HDD)/固态硬盘(SSD),以便它们能如逻辑部件一样工作,各施其职。
3.根据权利要求1或2所述的一种基于Multipath的存储预警方法,其特征在于:所述的存储路径状态,即当前从物理服务器到存储之间的连接状态,正常是active表示;
所述的active,即表示激活状态,当前存储路径可用;
所述的频率,即单位时间内主动轮询检查当前存储状态的次数。
4.根据权利要求3所述的一种基于Multipath的存储预警方法,其特征在于:所述的异常,是指路径状态出现非active状态。
CN201510961195.0A 2015-12-18 2015-12-18 一种基于Multipath的存储预警方法 Pending CN105630715A (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510961195.0A CN105630715A (zh) 2015-12-18 2015-12-18 一种基于Multipath的存储预警方法

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510961195.0A CN105630715A (zh) 2015-12-18 2015-12-18 一种基于Multipath的存储预警方法

Publications (1)

Publication Number Publication Date
CN105630715A true CN105630715A (zh) 2016-06-01

Family

ID=56045681

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510961195.0A Pending CN105630715A (zh) 2015-12-18 2015-12-18 一种基于Multipath的存储预警方法

Country Status (1)

Country Link
CN (1) CN105630715A (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109120522A (zh) * 2018-08-21 2019-01-01 郑州云海信息技术有限公司 一种多路径状态监测方法及装置
CN111901399A (zh) * 2020-07-08 2020-11-06 苏州浪潮智能科技有限公司 云平台块设备异常审计方法、装置、设备及存储介质

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1641611A (zh) * 2004-01-15 2005-07-20 国际商业机器公司 多重连接管理系统
US20100122111A1 (en) * 2008-11-10 2010-05-13 International Business Machines Corporation Dynamic physical and virtual multipath i/o
CN102270173A (zh) * 2011-07-21 2011-12-07 哈尔滨工业大学 基于scsi驱动层的故障注入工具
CN104142890A (zh) * 2014-08-01 2014-11-12 浪潮电子信息产业股份有限公司 一种多路径稳定性和磁盘性能检查方法
CN104333586A (zh) * 2014-10-31 2015-02-04 山东超越数控电子有限公司 一种基于光纤链路的san存储设计方法

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1641611A (zh) * 2004-01-15 2005-07-20 国际商业机器公司 多重连接管理系统
US20100122111A1 (en) * 2008-11-10 2010-05-13 International Business Machines Corporation Dynamic physical and virtual multipath i/o
CN102270173A (zh) * 2011-07-21 2011-12-07 哈尔滨工业大学 基于scsi驱动层的故障注入工具
CN104142890A (zh) * 2014-08-01 2014-11-12 浪潮电子信息产业股份有限公司 一种多路径稳定性和磁盘性能检查方法
CN104333586A (zh) * 2014-10-31 2015-02-04 山东超越数控电子有限公司 一种基于光纤链路的san存储设计方法

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
DAOWOO: "Linux Multipath代码分析", 《HTTPS://WWW.CNBLOGS.COM/D-TEC/ARCHIVE/2013/03/01/2938969.HTML》 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109120522A (zh) * 2018-08-21 2019-01-01 郑州云海信息技术有限公司 一种多路径状态监测方法及装置
CN109120522B (zh) * 2018-08-21 2021-07-27 郑州云海信息技术有限公司 一种多路径状态监测方法及装置
CN111901399A (zh) * 2020-07-08 2020-11-06 苏州浪潮智能科技有限公司 云平台块设备异常审计方法、装置、设备及存储介质
CN111901399B (zh) * 2020-07-08 2022-12-09 苏州浪潮智能科技有限公司 云平台块设备异常审计方法、装置、设备及存储介质
US11782609B2 (en) 2020-07-08 2023-10-10 Inspur Suzhou Intelligent Technology Co., Ltd. Method and apparatus for auditing abnormality of block device in cloud platform, device, and storage medium

Similar Documents

Publication Publication Date Title
US8510606B2 (en) Method and apparatus for SAS speed adjustment
US11210172B2 (en) System and method for information handling system boot status and error data capture and analysis
US7490176B2 (en) Serial attached SCSI backplane and detection system thereof
US10846159B2 (en) System and method for managing, resetting and diagnosing failures of a device management bus
US20160011641A1 (en) Power management for pcie switches and devices in a multi-root input-output virtualization blade chassis
US20150143054A1 (en) Managing Faulty Memory Pages In A Computing System
CN104239187A (zh) 硬盘状态指示装置
US20140122753A1 (en) Electronic Device, Management Method Thereof, and Rack Serving System
US20120110389A1 (en) Method for obtaining storage device state signal by using bmc
US8271704B2 (en) Status information saving among multiple computers
CN109086192B (zh) 一种基于ipmi的板载sata硬盘点灯系统及方法
CN103809680A (zh) 电脑系统
CN107294759B (zh) 服务器系统及数据存取方法
US10853204B2 (en) System and method to detect and recover from inoperable device management bus
US20130091380A1 (en) Dynamically Reconfiguring A Primary Processor Identity Within A Multi-Processor Socket Server
US9817735B2 (en) Repairing a hardware component of a computing system while workload continues to execute on the computing system
US20160197994A1 (en) Storage array confirmation of use of a path
CN105630715A (zh) 一种基于Multipath的存储预警方法
US8554974B2 (en) Expanding functionality of one or more hard drive bays in a computing system
US9411666B2 (en) Anticipatory protection of critical jobs in a computing system
US20110231674A1 (en) Independent drive power control
US10990496B2 (en) System and method to derive health information for a general purpose processing unit through aggregation of board parameters
US11910558B2 (en) Chassis management controller monitored overcurrent protection for modular information handling systems
US11373782B2 (en) Indicator activation over an alternative cable path
US10055272B2 (en) Storage system and method for controlling same

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20160601

WD01 Invention patent application deemed withdrawn after publication