CN107678696A - A kind of RAID creation method and system - Google Patents

A kind of RAID creation method and system Download PDF

Info

Publication number
CN107678696A
CN107678696A CN201710984398.0A CN201710984398A CN107678696A CN 107678696 A CN107678696 A CN 107678696A CN 201710984398 A CN201710984398 A CN 201710984398A CN 107678696 A CN107678696 A CN 107678696A
Authority
CN
China
Prior art keywords
raid
servers
raidconsole
mirror image
instruments
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
CN201710984398.0A
Other languages
Chinese (zh)
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.)
Zhengzhou Yunhai Information Technology Co Ltd
Original Assignee
Zhengzhou Yunhai Information 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 Zhengzhou Yunhai Information Technology Co Ltd filed Critical Zhengzhou Yunhai Information Technology Co Ltd
Priority to CN201710984398.0A priority Critical patent/CN107678696A/en
Publication of CN107678696A publication Critical patent/CN107678696A/en
Pending legal-status Critical Current

Links

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/0607Improving or facilitating administration, e.g. storage management by facilitating the process of upgrading existing storage systems, e.g. for improving compatibility between host and storage device
    • 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
    • G06F3/0632Configuration or reconfiguration of storage systems by initialisation or re-initialisation 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/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0655Vertical data movement, i.e. input-output transfer; data movement between one or more hosts and one or more storage devices
    • G06F3/0659Command handling arrangements, e.g. command buffers, queues, command scheduling
    • 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

Abstract

The present invention relates to technical field, there is provided a kind of RAID creation method and system, method include:Visit order is called, control RAID server access to be configured enters OS mirror image servers;After RAID server access to be configured enters OS mirror image servers, raidConsole.sh instruments are generated in RAID servers to be configured;According to the raidConsole.sh instruments of generation, RAID configuration orders are performed, controls and RAID establishments is carried out to RAID servers to be configured, RAID is quickly created so as to realize, shortens creation time, facility is provided for server test, improves testing efficiency.

Description

A kind of RAID creation method and system
Technical field
The invention belongs to the creation method and system of field of computer technology, more particularly to a kind of RAID.
Background technology
Disk array (Redundant Arrays of Independent Disks, RAID), be by many prices more just Suitable disk, the huge disk group of a capacity is combined into, addition effect promoting produced by providing data using indivedual disks is whole Individual disk system efficiency.Using this technology, data are cut into many sections, are stored in respectively on each hard disk.Disk battle array Row can also utilize the idea of parity check (Parity Check), in array during any one hard disk failure, can still read number According in data reconstruction, being inserted again in new hard disk after data are computed.
Current main-stream BIOS start-up modes are UEFI, and the configuration of RAID card is realized in BIOS Setup, but for certain For a little operating personnel, on the premise of interface is configured without, it is difficult to realize RAID establishment.
The content of the invention
It is an object of the invention to provide a kind of RAID creation method, it is intended to which solution is being configured without boundary in the prior art On the premise of face, it is difficult to the problem of realizing RAID establishment.
The present invention is achieved in that a kind of RAID creation method, and methods described comprises the steps:
Visit order is called, control RAID server access to be configured enters OS mirror image servers;
After RAID server access to be configured enters OS mirror image servers, generated in RAID servers to be configured RaidConsole.sh instruments;
According to the raidConsole.sh instruments of generation, RAID configuration orders are performed, controls and the RAID is waited to match somebody with somebody Put server and carry out RAID establishments.
As an improvement scheme, the calling visit order, control RAID server access to be configured enter OS mirrors As the step of server specifically includes following step:
A netting twine is chosen, communication connection is established between RAID servers to be configured and OS mirror image servers;
Guided by PXE, control RAID servers to be configured to enter PXE environment;
In RAID servers to be configured, call and perform visit order, control enters OS mirror image servers;
Wherein, the visit order is:ssh 192.168.0.1.
As an improvement scheme, it is described after RAID server access to be configured enters OS mirror image servers, in institute The step of stating generation raidConsole.sh instruments in RAID servers to be configured specifically includes following step:
Calls tool copy command, in the OS mirror image servers, replicate the raidConsole.sh implementing procedures;
Calls tool generation order, the raidConsole.sh of duplication is installed in RAID servers to be configured Implementing procedure, generate the raidConsole.sh instruments.
As an improvement scheme, the instrument copy command is:rsync-azPp-e"ssh-p22"/data/ miniOS/files/Raid_check.tgz root@192.168.0.2:/ tmp, wherein, 192.168.0.2 is that RAID waits to match somebody with somebody Put the IP address that server is got by OS mirror image servers;
The instrument generates order:cd/tmp/;tar xvf Raid_check.tgz.
As an improvement scheme, the RAID configuration orders are:./raidConsole.sh–c<RAID_TYPE>.
Another object of the present invention is to provide the establishment system of RAID a kind of, the system includes:
Access modules, for calling visit order, control RAID server access to be configured enters OS mirror image servers;
Instrument generation module, for after RAID server access to be configured enters OS mirror image servers, in the RAID Generation raidConsole.sh instruments in server to be configured;
RAID creation modules, for the raidConsole.sh instruments according to generation, perform RAID configuration orders, control System carries out RAID establishments to RAID servers to be configured.
As an improvement scheme, the access modules specifically include:
Module is established in communication, for choosing a netting twine, RAID servers to be configured and OS mirror image servers it Between establish communication connection;
PXE environment enters module, for being guided by PXE, controls RAID servers to be configured to enter PXE environment;
Server enters module, in RAID servers to be configured, calling and performing visit order, control into Enter OS mirror image servers;
Wherein, the visit order is:ssh 192.168.0.1.
As an improvement scheme, the instrument generation module specifically includes:
Instrument replication module, for calls tool copy command, in the OS mirror image servers, described in duplication RaidConsole.sh implementing procedures;
Instrument installs module, generates and orders for calls tool, the installation duplication in RAID servers to be configured The raidConsole.sh implementing procedures, generate the raidConsole.sh instruments.
As an improvement scheme, the instrument copy command is:rsync-azPp-e"ssh-p22"/data/ miniOS/files/Raid_check.tgz root@192.168.0.2:/ tmp, wherein, 192.168.0.2 is that RAID waits to match somebody with somebody Put the IP address that server is got by OS mirror image servers;
The instrument generates order:cd/tmp/;tar xvf Raid_check.tgz.
As an improvement scheme, the RAID configuration orders are:./raidConsole.sh–c<RAID_TYPE>.
In embodiments of the present invention, visit order is called, control RAID server access to be configured enters OS mirroring services Device;After RAID server access to be configured enters OS mirror image servers, generated in RAID servers to be configured RaidConsole.sh instruments;According to the raidConsole.sh instruments of generation, RAID configuration orders are performed, are controlled to institute State RAID servers to be configured and carry out RAID establishments, quickly create RAID so as to realize, shorten creation time, surveyed for server Examination provides facility, improves testing efficiency.
Brief description of the drawings
Fig. 1 is the implementation process figure of RAID provided by the invention creation method;
Fig. 2 is calling visit order provided by the invention, and control RAID server access to be configured enters OS mirroring services The implementation process figure of device;
Fig. 3 is provided by the invention after RAID server access to be configured enters OS mirror image servers, in the RAID The implementation process figure of generation raidConsole.sh instruments in server to be configured;
Fig. 4 is the structured flowchart of RAID provided by the invention establishment system.
Embodiment
In order to make the purpose , technical scheme and advantage of the present invention be clearer, it is right below in conjunction with drawings and Examples The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and It is not used in the restriction present invention.
Fig. 1 shows the implementation process figure of RAID provided by the invention creation method, and it specifically includes following step:
In step S101, visit order is called, control RAID server access to be configured enters OS mirror image servers.
In step s 102, after RAID server access to be configured enters OS mirror image servers, wait to match somebody with somebody in the RAID Put generation raidConsole.sh instruments in server.
In step s 103, according to the raidConsole.sh instruments of generation, RAID configuration orders, control pair are performed The RAID servers to be configured carry out RAID establishments.
Wherein, the RAID configuration orders are ./raidConsole.sh-c<RAID_TYPE>, it is according to different RAID classes Type sets several different configuration orders, is specially:
RAID 1 is configured, can perform:./raidConsole.sh-c RAID1
RAID 5 is configured, can perform:./raidConsole.sh-c RAID5
RAID 50 is configured, can perform:./raidConsole.sh-c[6+6]RAID50
After having performed, corresponding RAID can automatically create completion.
As shown in Fig. 2 call visit order, control RAID server access to be configured the step of entering OS mirror image servers Specifically include following step:
In step s 201, a netting twine is chosen, is built between RAID servers to be configured and OS mirror image servers Vertical communication connection.
In step S202, guided by PXE, control RAID servers to be configured to enter PXE environment.
In step S203, in RAID servers to be configured, call and perform visit order, control enters OS mirrors As server;
Wherein, the visit order is:ssh 192.168.0.1.
As shown in figure 3, after RAID server access to be configured enters OS mirror image servers, in RAID clothes to be configured In business device following step is specifically included the step of generation raidConsole.sh instruments:
In step S301, calls tool copy command, in the OS mirror image servers, described in duplication RaidConsole.sh implementing procedures.
Wherein, the instrument copy command is:rsync-azPp-e"ssh-p22"/data/miniOS/files/Raid_ check.tgz root@192.168.0.2:/ tmp, wherein, 192.168.0.2 is that RAID servers to be configured pass through OS mirror images The IP address that server is got.
After the instrument copy command performs, the Replication Tools program in OS mirror image servers, in order to be configured in RAID Carry out instrument installation in server.
In step s 302, calls tool generation order, in RAID servers to be configured described in installation duplication RaidConsole.sh implementing procedures, generate the raidConsole.sh instruments.
In this step, instrument generation order be:cd/tmp/;Tar xvf Raid_check.tgz, have performed the step In, above-mentioned raidConsole.sh instruments are installed in RAID servers to be configured.
Fig. 4 shows the structured flowchart of RAID provided by the invention establishment system, for convenience of description, is only provided in figure The part related to the embodiment of the present invention.
Access modules 11, for calling visit order, control RAID server access to be configured enters OS mirror image servers;
Instrument generation module 12, for after RAID server access to be configured enters OS mirror image servers, described Generation raidConsole.sh instruments in RAID servers to be configured;
RAID creation modules 13, for the raidConsole.sh instruments according to generation, RAID configuration orders are performed, Control carries out RAID establishments to RAID servers to be configured.
Access modules 11 specifically include:
Module 14 is established in communication, for choosing a netting twine, in RAID servers to be configured and OS mirror image servers Between establish communication connection;
PXE environment enters module 15, for being guided by PXE, controls RAID servers to be configured to enter PXE rings Border;
Server enters module 16, in RAID servers to be configured, calling and performing visit order, control Into OS mirror image servers;
Wherein, the visit order is:ssh 192.168.0.1.
Instrument generation module 12 specifically includes:
Instrument replication module 17, for calls tool copy command, in the OS mirror image servers, described in duplication RaidConsole.sh implementing procedures;
Instrument installs module 18, generates and orders for calls tool, installs and replicates in RAID servers to be configured The raidConsole.sh implementing procedures, generate the raidConsole.sh instruments.
Wherein, the function of above-mentioned modules will not be repeated here as described in above-mentioned embodiment of the method.
In embodiments of the present invention, visit order is called, control RAID server access to be configured enters OS mirroring services Device;After RAID server access to be configured enters OS mirror image servers, generated in RAID servers to be configured RaidConsole.sh instruments;According to the raidConsole.sh instruments of generation, RAID configuration orders are performed, are controlled to institute State RAID servers to be configured and carry out RAID establishments, quickly create RAID so as to realize, shorten creation time, surveyed for server Examination provides facility, improves testing efficiency
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all essences in the present invention All any modification, equivalent and improvement made within refreshing and principle etc., should be included in the scope of the protection.

Claims (10)

1. a kind of RAID creation method, it is characterised in that methods described comprises the steps:
Visit order is called, control RAID server access to be configured enters OS mirror image servers;
After RAID server access to be configured enters OS mirror image servers, generated in RAID servers to be configured RaidConsole.sh instruments;
According to the raidConsole.sh instruments of generation, RAID configuration orders are performed, are controlled to RAID clothes to be configured Business device carries out RAID establishments.
2. RAID according to claim 1 creation method, it is characterised in that the calling visit order, control RAID Server access to be configured enters the step of OS mirror image servers and specifically includes following step:
A netting twine is chosen, communication connection is established between RAID servers to be configured and OS mirror image servers;
Guided by PXE, control RAID servers to be configured to enter PXE environment;
In RAID servers to be configured, call and perform visit order, control enters OS mirror image servers;
Wherein, the visit order is:ssh 192.168.0.1.
3. RAID according to claim 2 creation method, it is characterised in that described to work as RAID server access to be configured Into after OS mirror image servers, specifically wrapped the step of generation raidConsole.sh instruments in RAID servers to be configured Include following step:
Calls tool copy command, in the OS mirror image servers, replicate the raidConsole.sh implementing procedures;
Calls tool generation order, the raidConsole.sh instruments of duplication are installed in RAID servers to be configured Program, generate the raidConsole.sh instruments.
4. RAID according to claim 1 creation method, it is characterised in that the instrument copy command is:rsync- azPp-e"ssh-p22"/data/miniOS/files/Raid_check.tgz root@192.168.0.2:/ tmp, wherein, 192.168.0.2 it is the IP address that RAID servers to be configured are got by OS mirror image servers;
The instrument generates order:cd/tmp/;tar xvf Raid_check.tgz.
5. RAID according to claim 1 creation method, it is characterised in that the RAID configuration orders are:./ raidConsole.sh–c<RAID_TYPE>。
6. a kind of RAID establishment system, it is characterised in that the system includes:
Access modules, for calling visit order, control RAID server access to be configured enters OS mirror image servers;
Instrument generation module, for after RAID server access to be configured enters OS mirror image servers, waiting to match somebody with somebody in the RAID Put generation raidConsole.sh instruments in server;
RAID creation modules, for the raidConsole.sh instruments according to generation, perform RAID configuration orders, control pair The RAID servers to be configured carry out RAID establishments.
7. RAID according to claim 6 establishment system, it is characterised in that the access modules specifically include:
Module is established in communication, for choosing a netting twine, is built between RAID servers to be configured and OS mirror image servers Vertical communication connection;
PXE environment enters module, for being guided by PXE, controls RAID servers to be configured to enter PXE environment;
Server enters module, and in RAID servers to be configured, calling and performing visit order, control enters OS Mirror image server;
Wherein, the visit order is:ssh 192.168.0.1.
8. RAID according to claim 7 establishment system, it is characterised in that the instrument generation module specifically includes:
Instrument replication module, for calls tool copy command, in the OS mirror image servers, described in duplication RaidConsole.sh implementing procedures;
Instrument installs module, generates and orders for calls tool, in RAID servers to be configured described in installation duplication RaidConsole.sh implementing procedures, generate the raidConsole.sh instruments.
9. RAID according to claim 6 establishment system, it is characterised in that the instrument copy command is:rsync- azPp-e"ssh-p22"/data/miniOS/files/Raid_check.tgz root@192.168.0.2:/ tmp, wherein, 192.168.0.2 it is the IP address that RAID servers to be configured are got by OS mirror image servers;
The instrument generates order:cd/tmp/;tar xvf Raid_check.tgz.
10. RAID according to claim 6 establishment system, it is characterised in that the RAID configuration orders are:./ raidConsole.sh–c<RAID_TYPE>。
CN201710984398.0A 2017-10-20 2017-10-20 A kind of RAID creation method and system Pending CN107678696A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710984398.0A CN107678696A (en) 2017-10-20 2017-10-20 A kind of RAID creation method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710984398.0A CN107678696A (en) 2017-10-20 2017-10-20 A kind of RAID creation method and system

Publications (1)

Publication Number Publication Date
CN107678696A true CN107678696A (en) 2018-02-09

Family

ID=61141912

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710984398.0A Pending CN107678696A (en) 2017-10-20 2017-10-20 A kind of RAID creation method and system

Country Status (1)

Country Link
CN (1) CN107678696A (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103746833A (en) * 2013-12-25 2014-04-23 新浪网技术(中国)有限公司 PXE-based RAID automatic configuration method and system
CN103984575A (en) * 2014-05-28 2014-08-13 浪潮电子信息产业股份有限公司 Rapid deployment method of cluster Linux operation system in cloud-computing environment
CN105138359A (en) * 2015-08-17 2015-12-09 浪潮电子信息产业股份有限公司 Optimized RAID forming method based on automation
CN105242875A (en) * 2015-09-17 2016-01-13 浪潮集团有限公司 Server raid batch configuration method
CN105446771A (en) * 2015-11-13 2016-03-30 浪潮电子信息产业股份有限公司 USB flash disk based method for quickly and automatically installing operating system
CN105656970A (en) * 2014-11-24 2016-06-08 中国移动通信集团公司 RAID (Redundant Array of Independent Disk) card configuring method and system and relevant device
CN106095339A (en) * 2016-06-13 2016-11-09 浪潮(北京)电子信息产业有限公司 A kind of RAID collocation method for server
CN106126273B (en) * 2016-06-16 2019-05-10 浪潮(北京)电子信息产业有限公司 A kind of method of upgrading BIOS

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103746833A (en) * 2013-12-25 2014-04-23 新浪网技术(中国)有限公司 PXE-based RAID automatic configuration method and system
CN103984575A (en) * 2014-05-28 2014-08-13 浪潮电子信息产业股份有限公司 Rapid deployment method of cluster Linux operation system in cloud-computing environment
CN105656970A (en) * 2014-11-24 2016-06-08 中国移动通信集团公司 RAID (Redundant Array of Independent Disk) card configuring method and system and relevant device
CN105138359A (en) * 2015-08-17 2015-12-09 浪潮电子信息产业股份有限公司 Optimized RAID forming method based on automation
CN105242875A (en) * 2015-09-17 2016-01-13 浪潮集团有限公司 Server raid batch configuration method
CN105446771A (en) * 2015-11-13 2016-03-30 浪潮电子信息产业股份有限公司 USB flash disk based method for quickly and automatically installing operating system
CN106095339A (en) * 2016-06-13 2016-11-09 浪潮(北京)电子信息产业有限公司 A kind of RAID collocation method for server
CN106126273B (en) * 2016-06-16 2019-05-10 浪潮(北京)电子信息产业有限公司 A kind of method of upgrading BIOS

Similar Documents

Publication Publication Date Title
US20230138736A1 (en) Cluster file system-based data backup method and apparatus, and readable storage medium
CN110188000B (en) Application disaster recovery method and system based on virtualization and iSCSI or FC
CN113407122B (en) RAID reconstruction method and device
WO2016197768A1 (en) Chip verification method, device, and system
US9146755B2 (en) System and method for transporting platform independent power configuration parameters
US20160357649A1 (en) System and method for managing raid storage system having a hot spare drive
JP5701320B2 (en) System and method for enabling a replication target to reuse unused storage space on a thin provisioning storage system
CN106062742A (en) Systems and methods for improving snapshot performance
US7496785B2 (en) Enclosure-based raid parity assist
CN111143128B (en) Openstack cloud host data protection method and system
CN105260274A (en) Linux-based hard disk random hot plug stability detection method
CN108427728A (en) Management method, equipment and the computer-readable medium of metadata
CN109522173A (en) A kind of OPA network card testing method, device, terminal and storage medium
CN109815147A (en) Test cases generation method, device, server and medium
CN108628765A (en) Cache implementation methods and device in distributed storage of increasing income software Ceph
US20060123018A1 (en) Algorithm for maximizing application availability during automated enterprise deployments
CN111274065B (en) Disaster recovery method and device based on software
CN107766055A (en) A kind of client linux system installation method based on GUI module
CN112162925A (en) Test method and system based on service virtualization
CN104375905A (en) Incremental backing up method and system based on data block
CN103995772A (en) RAID card log completely-storing method based on LINUX operation system
CN107807789A (en) Configure RAID method, apparatus and server
CN104951528B (en) A kind of method and terminal of Data Migration
CN106339473A (en) Method and device for copying file
CN106354435A (en) Method and device for initializing RAID

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20180209

RJ01 Rejection of invention patent application after publication