CN105512004A - 一种避免环境温、湿度异常导致服务器硬盘故障的方法 - Google Patents

一种避免环境温、湿度异常导致服务器硬盘故障的方法 Download PDF

Info

Publication number
CN105512004A
CN105512004A CN201510912091.0A CN201510912091A CN105512004A CN 105512004 A CN105512004 A CN 105512004A CN 201510912091 A CN201510912091 A CN 201510912091A CN 105512004 A CN105512004 A CN 105512004A
Authority
CN
China
Prior art keywords
hard disk
humidity
program
find
environmental temperature
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
CN201510912091.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.)
Inspur Electronic Information Industry Co Ltd
Original Assignee
Inspur Electronic Information Industry 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 Inspur Electronic Information Industry Co Ltd filed Critical Inspur Electronic Information Industry Co Ltd
Priority to CN201510912091.0A priority Critical patent/CN105512004A/zh
Publication of CN105512004A publication Critical patent/CN105512004A/zh
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3058Monitoring arrangements for monitoring environmental properties or parameters of the computing system or of the computing system component, e.g. monitoring of power, currents, temperature, humidity, position, vibrations
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/70Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer
    • G06F21/78Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer to assure secure storage of data
    • G06F21/80Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer to assure secure storage of data in storage media based on magnetic or optical technology, e.g. disks with sectors

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Hardware Design (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Computing Systems (AREA)
  • Quality & Reliability (AREA)
  • Debugging And Monitoring (AREA)

Abstract

本发明提供一种避免环境温、湿度异常导致服务器硬盘故障的方法,涉及计算机存储技术领域,本发明包括:(1)硬盘部件对环境温湿度要求;(2)定时收集环境信息方法;(3)自动化比较数值的脚本程序。通过Linux操作***下的计划任务功能定期收集环境温湿度信息,保存下来进行定时的比较,以服务器的各个硬盘部件对环境温湿度要求数值为基准值进行对比,可及时发现使用环境中的异常。

Description

一种避免环境温、湿度异常导致服务器硬盘故障的方法
技术领域
本发明涉及计算机存储技术领域,尤其涉及一种避免环境温、湿度异常导致服务器硬盘故障的方法。
背景技术
当使用中的服务器工作在异常的环境中,服务器的各个硬盘部件都会出现明显的性能下降、电气性能不稳定的情况,进而出现服务器宕机或业务终止运行的故障。
随着云计算、大数据等新型技术的发展,人们对服务器的稳定、可靠地工作的需求和平均无故障运行时间(MTBF)要求越来越高,如何有效缩短服务器故障修复时间,提高机器无故障运行时间是摆在每个维护人员面前的难题。
发明内容
为了解决以上的问题,本发明提出了一种避免环境温、湿度异常导致服务器硬盘故障的方法。具有定时开始,无人值守自动完成的特点。易用性上可以做到无人值守、Linux***下全自动完整的保存环境中温、湿度信息,并自动将现场环境信息与硬盘部件要求的环境值进行对比发现隐患,并及时关闭设备保障数据安全。
一种避免环境温、湿度异常导致服务器硬盘故障的方法包括:(1)硬盘部件对环境温湿度要求;(2)定时收集环境信息方法;(3)自动化比较数值的脚本程序;
其中:
(1)、硬盘部件对环境温湿度要求:硬盘部件工作时要求环境温度不高于60摄氏度,要求环境相对湿度不高于90%,如果超过上述环境温湿度限制,则硬盘工作状态会出现异常,导致业务的宕机和数据丢失的风险。
(2)、定时收集环境信息方法:使用指定的Linux***下程序完成机房环境温湿度信息收集,每间隔一个小时时间自动收集一次。
(3)、自动化比较数值的脚本程序:编写的一个自动化脚本,将收集到信息与硬盘部件温湿度要求数值进行比较的程序。
本发明包含两个程序文件find.sh和crontab定时执行文件,内容分别如下:
find.sh程序:
#!/bin/bash
#togetinformation;temstandsfortemperature;humstandsforhumidity;
/usr/bin/ipmitoolsdr>/linux/find.txt
tem="'/usr/bin/ipmitoolsdr|greptemperature1'"
hum="'/usr/bin/ipmitoolsdr|grephumidity1'"
#toanalyseandshutdownserver
error=0
function_analyse()
{
if[tem\>60C-ohum\>90];thenerror=1fi
}
function_shutdown()
{
if[error=1];then/sbin/shutdown-h5"Wehavefoundafatalerror,
serverwillshutdownin5minutes."
fi
}
crontab程序:
**/1***/linux/find.sh
说明:crontab程序为定时执行,每一个小时就自动调用find.sh程序一次。
本发明提出了一种基于Linux操作***的避免环境温、湿度异常导致服务器硬盘部件故障的方法,可以安全可靠地保留住硬盘中重要数据,使用Linux操作***下的脚本程序调用收集环境信息的程序,加上无人干预的自动定时、定期的Crontab指令保存收集环境信息并自动的进行计算分析判断是否有异常情况,达到自动、安全高效的判断环境状况的目的,当异常情况出现后自动发出提醒,安全关闭当前服务器,保存硬盘中重要数据,同时,提出的是一种多版本Linux***通用的收集并比较数值信息的方法。
附图说明
图1为***下需要的脚本文件和收集工具示意图;
图2为脚本的内容示意图;
图3为编辑定时执行的命令示意图;
图4为定时执行命令(间隔1小时执行一次)示意图;
图5为终端显示样本示意图。
具体实施方式
下面对本发明的内容进行更加详细的阐述:
1.在服务器操作***中任意一个目录拷贝find.sh程序,比如/linux目录,并执行chmod777find.sh,赋予该程序可执行权限。如图1、图2。
2.在服务器上部署定时执行程序crontab,使用命令crontab-uroot-e创建当前调用find.sh的程序:**/1***/linux/find.sh如图3、图4
3.监控过程及实施结果:
(1)***下创建好定时执行程序以及赋予find.sh程序可执行权限后,整个监控的过程会自动开始运行,无需手动干预。
(2)监控find.sh程序开始执行后,首先从传感器中获取读数,/usr/bin/ipmitoolsdr|greptemperature1
/usr/bin/ipmitoolsdr|grephumidity1
(3)获得相应传感器读数后,通过相应的公式计算,与正常环境温湿度值进行比较,如果环境温湿度值异常,则将中间变量赋值为1:
error=0
function_analyse()
{
if[tem\>60C-ohum\>90];thenerror=1fi
}
(4)通过判断中间变量值的变化,操作***判定服务器工作在异常的环境中,需要紧急停机,则发出警告信息"Wehavefoundafatalerror,serverwillshutdownin5minutes.",服务器则会在5分钟后自动关闭,保护硬盘部件及数据的安全。
function_shutdown()
{
if[error=1];then/sbin/shutdown-h5"Wehavefoundafatalerror,
serverwillshutdownin5minutes."
fi
}
最终显示的提醒信息样本如图5所示。
通过Linux操作***下的计划任务功能定期收集环境温湿度信息,保存下来进行定时的比较,以服务器的各个硬盘部件对环境温湿度要求数值为基准值进行对比,可及时发现使用环境中的异常。

Claims (5)

1.一种避免环境温、湿度异常导致服务器硬盘故障的方法,其特征在于,包括:(1)硬盘部件对环境温湿度要求;(2)定时收集环境信息方法;(3)自动化比较数值的脚本程序;
其中:
(1)、硬盘部件对环境温湿度要求:硬盘部件工作时要求环境温度不高于60摄氏度,要求环境相对湿度不高于90%;
(2)、定时收集环境信息方法:使用指定的Linux***下程序完成机房环境温湿度信息收集,每间隔一个小时时间自动收集一次;
(3)、自动化比较数值的脚本程序:编写的一个自动化脚本,将收集到信息与硬盘部件温湿度要求数值进行比较的程序。
2.根据权利要求1所述的方法,其特征在于,包括两个程序文件find.sh和crontab定时执行文件。
3.根据权利要求2所述的方法,其特征在于,
#!/bin/bash
#togetinformation;temstandsfortemperature;humstandsforhumidity;
/usr/bin/ipmitoolsdr>/linux/find.txt
tem="'/usr/bin/ipmitoolsdr|greptemperature1'"
hum="'/usr/bin/ipmitoolsdr|grephumidity1'"
#toanalyseandshutdownserver
error=0
function_analyse()
{
if[tem\>60C-ohum\>90];thenerror=1fi
}
function_shutdown()
{
if[error=1];then/sbin/shutdown-h5"Wehavefoundafatalerror,
serverwillshutdownin5minutes."
fi
}。
4.根据权利要求2所述的方法,其特征在于,
crontab程序:
**/1***/linux/find.sh。
5.根据权利要求4所述的方法,其特征在于,crontab程序为定时执行,每一个小时就自动调用find.sh程序一次。
CN201510912091.0A 2015-12-11 2015-12-11 一种避免环境温、湿度异常导致服务器硬盘故障的方法 Pending CN105512004A (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510912091.0A CN105512004A (zh) 2015-12-11 2015-12-11 一种避免环境温、湿度异常导致服务器硬盘故障的方法

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510912091.0A CN105512004A (zh) 2015-12-11 2015-12-11 一种避免环境温、湿度异常导致服务器硬盘故障的方法

Publications (1)

Publication Number Publication Date
CN105512004A true CN105512004A (zh) 2016-04-20

Family

ID=55720005

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510912091.0A Pending CN105512004A (zh) 2015-12-11 2015-12-11 一种避免环境温、湿度异常导致服务器硬盘故障的方法

Country Status (1)

Country Link
CN (1) CN105512004A (zh)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107122685A (zh) * 2017-04-27 2017-09-01 国信优易数据有限公司 一种大数据安全存储方法和设备
CN107943654A (zh) * 2017-11-24 2018-04-20 郑州云海信息技术有限公司 一种快速判定服务器环境温度监控异常原因的方法
CN109032891A (zh) * 2018-07-23 2018-12-18 郑州云海信息技术有限公司 一种云计算服务器硬盘故障预测方法及装置
CN111274098A (zh) * 2018-12-05 2020-06-12 杭州海康威视数字技术股份有限公司 一种基于IoT的存储设备报警方法及装置

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6651190B1 (en) * 2000-03-14 2003-11-18 A. Worley Independent remote computer maintenance device
CN103684817A (zh) * 2012-09-06 2014-03-26 百度在线网络技术(北京)有限公司 数据中心的监控方法及***
CN103905253A (zh) * 2014-04-04 2014-07-02 浪潮电子信息产业股份有限公司 一种基于Nagios和BMC的服务器监控管理方法
CN104898533A (zh) * 2015-04-29 2015-09-09 陈龙晶 机房监控方法、装置及***

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6651190B1 (en) * 2000-03-14 2003-11-18 A. Worley Independent remote computer maintenance device
CN103684817A (zh) * 2012-09-06 2014-03-26 百度在线网络技术(北京)有限公司 数据中心的监控方法及***
CN103905253A (zh) * 2014-04-04 2014-07-02 浪潮电子信息产业股份有限公司 一种基于Nagios和BMC的服务器监控管理方法
CN104898533A (zh) * 2015-04-29 2015-09-09 陈龙晶 机房监控方法、装置及***

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107122685A (zh) * 2017-04-27 2017-09-01 国信优易数据有限公司 一种大数据安全存储方法和设备
CN107943654A (zh) * 2017-11-24 2018-04-20 郑州云海信息技术有限公司 一种快速判定服务器环境温度监控异常原因的方法
CN109032891A (zh) * 2018-07-23 2018-12-18 郑州云海信息技术有限公司 一种云计算服务器硬盘故障预测方法及装置
CN111274098A (zh) * 2018-12-05 2020-06-12 杭州海康威视数字技术股份有限公司 一种基于IoT的存储设备报警方法及装置
CN111274098B (zh) * 2018-12-05 2023-10-10 杭州海康威视数字技术股份有限公司 一种基于IoT的存储设备报警方法及装置

Similar Documents

Publication Publication Date Title
US10958548B2 (en) Generating production server load activity for a test server
US8577845B2 (en) Remote, granular restore from full virtual machine backup
CN105512004A (zh) 一种避免环境温、湿度异常导致服务器硬盘故障的方法
US9766965B2 (en) System and method for monitoring and detecting faulty storage devices
US20130318397A1 (en) Automated Build, Deploy, and Testing Environment for Firmware
TW201301137A (zh) 虛擬機器影像分析
CN102099811A (zh) 用于离线虚拟环境中的或与之相关的改进的方法和***
CN105184166A (zh) 基于内核的安卓程序实时行为分析方法及***
CN104636242A (zh) 一种基于Linux操作***的***日志自动删除重复内容的方法
CN105024879A (zh) 虚拟机故障检测、恢复***及虚拟机检测、恢复、启动方法
CN104714863A (zh) 一种基于Linux操作***的***宕机后Raid卡日志完整保存的方法
US9734330B2 (en) Inspection and recovery method and apparatus for handling virtual machine vulnerability
CN107181626B (zh) 分布式存储集群***网络带宽监测方法及***
KR102194974B1 (ko) 프로세스 검증 기능이 구비된 전력 계통 감시 및 제어 시스템
Feminella et al. Piloteur: a lightweight platform for pilot studies of smart homes
US9032199B1 (en) Systems, devices, and methods for capturing information, creating loadable images, and providing for restarts in a computer system
US11436073B2 (en) Fault indications for storage system commands
CN106066820B (zh) 验证挂载恢复卷的自动化测试方法及***
CN113900893A (zh) 一种日志获取方法及其相关设备
CN106021089B (zh) 一种补丁接口的测试方法及装置
CN113110955B (zh) 一种***盘修复方法、存储介质及设备
KR20140142782A (ko) 디바이스에서 사용자 데이터의 무결성을 보장하는 데이터 획득 장치 및 방법
CN106713073A (zh) 一种服务器监控装备以及监控方法
CN113687869B (zh) 一种兼容txt功能和asd功能的方法和装置
Sultania Monitoring and Failure Recovery of Cloud-Managed Digital Signage

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: 20160420

WD01 Invention patent application deemed withdrawn after publication