CN108762689B - Method, device and equipment for automatically creating disk array and storage medium - Google Patents

Method, device and equipment for automatically creating disk array and storage medium Download PDF

Info

Publication number
CN108762689B
CN108762689B CN201810615957.5A CN201810615957A CN108762689B CN 108762689 B CN108762689 B CN 108762689B CN 201810615957 A CN201810615957 A CN 201810615957A CN 108762689 B CN108762689 B CN 108762689B
Authority
CN
China
Prior art keywords
disk
array
information
configuration information
created
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.)
Active
Application number
CN201810615957.5A
Other languages
Chinese (zh)
Other versions
CN108762689A (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.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent 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 Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN201810615957.5A priority Critical patent/CN108762689B/en
Publication of CN108762689A publication Critical patent/CN108762689A/en
Application granted granted Critical
Publication of CN108762689B publication Critical patent/CN108762689B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/0604Improving or facilitating administration, e.g. storage management
    • G06F3/0605Improving or facilitating administration, e.g. storage management by facilitating the interaction with a user or administrator
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0629Configuration or reconfiguration of storage systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0668Interfaces specially adapted for storage systems adopting a particular infrastructure
    • G06F3/0671In-line storage system
    • G06F3/0683Plurality of storage devices
    • G06F3/0689Disk arrays, e.g. RAID, JBOD

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention relates to a method, a device, equipment and a storage medium for automatically creating a disk array, wherein the method comprises the following steps: setting configuration information; acquiring disk information and storing the disk information in a disk list; searching and marking a corresponding disk from the disk list according to configuration information; and establishing a disk array for the marked disk according to the configuration information. The invention can automatically create the disk array for the target disk without manually selecting the parameters of the disk array to be created, thereby improving the research and development test efficiency of the server and reducing the error rate of creating the disk array.

Description

Method, device and equipment for automatically creating disk array and storage medium
Technical Field
The invention belongs to the technical field of disk arrays, and particularly relates to a method, a device, equipment and a storage medium for automatically creating a disk array.
Background
In research, development, test and production of a server, if RAID (disk array) card levels need to be configured, the Web UI interfaces of RAID cards of each node are usually entered manually in sequence, and each parameter is selected manually in sequence for configuration, which consumes a lot of manpower and time, increases the error rate of manual input, and greatly reduces the efficiency of research, development, test and production.
Disclosure of Invention
The present invention is directed to a method, an apparatus, a device and a storage medium for automatically creating a disk array, so as to solve the above technical problems.
In a first aspect, an embodiment of the present application provides a method for automatically creating a disk array, including: setting configuration information; acquiring disk information and storing the disk information in a disk list; searching and marking a corresponding disk from the disk list according to configuration information; and establishing a disk array for the marked disk according to the configuration information.
With reference to the first aspect, in a first implementation manner of the first aspect, the setting configuration information includes: and setting the disk information of the disk array to be created, the array name of the disk array to be created and the size of the array space.
With reference to the first aspect and the first embodiment of the first aspect, in a second embodiment of the first aspect: and searching and marking a corresponding disk from the disk list according to the configuration information: searching a corresponding disk from the disk list according to the disk information of the disk array to be created in the configuration information; and lighting a positioning lamp at the corresponding searched disk.
With reference to the first aspect and the two preceding embodiments of the first aspect, in a third embodiment of the first aspect: the creating a disk array for the tagged disk according to the configuration information comprises: establishing a disk array for the marked disk according to the array name and the array space size of the disk array to be established in the configuration information; saving the disk array information created for the marked disk and turning off the positioning lamp; and verifying the disk array created for the marked disk by comparing the configuration information with the stored disk array information.
In a second aspect, an embodiment of the present application provides an apparatus for automatically creating a disk array, including: a configuration unit configured to set configuration information; the device comprises an acquisition unit, a storage unit and a processing unit, wherein the acquisition unit is configured to acquire disk information and store the disk information in a disk list; the searching unit is configured to search and mark a corresponding disk from the disk list according to the configuration information; and the creating unit is configured to create a disk array for the marked disk according to the configuration information.
With reference to the second aspect, in a first implementation manner of the second aspect, the configuration unit includes: and the configuration module is used for setting the disk information of the disk array to be created, the array name of the disk array to be created and the size of the array space.
With reference to the second aspect and the first implementation manner of the second aspect, in a second implementation manner of the second aspect, the search unit includes: the searching module is configured to search a corresponding disk from the disk list according to the disk information of the disk array to be created in the configuration information; and the marking module is configured to light the positioning lamp at the searched corresponding disk.
With reference to the second aspect and the two foregoing implementation manners of the second aspect, in a third implementation manner of the second aspect, the creating unit includes: the creating module is configured to create a disk array for the marked disk according to the array name and the array space size of the disk array to be created in the configuration information; the storage module is configured for storing the disk array information created for the marked disk and turning off the positioning lamp; and the verification module is configured to verify the disk array created for the marked disk by comparing the configuration information with the stored disk array information.
In a third aspect, an embodiment of the present application provides an apparatus, including: one or more processors; memory for storing one or more programs that, when executed by the one or more processors, cause the one or more processors to perform the method according to any of the embodiments of the first aspect and the first aspect.
In a fourth aspect, the present application provides a computer-readable storage medium storing a computer program, where the computer program is executed by a processor to implement the method according to any one of the embodiments of the first aspect and the first aspect.
The beneficial effect of the invention is that,
according to the method, the device, the equipment and the storage medium for automatically creating the disk array, the configuration information is preset, the corresponding disk is searched according to the configuration information, and the disk array is created for the searched disk according to the configuration information. The invention can automatically create the disk array for the target disk without manually selecting the parameters of the disk array to be created, thereby improving the research and development test efficiency of the server and reducing the error rate of creating the disk array.
In addition, the invention has reliable design principle, simple structure and very wide application prospect.
Therefore, compared with the prior art, the invention has prominent substantive features and remarkable progress, and the beneficial effects of the implementation are also obvious.
Drawings
Other features, objects and advantages of the present application will become more apparent upon reading of the following detailed description of non-limiting embodiments thereof, made with reference to the accompanying drawings in which:
FIG. 1 is an exemplary flowchart of a method for automatically creating a disk array according to an embodiment of the present application;
fig. 2 is an exemplary flowchart of a method for automatically creating a disk array according to an embodiment of the present application.
Detailed Description
The present application will be described in further detail with reference to the following drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the relevant invention and not restrictive of the invention. It should be noted that, for convenience of description, only the portions related to the present invention are shown in the drawings.
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The present application will be described in detail below with reference to the embodiments with reference to the attached drawings.
The embodiment of the application provides a method for automatically creating a disk array, which comprises the following steps:
setting configuration information, the setting configuration information including: setting disk information of a disk array to be created, an array name of the disk array to be created and the size of an array space;
acquiring disk information and storing the disk information in a disk list;
searching and marking a corresponding disk from the disk list according to the configuration information, preferably searching the corresponding disk from the disk list according to the disk information of the disk array to be created in the configuration information; lighting a positioning lamp at the corresponding searched disk;
creating a disk array for the marked disk according to the configuration information, and further creating the disk array for the marked disk according to the array name and the array space size of the disk array to be created in the configuration information; saving the disk array information created for the marked disk and turning off the positioning lamp; and verifying the disk array created for the marked disk by comparing the configuration information with the stored disk array information.
In order to facilitate understanding of the present invention, the method for detecting a snapshot provided by the present invention is further described below with reference to the following embodiments in combination with the process of creating a disk array on a target disk in the embodiments.
Embodiment 1, this embodiment is performed under the Linux OS system. Referring to fig. 1, the specific detection steps are as follows:
s1, setting a configuration file, wherein the configuration file comprises the disk information of the target disk, the array name of the disk array to be created and the size of the array space;
s2, acquiring the disk information of all disks, and generating a disk list from the acquired disk information;
s3, searching a corresponding disk from the disk list according to the disk information of the target disk in the configuration file, and lighting a positioning lamp at the corresponding disk;
s4, creating a disk array according to the array name and the size of the array space in the configuration file, wherein the disk array is found in the corresponding disk searched in the S3, and after the creation is successful, the positioning lamp is turned off;
and S5, comparing the array name and the array space size of the disk array created in the S4 with the array name and the array space size in the configuration file, and checking the disk array created in the S4.
Embodiment 2, this embodiment is performed under the Linux OS system. Referring to fig. 2, the specific detection steps are as follows:
s1, running a script VD _ create.sh to set PD information, an array name and an array space size (default full disk space), such as VD _ create.sh RAID 51-3500G or VD _ create.sh RAID 51-3.
And S2, acquiring all PD information of the physical disk and saving the PD information to PD _ list.
S3, selecting a disk from the disk list generated in step S2 according to the target disk information input in step S1, and lighting the position light.
S4, RAID (disk array) creation is performed for the disk selected in step S3, and a RAID array is created by setting the RAID array name and the array space size with the input of step S1.
And S5, creating success prompt success, displaying the name and the size of the created RAID array, and turning off a physical disk positioning lamp corresponding to the disk array.
And S6, comparing the array name and the array space size input in the step S1, and checking the array mode.
S7, creating failure, displaying fail, and printing and saving log fail.
An embodiment of the present application provides an apparatus for automatically creating a disk array, including: a configuration unit configured to set configuration information; the device comprises an acquisition unit, a storage unit and a processing unit, wherein the acquisition unit is configured to acquire disk information and store the disk information in a disk list; the searching unit is configured to search and mark a corresponding disk from the disk list according to the configuration information; and the creating unit is configured to create a disk array for the marked disk according to the configuration information.
Wherein, the configuration unit includes: and the configuration module is used for setting the disk information of the disk array to be created, the array name of the disk array to be created and the size of the array space.
The search unit includes: the searching module is configured to search a corresponding disk from the disk list according to the disk information of the disk array to be created in the configuration information; and the marking module is configured to light the positioning lamp at the searched corresponding disk.
The creating unit includes: the creating module is configured to create a disk array for the marked disk according to the array name and the array space size of the disk array to be created in the configuration information; the storage module is configured for storing the disk array information created for the marked disk and turning off the positioning lamp; and the verification module is configured to verify the disk array created for the marked disk by comparing the configuration information with the stored disk array information.
An embodiment of the present application provides an apparatus, including: one or more processors; a memory for storing one or more programs which, when executed by the one or more processors, cause the one or more processors to perform a method of automatically creating a disk array as provided by an embodiment of the present application.
Embodiments of the present application provide a computer-readable storage medium storing a computer program, which when executed by a processor implements the method for automatically creating a disk array according to embodiments of the present application.
The above disclosure is only for the preferred embodiments of the present invention, but the present invention is not limited thereto, and any non-inventive changes that can be made by those skilled in the art and several modifications and amendments made without departing from the principle of the present invention shall fall within the protection scope of the present invention.

Claims (6)

1. A method for automatically creating a disk array, comprising:
setting configuration information;
acquiring disk information and storing the disk information in a disk list;
searching and marking a corresponding disk from the disk list according to configuration information;
creating a disk array for the marked disk according to the configuration information;
and searching and marking a corresponding disk from the disk list according to the configuration information:
searching a corresponding disk from the disk list according to the disk information of the disk array to be created in the configuration information;
lighting a positioning lamp at the corresponding searched disk;
the creating a disk array for the tagged disk according to the configuration information comprises:
establishing a disk array for the marked disk according to the array name and the array space size of the disk array to be established in the configuration information;
saving the disk array information created for the marked disk and turning off the positioning lamp;
and verifying the disk array created for the marked disk by comparing the configuration information with the stored disk array information.
2. The method of claim 1, wherein setting the configuration information comprises:
and setting the disk information of the disk array to be created, the array name of the disk array to be created and the size of the array space.
3. An apparatus for automatically creating a disk array, comprising:
a configuration unit configured to set configuration information;
the device comprises an acquisition unit, a storage unit and a processing unit, wherein the acquisition unit is configured to acquire disk information and store the disk information in a disk list;
the searching unit is configured to search and mark a corresponding disk from the disk list according to the configuration information;
the creating unit is configured to create a disk array for the marked disk according to the configuration information;
the search unit includes:
the searching module is configured to search a corresponding disk from the disk list according to the disk information of the disk array to be created in the configuration information;
the marking module is configured to light the positioning lamp at the searched corresponding disk;
the creating unit includes:
the creating module is configured to create a disk array for the marked disk according to the array name and the array space size of the disk array to be created in the configuration information;
the storage module is configured for storing the disk array information created for the marked disk and turning off the positioning lamp;
and the verification module is configured to verify the disk array created for the marked disk by comparing the configuration information with the stored disk array information.
4. The apparatus of claim 3, wherein the configuration unit comprises:
and the configuration module is used for setting the disk information of the disk array to be created, the array name of the disk array to be created and the size of the array space.
5. An apparatus for automatically creating a disk array, the apparatus comprising:
one or more processors;
a memory for storing one or more programs,
the one or more programs, when executed by the one or more processors, cause the one or more processors to perform the method recited by any of claims 1-2.
6. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1-2.
CN201810615957.5A 2018-06-14 2018-06-14 Method, device and equipment for automatically creating disk array and storage medium Active CN108762689B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810615957.5A CN108762689B (en) 2018-06-14 2018-06-14 Method, device and equipment for automatically creating disk array and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810615957.5A CN108762689B (en) 2018-06-14 2018-06-14 Method, device and equipment for automatically creating disk array and storage medium

Publications (2)

Publication Number Publication Date
CN108762689A CN108762689A (en) 2018-11-06
CN108762689B true CN108762689B (en) 2020-09-25

Family

ID=64021079

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810615957.5A Active CN108762689B (en) 2018-06-14 2018-06-14 Method, device and equipment for automatically creating disk array and storage medium

Country Status (1)

Country Link
CN (1) CN108762689B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101221485A (en) * 2008-01-24 2008-07-16 创新科存储技术(深圳)有限公司 Method for establishing redundant magnetic disk array and control device thereof
CN102326141A (en) * 2011-08-08 2012-01-18 华为技术有限公司 Processing method and apparatus for raid configuration information and raid controller
CN105512003A (en) * 2015-11-30 2016-04-20 曙光信息产业股份有限公司 Disk positioning method and device
CN107122138A (en) * 2017-04-28 2017-09-01 郑州云海信息技术有限公司 A kind of device and method for configuring disk array
CN107807789A (en) * 2017-09-29 2018-03-16 曙光信息产业(北京)有限公司 Configure RAID method, apparatus and server
CN107844276A (en) * 2017-11-23 2018-03-27 郑州云海信息技术有限公司 A kind of method and system based on MegaCli order disk array management

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2357552A1 (en) * 2006-05-24 2011-08-17 Compellent Technologies System and method for RAID management, reallocation and restriping
CN104731678A (en) * 2013-12-19 2015-06-24 鸿富锦精密工业(深圳)有限公司 RAID storage mode test system and method and electronic device
CN107368264A (en) * 2017-07-26 2017-11-21 郑州云海信息技术有限公司 A kind of combination RAID method, system and storage management software system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101221485A (en) * 2008-01-24 2008-07-16 创新科存储技术(深圳)有限公司 Method for establishing redundant magnetic disk array and control device thereof
CN102326141A (en) * 2011-08-08 2012-01-18 华为技术有限公司 Processing method and apparatus for raid configuration information and raid controller
CN105512003A (en) * 2015-11-30 2016-04-20 曙光信息产业股份有限公司 Disk positioning method and device
CN107122138A (en) * 2017-04-28 2017-09-01 郑州云海信息技术有限公司 A kind of device and method for configuring disk array
CN107807789A (en) * 2017-09-29 2018-03-16 曙光信息产业(北京)有限公司 Configure RAID method, apparatus and server
CN107844276A (en) * 2017-11-23 2018-03-27 郑州云海信息技术有限公司 A kind of method and system based on MegaCli order disk array management

Also Published As

Publication number Publication date
CN108762689A (en) 2018-11-06

Similar Documents

Publication Publication Date Title
US9535781B2 (en) System file repair method and apparatus
US8209658B2 (en) Method of creating signatures for classifying program failures
CN108170469B (en) Code submission history-based Git warehouse similarity detection method
CN108319711B (en) Method and device for testing transaction consistency of database, storage medium and equipment
CN110750396B (en) Server operating system compatibility testing method and device and storage medium
US10606579B2 (en) Multi-system terminal system updating method, updating device and terminal
CN103973515A (en) Network card stability testing method
CN103593269A (en) Automatic cyclic test method of restart pressure of multiple PCIe devices
CN103198122A (en) Method and device for restarting in-memory database
CN106445643A (en) Method and device for cloning and updating virtual machine
CN104809039A (en) Memory detection method based on physical memory allocation mapping
CN107329914A (en) It is a kind of that the out of order method and device of hard disk is detected based on linux system
CN109684149A (en) A kind of hardware information monitoring method, device and the equipment of NVMe hard disk
CN111338881A (en) Automatic testing method and device for parallel reading and writing of NAS file system
US20110276831A1 (en) Utilizing Input/Output Paths For Failure Detection And Analysis
CN108762689B (en) Method, device and equipment for automatically creating disk array and storage medium
CN107357700A (en) A kind of method and system of test NVME hard disk order stability
CN111414287A (en) Method, system and device for analyzing chip test result
CN107562593A (en) A kind of automated testing method and system for verifying internal memory ECC functions
CN111581217A (en) Data detection method and device, computer equipment and storage medium
CN108153635B (en) System memory edge testing method, system device and computer readable storage medium
CN110569153A (en) method and system for testing refresh stability of nvme hard disk firmware
CN116185706A (en) Data backup method and device, computing and storage medium and electronic equipment
CN109032894A (en) A kind of direct-connected hard disk method, apparatus of sg3_utils tool, equipment and storage medium
US11061809B2 (en) Software debugging system with improved test execution and log file tracking

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20200826

Address after: 215100 No. 1 Guanpu Road, Guoxiang Street, Wuzhong Economic Development Zone, Suzhou City, Jiangsu Province

Applicant after: SUZHOU LANGCHAO INTELLIGENT TECHNOLOGY Co.,Ltd.

Address before: 450000 Henan province Zheng Dong New District of Zhengzhou City Xinyi Road No. 278 16 floor room 1601

Applicant before: ZHENGZHOU YUNHAI INFORMATION TECHNOLOGY Co.,Ltd.

GR01 Patent grant
GR01 Patent grant