CN106959829A - Hard RAID creation method under a kind of milky way kylin operating system - Google Patents

Hard RAID creation method under a kind of milky way kylin operating system Download PDF

Info

Publication number
CN106959829A
CN106959829A CN201710211296.5A CN201710211296A CN106959829A CN 106959829 A CN106959829 A CN 106959829A CN 201710211296 A CN201710211296 A CN 201710211296A CN 106959829 A CN106959829 A CN 106959829A
Authority
CN
China
Prior art keywords
raid
operating system
milky way
kylin operating
hard
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.)
Granted
Application number
CN201710211296.5A
Other languages
Chinese (zh)
Other versions
CN106959829B (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.)
Shandong Chaoyue Numerical Control Electronics Co Ltd
Original Assignee
Shandong Chaoyue Numerical Control Electronics 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 Shandong Chaoyue Numerical Control Electronics Co Ltd filed Critical Shandong Chaoyue Numerical Control Electronics Co Ltd
Priority to CN201710211296.5A priority Critical patent/CN106959829B/en
Publication of CN106959829A publication Critical patent/CN106959829A/en
Application granted granted Critical
Publication of CN106959829B publication Critical patent/CN106959829B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping

Abstract

The present invention relates to the creation method of hard RAID under milky way kylin operating system a kind of.RAID card uses the 8i of LSI MegaRAID SAS 9260, driven by compiling and configuring RAID card, system is successfully realized to RAID0, RAID1, RAID5 establishment, initialization using MegaCli instruments and is deleted, so that the safety of data storage and stably under guarantee system.Compared with Linux distribution edition systems, milky way kylin operating system belongs to domestic operating system, dedicated for supporting the domestic Feiteng processor platform of ARM frameworks, carries out hard Raid establishment in the operating system at present temporarily without other more excellent schemes;Hard RAID creation method has filled up the deficiencies in the prior art there is provided a kind of creation method for the hard RAID for being specifically applied to milky way kylin operating system under milky way kylin operating system of the present invention.

Description

Hard RAID creation method under a kind of milky way kylin operating system
Technical field
The present invention relates to the creation method of hard RAID under milky way kylin operating system a kind of, belong to the technology of Computer Storage Field.
Background technology
Disk array (RAID) its pattern has three kinds, one is circumscribed magnetic disk array cabinet, two is internal connecting type magnetic disc array card, Three are emulated using software.Circumscribed magnetic disk array cabinet is most often used on large server, and tool can heat exchange (Hot Swap characteristic), but the price of this kind of product is all expensive.Internal connecting type magnetic disc array card, because it is cheap, but need higher Mounting technique, be adapted to technical staff using operation.Hardware array can provide on-line rapid estimation, dynamic modification array rank, from The functions such as dynamic data recovery, driver roaming, ultrahigh speed buffering.It can provide performance, data protection, reliability, availability and The solution of manageability.RAID card special processing unit is operated.Using the mode of software emulation, refer to pass through Polylith hard disk on the common SCSI card of connection is configured to Logical Disk by the disk management function that network operating system itself is provided, Constitute array.Software array can provide data redundancy function, but the performance of disk subsystem can decrease, some reductions Amplitude is also than larger, up to 30% or so.Therefore the speed of machine can be tied down, is not suitable for the server of big data flow.
Milky way kylin operating system is by the National University of Defense technology, CS&S, Legend Company, Langchao Group and national fixed star The open source operating system of company's cooperation research and development.Give tacit consent under milky way kylin operating system and software PLC is supported, pass through kernel Multi-disk (MD) drives the RAID for being achieved independently of hardware.Software PLC performance depends on server cpu performance and load, and Outside hard RAID performance but can be independently of systematic function.
Outside hard RAID management is independently of main frame, configured by the driving of hard RAID card, system host can not be direct Bottom disk is obtained, each RAID is presented to main frame similar to a single disk.Hard RAID card is similar to scsi controller, uses To operate and control the disk drive of reality.Hard RAID is outside RAID card, in addition it is also necessary to the support of corresponding kernel-driven, Yi Jiyong In operative configuration RAID instrument.
Compared with Linux distribution edition systems, milky way kylin operating system belongs to domestic operating system, dedicated for supporting The domestic Feiteng processor platform of ARM frameworks, the system safely controllable in order to be adapted to domestic CPU and equipment and safeguards system The operating system nucleus technology such as Linux, FreeBSD has been used for reference, the advantage of grand kernel and microkernel designs, autonomous Design is taken into account Hierarchy type inner core, modifies to XWindow cores in system, reinforces, and adds in operating system the kernel mould of oneself Block.
The content of the invention
In view of the shortcomings of the prior art, the present invention provides the creation method of hard RAID under milky way kylin operating system a kind of.
Summary of the invention:
The present invention proposes a kind of method being supported under milky way kylin operating system to hard RAID functions, RAID card Using LSI MegaRAID SAS 9260-8i, driven, successfully realized using MegaCli instruments by compiling and configuring RAID card System is to RAID0, RAID1, RAID5 establishment, initialization and deletes, so that the safety of data storage and steady under guarantee system It is fixed.
The technical scheme is that:
Hard RAID creation method under a kind of milky way kylin operating system, including step are as follows:
1) using kernel version used in uname-ar order acquisition milky way kylin operating systems, the version is further obtained The linux kernel header file storehouse that this kernel is used when compiling, is carried out using the header file storehouse to the driving code of RAID card Compiling, generates corresponding ko files;The realization of RAID card function needs the support of correspondence driving, is in the operation of domestic acceptance of the bid kylin The lower acquiescence of system does not load respective drive;Thus need to generate ko files by aforesaid operations.The kernel version of kylin operating system There is 3.14 editions kernel etc..
2) using the described ko files of drive load order insmod loadings, it is using lspci-k order detection RAID cards Whether the driving code in no identified and ko files is successfully loaded;
3) the current runlevel N of milky way kylin operating system system is checked using runlevel orders, while modification pair Answer /etc/rcN.d/rc.local files, by drive load order insmod write-in start self-triggered programs;Driving is added Order write-in start process is carried so that system can the automatic loading correspondence driving in start;
4) using dpkg-i megacli.deb orders in milky way kylin operating system loading MegaCli instruments;MegaCli Instrument realizes the management to hard RAID.
5) RAID X establishment is carried out using MegaCli-CfgLdAdd-rX orders;
6) using MegaCli-LdInit-start-full-L0-a0 order to step 5) the RAID X that create carry out it is initial Change, wherein ,-a0 specifies RAID adapter, and-L0 specifies first RAID array created under the adapter;
7) ordered using MegaCli-CfgLdDel-L0-a0 and the RAID X created are deleted, wherein-a0 is specified RAID adapter ,-l0 specifies first RAID array created under the adapter;
Preferred according to the present inventor, the RAID card is LSI MegaRAID SAS 9260-8i.
Preferred according to the present inventor, the step 5) in X be 0,1 or 5.
Preferred according to the present inventor, the step 2) in, using lspci-k order detection RAID cards it is whether identified and The specific method whether the driving code in ko files is successfully loaded is, if having RAID in lspci-k order output contents Controller corresponding model, and corresponding kernel in use entries show corresponding driving, then judge RAID card quilt Driving code in identification and ko files is successfully loaded;Otherwise judge that RAID card is unrecognized, the driving code in ko files It is not successfully loaded.
Beneficial effects of the present invention are:
1st, the scheme of hard Raid establishments is not carried out under milky way kylin operating system also in the prior art;It is of the present invention Hard RAID creation method is specifically applied to the hard of milky way kylin operating system there is provided a kind of under milky way kylin operating system RAID creation method, has filled up the deficiencies in the prior art;Traditional hard RAID establishment is typically the BIOS using RAID card What instrument was carried out, need to initially enter the BIOS configuration interfaces of RAID card after machine startup, with postponing can be just by cumbersome The lower normal identification RAID hard disks of system.The management that the configuration tool software provided by the present invention carries out hard RAID eliminates RAID card The cumbersome configuration step of BIOS instruments, makes configuration process more flexibly easy-to-use, and in the case where there is configuration error, it is more sharp Modified in configuration item, be greatly improved hard RAID allocative efficiency;
2nd, the present invention provides the creation method of hard RAID under milky way kylin operating system a kind of, and the establishment mode with regard to Raid is come See, soft Raid establishment mode has larger dependence to server CPU performance and loading condition, and hard Raid performance is main There is provided, can be decoupled with systematic function by Raid cards.
Brief description of the drawings
Fig. 1 is the flow chart of hard RAID creation method under milky way kylin operating system of the present invention.
Embodiment
With reference to embodiment and Figure of description, the present invention will be further described, but not limited to this.
Embodiment 1
As shown in Figure 1.
Hard RAID creation method under a kind of milky way kylin operating system, including step are as follows:
1) using kernel version used in uname-ar order acquisition milky way kylin operating systems, the version is further obtained The linux kernel header file storehouse that this kernel is used when compiling, is carried out using the header file storehouse to the driving code of RAID card Compiling, generates corresponding ko files;The realization of RAID card function needs the support of correspondence driving, is in the operation of domestic acceptance of the bid kylin The lower acquiescence of system does not load respective drive;Thus need to generate ko files by aforesaid operations.The kernel version of kylin operating system There is 3.14 editions kernel etc..
2) using the described ko files of drive load order insmod loadings, it is using lspci-k order detection RAID cards Whether the driving code in no identified and ko files is successfully loaded;
3) the current runlevel N of milky way kylin operating system system is checked using runlevel orders, while modification pair Answer /etc/rcN.d/rc.local files, by drive load order insmod write-in start self-triggered programs;Driving is added Order write-in start process is carried so that system can the automatic loading correspondence driving in start;
4) using dpkg-i megacli.deb orders in milky way kylin operating system loading MegaCli instruments;MegaCli Instrument realizes the management to hard RAID.
5) RAID X establishment is carried out using MegaCli-CfgLdAdd-rX orders;
6) using MegaCli-LdInit-start-full-L0-a0 order to step 5) the RAID X that create carry out it is initial Change, wherein ,-a0 specifies RAID adapter, and-L0 specifies first RAID array created under the adapter;
7) ordered using MegaCli-CfgLdDel-L0-a0 and the RAID X created are deleted, wherein-a0 is specified RAID adapter ,-l0 specifies first RAID array created under the adapter;
Embodiment 2
Hard RAID creation method under milky way kylin operating system as described in Example 1, except that, the RAID Block for LSI MegaRAID SAS 9260-8i.
Embodiment 3
Hard RAID creation method under milky way kylin operating system as described in Example 1, except that, the step 5) X is 0 in.
Embodiment 4
Hard RAID creation method under milky way kylin operating system as described in Example 3, except that, the step 5) X is 1 in.
Embodiment 5
Hard RAID creation method under milky way kylin operating system as described in Example 3, except that, the step 5) X is 5 in.
Embodiment 6
Hard RAID creation method under milky way kylin operating system as described in Example 1, except that, the step 2) in, using lspci-k order the detection RAID card whether identified and ko files in driving code whether be successfully loaded Specific method is, if there is RAID Controller corresponding model in lspci-k order output contents, and accordingly Kernel in use entries show corresponding driving, then judge that RAID card is identified and the driving code in ko files by into Work(is loaded;Otherwise judge that RAID card is unrecognized, the driving code in ko files is not successfully loaded.

Claims (4)

1. hard RAID creation method under a kind of milky way kylin operating system, it is characterised in that as follows including step:
1) using kernel version used in uname-ar order acquisition milky way kylin operating systems, further obtain in the version The linux kernel header file storehouse that core is used when compiling, is compiled using the header file storehouse to the driving code of RAID card, Generate corresponding ko files;
2) using the described ko files of drive load order insmod loading, using lspci-k order detections RAID card whether by Whether the driving code in identification and ko files is successfully loaded;
3) check the current runlevel N of milky way kylin operating system system using runlevel orders, at the same modification it is corresponding/ Etc/rcN.d/rc.local files, by drive load order insmod write-in start self-triggered programs;
4) using dpkg-i megacli.deb orders in milky way kylin operating system loading MegaCli instruments;
5) RAID X establishment is carried out using MegaCli-CfgLdAdd-rX orders;
6) using MegaCli-LdInit-start-full-L0-a0 order to step 5) the RAID X that create initialize, Wherein ,-a0 specifies RAID adapter, and-L0 specifies first RAID array created under the adapter;
7) ordered using MegaCli-CfgLdDel-L0-a0 and the RAID X created are deleted, wherein-a0 specifies RAID Adapter ,-l0 specifies first RAID array created under the adapter.
2. hard RAID creation method under milky way kylin operating system according to claim 1, it is characterised in that described RAID card is LSI MegaRAID SAS 9260-8i.
3. hard RAID creation method under milky way kylin operating system according to claim 1, it is characterised in that the step It is rapid 5) in X be 0,1 or 5.
4. hard RAID creation method under milky way kylin operating system according to claim 1, it is characterised in that the step It is rapid 2) in, using lspci-k order detection RAID card whether identified and ko files in driving code whether be successfully loaded Specific method be, if having RAID Controller corresponding model in lspci-k order output contents, and accordingly Kernel in use entries show corresponding driving, then judge that RAID card is identified and the driving code in ko files by into Work(is loaded;Otherwise judge that RAID card is unrecognized, the driving code in ko files is not successfully loaded.
CN201710211296.5A 2017-03-31 2017-03-31 Method for establishing hard RAID under Galaxy kylin operating system Active CN106959829B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710211296.5A CN106959829B (en) 2017-03-31 2017-03-31 Method for establishing hard RAID under Galaxy kylin operating system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710211296.5A CN106959829B (en) 2017-03-31 2017-03-31 Method for establishing hard RAID under Galaxy kylin operating system

Publications (2)

Publication Number Publication Date
CN106959829A true CN106959829A (en) 2017-07-18
CN106959829B CN106959829B (en) 2022-10-14

Family

ID=59483966

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710211296.5A Active CN106959829B (en) 2017-03-31 2017-03-31 Method for establishing hard RAID under Galaxy kylin operating system

Country Status (1)

Country Link
CN (1) CN106959829B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108334462A (en) * 2018-03-05 2018-07-27 山东超越数控电子股份有限公司 A kind of optical channel card implementation method based on milky way kylin operating system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8880802B1 (en) * 2011-08-18 2014-11-04 Lsi Corporation I/O control, synchronization method in a raid environment with co-existing hardware and software-based I/O paths
CN104965673A (en) * 2015-05-29 2015-10-07 浪潮电子信息产业股份有限公司 Method and apparatus for using MKSH to realize full hard RAID
CN105242877A (en) * 2015-09-29 2016-01-13 浪潮电子信息产业股份有限公司 Hardware RAID management method in Linux
CN106502657A (en) * 2016-10-11 2017-03-15 郑州云海信息技术有限公司 A kind of method for realizing that based on linux automatizatioies HBA cards hard disk configures RAID

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8880802B1 (en) * 2011-08-18 2014-11-04 Lsi Corporation I/O control, synchronization method in a raid environment with co-existing hardware and software-based I/O paths
CN104965673A (en) * 2015-05-29 2015-10-07 浪潮电子信息产业股份有限公司 Method and apparatus for using MKSH to realize full hard RAID
CN105242877A (en) * 2015-09-29 2016-01-13 浪潮电子信息产业股份有限公司 Hardware RAID management method in Linux
CN106502657A (en) * 2016-10-11 2017-03-15 郑州云海信息技术有限公司 A kind of method for realizing that based on linux automatizatioies HBA cards hard disk configures RAID

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108334462A (en) * 2018-03-05 2018-07-27 山东超越数控电子股份有限公司 A kind of optical channel card implementation method based on milky way kylin operating system

Also Published As

Publication number Publication date
CN106959829B (en) 2022-10-14

Similar Documents

Publication Publication Date Title
US7383405B2 (en) Systems and methods for voluntary migration of a virtual machine between hosts with common storage connectivity
US9952782B1 (en) Method and system for accessing data between different virtual disk formats in a virtualization environment
JP5461985B2 (en) Method and system for archiving data
CN101398770B (en) System for and method of migrating one or more virtual machines
CN103210395B (en) With the technology that client virtual machine is mutual
US20130046740A1 (en) Performing online in-place upgrade of cluster file system
TWI465901B (en) Method and system for verification of computerized systems for cloud testing and remote monitoring of integrated circuit devices
US6549978B2 (en) Method for storage controllers with different data formats to access common storage configuration information
US20070288535A1 (en) Long-term data archiving system and method
US9619350B1 (en) Systems and methods for application-consistent disaster recovery using a virtual storage controller and remote storage
US10642529B2 (en) Trim support for a solid-state drive in a virtualized environment
US10061669B2 (en) Mechanism for providing real time replication status information in a networked virtualization environment for storage management
CN103348331A (en) Tiered data storage system with data management and method of operation thereof
US10346065B2 (en) Method for performing hot-swap of a storage device in a virtualization environment
CN103970908A (en) Virtual machine template IVF storage method
Chang et al. Evaluation of Virtual Machine Performance and Virtualized Consolidation Ratio in Cloud Computing System.
US9792075B1 (en) Systems and methods for synthesizing virtual hard drives
CN101630235A (en) Techniques for implementing virtual storage devices
US7921262B1 (en) System and method for dynamic storage device expansion support in a storage virtualization environment
CN110058813A (en) It is a kind of that management method is locally stored based on the storage of cloud platform block
US10788999B2 (en) Information system, management program, and program exchange method of information system
US20140214776A1 (en) Data de-duplication for disk image files
US7571293B1 (en) Emulation of point-in-time data copying operations
CN110998517A (en) System and method for customized operating system translation
US20220334848A1 (en) Layered Composite Boot Device And File System For Operating System Booting In File System Virtualization Environments

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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 250100 No. 2877 Kehang Road, Sun Village Town, Jinan High-tech District, Shandong Province

Applicant after: SHANDONG CHAOYUE DATA CONTROL ELECTRONICS Co.,Ltd.

Address before: 250000 No. 2877 Kehang Road, Suncun Town, Jinan High-tech District, Shandong Province

Applicant before: SHANDONG CHAOYUE NUMERICAL CONTROL ELECTRONIC Co.,Ltd.

Address after: 250100 No. 2877 Kehang Road, Sun Village Town, Jinan High-tech District, Shandong Province

Applicant after: Chaoyue Technology Co.,Ltd.

Address before: 250100 No. 2877 Kehang Road, Sun Village Town, Jinan High-tech District, Shandong Province

Applicant before: SHANDONG CHAOYUE DATA CONTROL ELECTRONICS Co.,Ltd.

GR01 Patent grant
GR01 Patent grant