the
技术领域technical field
本发明涉及计算机存储技术领域,具体地说是一种基于LINUX操作系统的RAID卡日志完整保存的方法。The invention relates to the technical field of computer storage, in particular to a method for completely preserving logs of a RAID card based on a LINUX operating system.
背景技术Background technique
Linux是一套免费使用和自由传播的类Unix操作系统,是一个基于POSIX和UNIX的多用户、多任务、支持多线程和多CPU的操作系统。它能运行主要的UNIX工具软件、应用程序和网络协议。它支持32位和64位硬件。Linux继承了Unix以网络为核心的设计思想,是一个性能稳定的多用户网络操作系统。Linux is a set of Unix-like operating systems that are free to use and spread freely. It is a multi-user, multi-tasking, multi-threading and multi-CPU operating system based on POSIX and UNIX. It can run major UNIX utility software, application programs and network protocols. It supports 32-bit and 64-bit hardware. Linux inherits Unix's network-centric design idea and is a multi-user network operating system with stable performance.
Linux操作系统诞生于1991 年的10 月5 日(这是第一次正式向外公布的时间)。Linux存在着许多不同的Linux版本,但它们都使用了Linux内核。Linux可安装在各种计算机硬件设备中,比如手机、平板电脑、路由器、视频游戏控制台、台式计算机、大型机和超级计算机。The Linux operating system was born on October 5, 1991 (this is the first time it was officially announced to the outside world). Linux There are many different Linux distributions, but they all use the Linux kernel. Linux can be installed on a variety of computer hardware devices such as cell phones, tablets, routers, video game consoles, desktop computers, mainframes and supercomputers.
云计算(cloud computing)是基于互联网的相关服务的增加、使用和交付模式,通常涉及通过互联网来提供动态易扩展且经常是虚拟化的资源。云是网络、互联网的一种比喻说法。过去在图中往往用云来表示电信网,后来也用来表示互联网和底层基础设施的抽象。Cloud computing is the growth, usage, and delivery model of Internet-based related services, usually involving the provision of dynamically scalable and often virtualized resources over the Internet. Cloud is a metaphor for network, internet. In the past, the cloud was often used to represent the telecommunications network in the figure, and later it was also used to represent the abstraction of the Internet and the underlying infrastructure.
云计算是一种按使用量付费的模式,这种模式提供可用的、便捷的、按需的网络访问, 进入可配置的计算资源共享池(资源包括网络,服务器,存储,应用软件,服务),这些资源能够被快速提供,只需投入很少的管理工作,或与服务供应商进行很少的交互。Cloud computing is a pay-by-use model that provides available, convenient, and on-demand network access and access to a configurable pool of computing resources (resources include networks, servers, storage, application software, and services) , these resources can be provisioned quickly with little administrative effort or interaction with the service provider.
RAID卡:RAID卡是用来实现RAID功能的板卡,RAID是英文Redundant Array of Independent Disks的缩写,翻译成中文即为独立磁盘冗余阵列,或简称磁盘阵列。RAID是一种把多块独立的硬盘(物理硬盘)按不同方式组合起来形成一个硬盘组(逻辑硬盘),从而提供比单个硬盘更高的存储性能和提供数据冗余的技术。RAID card: A RAID card is a board used to realize the RAID function. RAID is the abbreviation of Redundant Array of Independent Disks in English. It is translated into Chinese as Redundant Array of Independent Disks, or disk array for short. RAID is a technology that combines multiple independent hard disks (physical hard disks) in different ways to form a hard disk group (logical hard disk), thereby providing higher storage performance and data redundancy than a single hard disk.
随着云计算、大数据等新型技术的发展,人们对服务器的稳定、可靠地工作的需求和平均无故障运行时间(MTBF)要求越来越高,如何有效缩短服务器故障修复时间,提高故障分析的效率和准确度是摆在每个维护人员面前的难题。With the development of new technologies such as cloud computing and big data, people have higher and higher requirements for the stable and reliable operation of servers and the mean time between failures (MTBF). How to effectively shorten the repair time of server faults and improve fault analysis High efficiency and accuracy is a difficult problem for every maintenance personnel.
发明内容Contents of the invention
本发明的技术任务是提供一种基于LINUX操作系统的RAID卡日志完整保存的方法。The technical task of the present invention is to provide a method for completely preserving logs of RAID cards based on the LINUX operating system.
本发明的技术任务是按以下方式实现的,该方法步骤如下:将收集RAID卡日志的工具程序和执行的脚本程序放置到操作系统的某一个目录下,将收集到的RAID卡信息文件定时保留在该目录下,通过该目录可查看需要的信息。The technical task of the present invention is realized in the following manner, and the method steps are as follows: the tool program and the executed script program for collecting the RAID card log are placed under a certain directory of the operating system, and the collected RAID card information files are regularly reserved Under this directory, you can view the required information through this directory.
所述的脚本程序可以自动的调用收集过程中需要的工具程序,同时在执行此脚本程序时,程序本身会自动判断Linux操作系统的版本是32位还是64位的,针对不同的版本,使用对应的工具程序进行收集信息的工作,完成收集的步骤后,RAID卡的日志信息会保留在指定的目录下。The script program can automatically call the tool program needed in the collection process. At the same time, when the script program is executed, the program itself will automatically judge whether the version of the Linux operating system is 32-bit or 64-bit. For different versions, use the corresponding The tool program collects information. After the collection steps are completed, the log information of the RAID card will be kept in the specified directory.
所述的脚本程序将收集信息使用压缩的方法将所有的信息文件打包后压缩成一个体积很小的文件,最后保存在指定的系统目录下。The script program will collect information and compress all information files into a file with a small size using a compression method, and finally save it in the specified system directory.
所述的定时保留RAID卡信息文件是通过Linux系统下的Crontab命令,编写指定时间或者间隔的指令来实现的,让操作系统在指定的时间开始收集信息的工作,收集工作开始就会执行指定目录的指定脚本程序,脚本程序执行后就可以完整的得到需要的RAID卡信息并将每一次保存的日志信息按照收集时刻的时间进行命名保存到指定的目录下。The described regular retention of the RAID card information file is realized by the Crontab command under the Linux system, and the command of the specified time or interval is written to allow the operating system to start collecting information at the specified time, and the specified directory will be executed at the beginning of the collection work. The specified script program, after the script program is executed, the required RAID card information can be obtained completely, and the log information saved each time is named according to the collection time and saved in the specified directory.
本发明的一种基于LINUX操作系统的RAID卡日志完整保存的方法,可以安全可靠地保留住RAID卡中记录的重要信息,使用Linux操作系统下的脚本程序调用收集RAID卡日志信息的程序,加上无人干预的自动定时、定期的Crontab指令保存RAID卡日志信息,达到自动、安全高效的保存有价值信息目的,同时提出的是一种多版本Linux系统通用的保存RAID卡日志信息的方法。A kind of method based on the RAID card log of LINUX operating system of the present invention is completely preserved, can keep the important information recorded in the RAID card safely and reliably, use the script program under the Linux operating system to call and collect the program of RAID card log information, add Automatic timing and regular Crontab commands save RAID card log information without human intervention, so as to achieve the purpose of automatically, safely and efficiently saving valuable information. At the same time, a method for saving RAID card log information common to multi-version Linux systems is proposed.
附图说明Description of drawings
附图1为一种基于LINUX操作系统的RAID卡日志完整保存的方法的脚本的内容。Accompanying drawing 1 is the content of the script of the method for the complete preservation of the RAID card log based on the LINUX operating system.
附图2为一种基于LINUX操作系统的RAID卡日志完整保存的方法的编辑定时执行的命令。Attached Figure 2 is a command for editing and timing execution of a method for completely saving RAID card logs based on the LINUX operating system.
具体实施方式Detailed ways
实施例1:Example 1:
该方法步骤如下:将收集RAID卡日志的工具程序和执行的脚本程序放置到操作系统的某一个目录下,将收集到的RAID卡信息文件定时保留在该目录下,通过该目录可查看需要的信息。The method steps are as follows: the tool program and the executed script program for collecting RAID card logs are placed in a certain directory of the operating system, and the collected RAID card information files are regularly kept in this directory, and the required files can be viewed through this directory. information.
该脚本程序可以自动的调用收集过程中需要的工具程序,同时在执行此脚本程序时,程序本身会自动判断Linux操作系统的版本是32位还是64位的,针对不同的版本,使用对应的工具程序进行收集信息的工作,完成收集的步骤后,RAID卡的日志信息会保留在指定的目录下。The script program can automatically call the tool program needed in the collection process. At the same time, when the script program is executed, the program itself will automatically judge whether the version of the Linux operating system is 32-bit or 64-bit, and use the corresponding tool for different versions. The program collects information. After the collection steps are completed, the log information of the RAID card will be kept in the specified directory.
实施例2:Example 2:
该方法步骤如下:将收集RAID卡日志的工具程序和执行的脚本程序放置到操作系统的某一个目录下,将收集到的RAID卡信息文件定时保留在该目录下,通过该目录可查看需要的信息。The method steps are as follows: the tool program and the executed script program for collecting RAID card logs are placed in a certain directory of the operating system, and the collected RAID card information files are regularly kept in this directory, and the required files can be viewed through this directory. information.
该脚本程序可以自动的调用收集过程中需要的工具程序,同时在执行此脚本程序时,程序本身会自动判断Linux操作系统的版本是32位还是64位的,针对不同的版本,使用对应的工具程序进行收集信息的工作,完成收集的步骤后,RAID卡的日志信息会保留在指定的目录下;同时,脚本程序将收集信息使用压缩的方法将所有的信息文件打包后压缩成一个体积很小的文件,最后保存在指定的系统目录下。The script program can automatically call the tool program needed in the collection process. At the same time, when the script program is executed, the program itself will automatically judge whether the version of the Linux operating system is 32-bit or 64-bit, and use the corresponding tool for different versions. The program collects information. After the collection steps are completed, the log information of the RAID card will be kept in the specified directory; at the same time, the script program will collect the information and use the compression method to pack all the information files into a small volume. The file is finally saved in the specified system directory.
实施例3:Example 3:
该方法步骤如下:将收集RAID卡日志的工具程序和执行的脚本程序放置到操作系统的某一个目录下,将收集到的RAID卡信息文件定时保留在该目录下,通过该目录可查看需要的信息。The method steps are as follows: the tool program and the executed script program for collecting RAID card logs are placed in a certain directory of the operating system, and the collected RAID card information files are regularly kept in this directory, and the required files can be viewed through this directory. information.
该脚本程序可以自动的调用收集过程中需要的工具程序,同时在执行此脚本程序时,程序本身会自动判断Linux操作系统的版本是32位还是64位的,针对不同的版本,使用对应的工具程序进行收集信息的工作,完成收集的步骤后,RAID卡的日志信息会保留在指定的目录下;同时,脚本程序将收集信息使用压缩的方法将所有的信息文件打包后压缩成一个体积很小的文件,最后保存在指定的系统目录下。The script program can automatically call the tool program needed in the collection process. At the same time, when the script program is executed, the program itself will automatically judge whether the version of the Linux operating system is 32-bit or 64-bit, and use the corresponding tool for different versions. The program collects information. After the collection steps are completed, the log information of the RAID card will be kept in the specified directory; at the same time, the script program will collect the information and use the compression method to pack all the information files into a small volume. The file is finally saved in the specified system directory.
上述定时保留RAID卡信息文件是通过Linux系统下的Crontab命令,编写指定时间或者间隔的指令来实现的,让操作系统在指定的时间开始收集信息的工作,收集工作开始就会执行指定目录的指定脚本程序,脚本程序执行后就可以完整的得到需要的RAID卡信息并将每一次保存的日志信息按照收集时刻的时间进行命名保存到指定的目录下。The above regularly reserved RAID card information files are realized through the Crontab command under the Linux system, and the instructions of the specified time or interval are written, so that the operating system starts collecting information at the specified time, and the specified directory will be executed when the collection work starts. Script program, after the script program is executed, the required RAID card information can be completely obtained and the log information saved each time is named according to the collection time and saved in the specified directory.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201410252022.7ACN103995772A (en) | 2014-06-10 | 2014-06-10 | RAID card log completely-storing method based on LINUX operation system |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201410252022.7ACN103995772A (en) | 2014-06-10 | 2014-06-10 | RAID card log completely-storing method based on LINUX operation system |
| Publication Number | Publication Date |
|---|---|
| CN103995772Atrue CN103995772A (en) | 2014-08-20 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201410252022.7APendingCN103995772A (en) | 2014-06-10 | 2014-06-10 | RAID card log completely-storing method based on LINUX operation system |
| Country | Link |
|---|---|
| CN (1) | CN103995772A (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN104636242A (en)* | 2015-02-06 | 2015-05-20 | 浪潮电子信息产业股份有限公司 | Method for automatically deleting repeated content in system logs on basis of Linux operating system |
| CN104714863A (en)* | 2015-02-06 | 2015-06-17 | 浪潮电子信息产业股份有限公司 | Method for completely storing Raid card logs on basis of Linux operation system after system crashes |
| CN106502861A (en)* | 2016-10-20 | 2017-03-15 | 郑州云海信息技术有限公司 | A kind of method for penetrating RAID card reading hard disk SMART information |
| CN107122275A (en)* | 2017-04-28 | 2017-09-01 | 郑州云海信息技术有限公司 | It is a kind of to check the device and method that RMT tests information |
| CN107562388A (en)* | 2017-10-11 | 2018-01-09 | 郑州云海信息技术有限公司 | Method for reading data, device and medium during a kind of RAID initialization |
| CN108459932A (en)* | 2018-03-02 | 2018-08-28 | 郑州云海信息技术有限公司 | A kind of method, apparatus and equipment of management RAID card |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US7493424B1 (en)* | 2004-04-30 | 2009-02-17 | Netapp, Inc. | Network storage system with shared software stack for LDMA and RDMA |
| CN102025536A (en)* | 2010-11-25 | 2011-04-20 | 成都勤智数码科技有限公司 | A Unix/Linux system operation and maintenance data collection method and device |
| CN102662787A (en)* | 2012-04-20 | 2012-09-12 | 浪潮电子信息产业股份有限公司 | Method for protecting system disk RAID (redundant array of independent disks) |
| CN103198000A (en)* | 2013-04-02 | 2013-07-10 | 浪潮电子信息产业股份有限公司 | Method for positioning faulted memory in linux system |
| CN103207820A (en)* | 2013-02-05 | 2013-07-17 | 北京百度网讯科技有限公司 | Method and device for fault positioning of hard disk on basis of raid card log |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US7493424B1 (en)* | 2004-04-30 | 2009-02-17 | Netapp, Inc. | Network storage system with shared software stack for LDMA and RDMA |
| CN102025536A (en)* | 2010-11-25 | 2011-04-20 | 成都勤智数码科技有限公司 | A Unix/Linux system operation and maintenance data collection method and device |
| CN102662787A (en)* | 2012-04-20 | 2012-09-12 | 浪潮电子信息产业股份有限公司 | Method for protecting system disk RAID (redundant array of independent disks) |
| CN103207820A (en)* | 2013-02-05 | 2013-07-17 | 北京百度网讯科技有限公司 | Method and device for fault positioning of hard disk on basis of raid card log |
| CN103198000A (en)* | 2013-04-02 | 2013-07-10 | 浪潮电子信息产业股份有限公司 | Method for positioning faulted memory in linux system |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN104636242A (en)* | 2015-02-06 | 2015-05-20 | 浪潮电子信息产业股份有限公司 | Method for automatically deleting repeated content in system logs on basis of Linux operating system |
| CN104714863A (en)* | 2015-02-06 | 2015-06-17 | 浪潮电子信息产业股份有限公司 | Method for completely storing Raid card logs on basis of Linux operation system after system crashes |
| CN106502861A (en)* | 2016-10-20 | 2017-03-15 | 郑州云海信息技术有限公司 | A kind of method for penetrating RAID card reading hard disk SMART information |
| CN106502861B (en)* | 2016-10-20 | 2019-06-04 | 郑州云海信息技术有限公司 | A method for reading hard disk SMART information through RAID card |
| CN107122275A (en)* | 2017-04-28 | 2017-09-01 | 郑州云海信息技术有限公司 | It is a kind of to check the device and method that RMT tests information |
| CN107562388A (en)* | 2017-10-11 | 2018-01-09 | 郑州云海信息技术有限公司 | Method for reading data, device and medium during a kind of RAID initialization |
| CN108459932A (en)* | 2018-03-02 | 2018-08-28 | 郑州云海信息技术有限公司 | A kind of method, apparatus and equipment of management RAID card |
| Publication | Publication Date | Title |
|---|---|---|
| US20230138736A1 (en) | Cluster file system-based data backup method and apparatus, and readable storage medium | |
| US11507466B2 (en) | Method and apparatus of managing application workloads on backup and recovery system | |
| CN106168885B (en) | A kind of method and system of the logical volume dynamic capacity-expanding based on LVM | |
| CN103995772A (en) | RAID card log completely-storing method based on LINUX operation system | |
| US10701130B2 (en) | Methods and systems that use feedback to distribute and manage alerts | |
| Liu et al. | Live migration of virtual machine based on full system trace and replay | |
| CN110188000B (en) | Application disaster recovery methods and systems based on virtualization and iSCSI or FC | |
| DK3008600T3 (en) | Backup of a virtual machine from a storage snapshot | |
| US9569457B2 (en) | Data processing method and apparatus for distributed systems | |
| US9658925B1 (en) | Systems and methods for restoring application data | |
| US20120084768A1 (en) | Capturing Multi-Disk Virtual Machine Images Automatically | |
| US9940152B2 (en) | Methods and systems for integrating a volume shadow copy service (VSS) requester and/or a VSS provider with virtual volumes (VVOLS) | |
| CN108804189B (en) | Cloud desktop management method and system | |
| US9940331B1 (en) | Proactive scavenging of file system snaps | |
| CN102142032B (en) | Method and system for reading and writing data of distributed file system | |
| JP7677725B2 (en) | Data processing method, device, equipment, and program | |
| US9613053B1 (en) | Techniques for providing access to a virtualized block storage device over a file-based network storage protocol | |
| CN104486255A (en) | Service resource scheduling method and device | |
| CN104714863A (en) | Method for completely storing Raid card logs on basis of Linux operation system after system crashes | |
| WO2015057831A1 (en) | Systems and methods for backing up a live virtual machine | |
| US10592169B2 (en) | Methods and systems that efficiently store metric data to enable period and peak detection | |
| CN103744765B (en) | Disk access request monitoring system and method in virtualization environment | |
| WO2021088423A1 (en) | Memory management method and system for raid io, terminal and storage medium | |
| Saini et al. | An application-based performance evaluation of nasa's nebula cloud computing platform | |
| CN111376255A (en) | Robot data acquisition method and device and terminal equipment |
| 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:20140820 | |
| WD01 | Invention patent application deemed withdrawn after publication |