CN103514022A - RAID card drive integration method under LINUX - Google Patents

RAID card drive integration method under LINUX Download PDF

Info

Publication number
CN103514022A
CN103514022A CN201310494895.4A CN201310494895A CN103514022A CN 103514022 A CN103514022 A CN 103514022A CN 201310494895 A CN201310494895 A CN 201310494895A CN 103514022 A CN103514022 A CN 103514022A
Authority
CN
China
Prior art keywords
file
initrd
img
raid card
raid
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
CN201310494895.4A
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.)
Inspur Electronic Information Industry Co Ltd
Original Assignee
Inspur Electronic Information Industry Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Inspur Electronic Information Industry Co Ltd filed Critical Inspur Electronic Information Industry Co Ltd
Priority to CN201310494895.4A priority Critical patent/CN103514022A/en
Publication of CN103514022A publication Critical patent/CN103514022A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention relates to a drive integration method, and discloses an RAID card drive integration method under LINUX. The RAID card drive integration method includes the steps that an original initrd. img file is decompressed to obtain corresponding catalogs and files; a module file driven by an RAID is compressed and placed in a designated catalog; hardware information of an RAID card is added to a designated file; all the modified catalogs and the files are packaged and compressed to obtain the modified initrd. img file with RAID drive; the modified initrd. img file is utilized to replace the original file, an ISO is manufactured and recorded, and then the RAID card can be normally driven after a light disk is installed. The RAID card drive integration method has the advantages that the integration method is relatively simple, the integrated RAID card can be used for PXE network installation and traditional light disk installation, the integration process is flexible and quick, time and labor are saved in the installing process of a large-scale system, and the installing process is safe and stable.

Description

RAID card under a kind of LINUX drives integrated approach
Technical field
The present invention relates to a kind of integrated method that drives, particularly the RAID card based on LINUX drives integrated approach.
Technical background
Modern computer hardware update speed, corresponding hardware can not be supported by original operating system sometimes, if wherein RAID card does not have corresponding driver, system cannot find hard disk, causes system to install.
In the process starting at LINUX, system kernel vmlinuz starts to provide basic-level support after being loaded into internal memory, various modules under the support of kernel, and service etc. is loaded operation.When kernel is not supported RAID card, the kernel access hard disk of just having no idea, also cannot load the file system on hard disk certainly, causes None-identified hard disk in installation process, installs unsuccessfully.
Classic method is to add RAID card to drive source code then to recompilate out a new kernel file kernel to replace original vmlinuz, or manually selects load driver in installation process.But compiling Kernel-Process is comparatively complicated, the method that manual loading drives is loaded down with trivial details in extensive installation, loses time.
Initrd.img file is the image file of a ram disk.Ramdisk is modeled to disk with a part of internal memory, allows operating system access.Ramdisk is that the equipment (/dev/ram0) file system of standard kernel file understanding is also the file system of standard kernel understanding.This ramdisk of kernel loads as root file system and the init file that starts to carry out wherein load various modules, service etc.After some configurations and operation, just can go physical disk to load real root subregion, be again then some configurations etc., finally start successfully.
Summary of the invention
The technical problem to be solved in the present invention is: the object of the invention is for present case, the integrated approach that provides a kind of RAID card to drive, employing simply, method completes integrated that RAID card drives flexibly, make to drive and can be given tacit consent to use in the process of installation system, avoid manual loading to drive or recompilate the complicated processes of kernel.
The technical solution adopted in the present invention is:
Under RAID card drive an integrated approach, comprising: by master initrd.img file decompress(ion), obtain respective directories and file; The module file that RAID is driven compresses, and is put into assigned catalogue; By the hardware information of RAID card, add in the file of appointment; By revising catalogue, file later, all pack, compress, obtain revising the initrd.img file that contains the driving of RAID card later; By revising initrd.img later, replace original document, make ISO imprinting, fixing disc can driven RAID card.
Described method comprises that step is as follows:
1, obtain master initrd.img, this file is arranged in fixing disc or mirror image.
2, with file order, check the compression method of initrd.img.
3, the suffix of initrd.img is changed to suffix corresponding to compression method in step 2.
4, with the corresponding decompress(ion) order of the compression method viewing in step 2, the file after change in step 3 is carried out to decompress(ion).
5, with file order, check the type of resulting initrd file in step 4.
6, with the corresponding command, resulting file in step 4 is carried out to decompress(ion).
7, img file RAID card being driven carries out carry.
8, the module file of driving is compressed with the compression method of gzip.
9, the corresponding relation of RAID card hardware information and the driving of RAID card is joined in modules.alias file.
10, will in step 8, compress driver module file copy later to specified path, if exist file of the same name to carry out overlapping operation
11, by corresponding compression method boil down to initrd file for the All Files of step 6 decompress(ion).
12, with the compression method in step 2, initrd is compressed.
13, by the file amendment after step 12 compression, be initrd.img.
14, initrd.img is replaced to original document, make ISO, imprinting becomes fixing disc.
Beneficial effect of the present invention is:
RAID card provided by the present invention drives integrated approach to have on the basis of classic method and improves and innovation, the invention has the advantages that integrated approach is relatively simple, and can be for PXE network installation after integrated, also can be used for traditional CD installs, integrating process flexibly and fast, both time saving and energy saving in large scale system is installed, safety and stability again.
Accompanying drawing explanation
Fig. 1 is the simplified flow chart that under LINUX, RAID card drives an integrated specific embodiment.
Embodiment
With reference to the accompanying drawings, in conjunction with the embodiments to the detailed description of the invention.
Embodiment 1:
Under RAID card drive an integrated approach, comprising: by master initrd.img file decompress(ion), obtain respective directories and file; The module file that RAID is driven compresses, and is put into assigned catalogue; By the hardware information of RAID card, add in the file of appointment; By revising catalogue, file later, all pack, compress, obtain revising the initrd.img file that contains the driving of RAID card later; By revising initrd.img later, replace original document, make ISO imprinting, fixing disc can driven RAID card.
Embodiment 2:
On the basis of embodiment 1, method described in the present embodiment, comprises that step is as follows:
1. obtain master initrd.img, this file is arranged in fixing disc or mirror image.
2. with file order, check the compression method of initrd.img.
3. the suffix of initrd.img is changed to suffix corresponding to compression method in step 2.
4. with the corresponding decompress(ion) order of the compression method viewing in step 2, the file after change in step 3 is carried out to decompress(ion).
5. with file order, check the type of resulting initrd file in step 4.
6. with the corresponding command, resulting file in step 4 is carried out to decompress(ion).
7. img file RAID card being driven carries out carry.
8. the module file of driving is compressed with the compression method of gzip.
9. the corresponding relation of RAID card hardware information and the driving of RAID card is joined in modules.alias file.
10. will in step 8, compress driver module file copy later to specified path, if exist file of the same name to carry out overlapping operation
11. by corresponding compression method boil down to initrd file for the All Files of step 6 decompress(ion).
Compression method in 12. use steps 2 compresses initrd.
13. is initrd.img by the file amendment after step 12 compression.
14. replace original document by initrd.img, make ISO, and imprinting becomes fixing disc.
Embodiment 3:
On the basis of embodiment 1 or 2, with one of Centos6.1 system disk, it is example that RAID card drives aacraid-RHEL6.1-el6.x86_64.img, and concrete operation step is as follows:
1. initrd.img file copy is out arranged in to CD isolinux/initrd.img;
2. check initrd.img compression method, file initrd.img, demonstration is gzip;
3. initrd.img is changed to initrd.gz mv initrd.img initrd.gz;
4. with gunzip order, decompress, obtain initrd file gunzip initrd.gz;
5. checking initrd file type, is cpio compression file initrd;
6. first set up temporary folder and enter after file, use cpio decompressing files,
mkdir initrd_files
cd initrd_files
cpio –idmv < ../initrd;
7. obtain driver module,
mkdir /home/raid
mount -o loop aaacraid-RHEL6.1-el6.x86_64.img /media/
cp /media/rpms/x86_64/kmod-aacraid-1.1.7.28700-1.el6.x86_64.rpm
/home/raid;
8. the rpm bag of driving is carried out to decompress(ion),
cd /home/raid
rpm2cpio kmod-aacraid-1.1.7.28700-1.el6.x86_64.rpm |cpio –idmv;
9. the driver module of RAID card is compressed with gzip order,
cp lib/modules/2.6.32-131.0.15.el6.x86_64/extra/aacraid/aacraid.ko .
gzip -9 aacraid.ko;
10. the correspondence position under the initrd file of the file copy after compression being crossed to decompress(ion),
cp aacraid.ko.gz /home/
initrd_file/modules/2.6.32-279.el6.x86_64/kernel/drivers/scsi/aacraid/ ;
11. add the hardware information of RAID card in modules.alias file to,
echo “alias pci:v00009005d0000028Bsv*sd*bc*sc*i* aacraid” >>
/home/ initrd_file/modules/2.6.32-279.el6.x86_64/modules.alias ;
12. are compressed into initrd file by initrd_file file,
cd /home/initrd_file
find . -print|cpio -o -H newc > ../initrd ;
13. use gzip compression initrd files,
cd /home
gzip -9 initrd ;
14. change to initrd.img mv initrd.gz initrd.img by initrd.gz.
The foregoing is only preferred embodiment of the present invention, in order to limit the present invention, within the spirit and principles in the present invention not all, any modification of making, is equal to replacement etc., within all should being included in protection scope of the present invention.

Claims (2)

1. the RAID card under LINUX drives an integrated approach, it is characterized in that: by master initrd.img file decompress(ion), obtain respective directories and file; The module file that RAID is driven compresses, and is put into assigned catalogue; By the hardware information of RAID card, add in the file of appointment; By revising catalogue, file later, all pack, compress, obtain revising the initrd.img file that contains the driving of RAID card later; By revising initrd.img later, replace original document, make ISO imprinting, fixing disc, driven RAID card.
2. the RAID card under a kind of LINUX according to claim 1 drives integrated approach, it is characterized in that: described method comprises that step is as follows:
Figure 2013104948954100001DEST_PATH_IMAGE002
obtain master initrd.img;
Figure 2013104948954100001DEST_PATH_IMAGE004
with file order, check the compression method of initrd.img;
Figure 2013104948954100001DEST_PATH_IMAGE006
the suffix of initrd.img is changed to suffix corresponding to compression method in step 2;
Figure 2013104948954100001DEST_PATH_IMAGE008
with the corresponding decompress(ion) order of the compression method viewing in step 2, the file after change in step 3 is carried out to decompress(ion);
Figure 2013104948954100001DEST_PATH_IMAGE010
with file order, check the type of resulting initrd file in step 4;
Figure 2013104948954100001DEST_PATH_IMAGE012
with the corresponding command, resulting file in step 4 is carried out to decompress(ion);
Figure 2013104948954100001DEST_PATH_IMAGE014
the img file that RAID card is driven carries out carry;
Figure 2013104948954100001DEST_PATH_IMAGE016
the module file of driving is compressed with the compression method of gzip;
Figure 2013104948954100001DEST_PATH_IMAGE018
the corresponding relation of RAID card hardware information and the driving of RAID card is joined in modules.alias file;
Figure 2013104948954100001DEST_PATH_IMAGE020
to in step 8, compress driver module file copy later to specified path, if exist file of the same name to carry out overlapping operation;
Figure 2013104948954100001DEST_PATH_IMAGE022
by corresponding compression method boil down to initrd file for the All Files of step 6 decompress(ion);
Figure 2013104948954100001DEST_PATH_IMAGE024
with the compression method in step 2, initrd is compressed;
Figure 2013104948954100001DEST_PATH_IMAGE026
by the file amendment after step 12 compression, be initrd.img;
initrd.img is replaced to original document, make ISO, imprinting becomes fixing disc.
CN201310494895.4A 2013-10-22 2013-10-22 RAID card drive integration method under LINUX Pending CN103514022A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310494895.4A CN103514022A (en) 2013-10-22 2013-10-22 RAID card drive integration method under LINUX

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310494895.4A CN103514022A (en) 2013-10-22 2013-10-22 RAID card drive integration method under LINUX

Publications (1)

Publication Number Publication Date
CN103514022A true CN103514022A (en) 2014-01-15

Family

ID=49896797

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310494895.4A Pending CN103514022A (en) 2013-10-22 2013-10-22 RAID card drive integration method under LINUX

Country Status (1)

Country Link
CN (1) CN103514022A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104360883A (en) * 2014-11-12 2015-02-18 浪潮(北京)电子信息产业有限公司 Method and system for configuring Raid (Redundant array of independent disks)
CN104765607A (en) * 2015-04-01 2015-07-08 闻泰通讯股份有限公司 Compiling-free reinstalling package correcting method
CN105138359A (en) * 2015-08-17 2015-12-09 浪潮电子信息产业股份有限公司 Optimized RAID forming method based on automation
CN105760255A (en) * 2016-02-14 2016-07-13 北京艾森思科技有限公司 RAID card configuration information backup and recovery method and device
CN106528077A (en) * 2016-09-21 2017-03-22 郑州云海信息技术有限公司 Method for generating universal RPM-format RAID card driver for customization system
CN106959828A (en) * 2017-03-31 2017-07-18 山东超越数控电子有限公司 A kind of hardware RAID system and its implementation based on Domestic Platform
CN112015431A (en) * 2020-08-27 2020-12-01 深圳忆联信息系统有限公司 Method and device for modifying firmware information by one key, computer equipment and storage medium
CN114253609A (en) * 2021-11-10 2022-03-29 苏州浪潮智能科技有限公司 Method and system for installing OS (operating system) through network PXE (peripheral component interconnect extensions) based on Feiteng platform

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102063276A (en) * 2010-12-23 2011-05-18 创新科存储技术有限公司 Storage equipment with both RAID (Redundant Array Of Inexpensive Disk) and VTL (Virtual Tape Library) functions and method
US20110208957A1 (en) * 2006-09-08 2011-08-25 Thompson Mark J Bios bootable raid support
CN102622244A (en) * 2012-02-22 2012-08-01 浪潮电子信息产业股份有限公司 Automatic-drive-adding system installation method
CN102789369A (en) * 2012-06-28 2012-11-21 浪潮电子信息产业股份有限公司 Method for adding SCSI (Small Computer System Interface) and RAID (Redundant Array of Independent Disk) drives by using a USB (Universal Serial Bus) flash disk to install windows2003

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110208957A1 (en) * 2006-09-08 2011-08-25 Thompson Mark J Bios bootable raid support
CN102063276A (en) * 2010-12-23 2011-05-18 创新科存储技术有限公司 Storage equipment with both RAID (Redundant Array Of Inexpensive Disk) and VTL (Virtual Tape Library) functions and method
CN102622244A (en) * 2012-02-22 2012-08-01 浪潮电子信息产业股份有限公司 Automatic-drive-adding system installation method
CN102789369A (en) * 2012-06-28 2012-11-21 浪潮电子信息产业股份有限公司 Method for adding SCSI (Small Computer System Interface) and RAID (Redundant Array of Independent Disk) drives by using a USB (Universal Serial Bus) flash disk to install windows2003

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
KEN_LI: "《添加raid驱动到initrd.img》", 《HTTP://BLOG.SINA.COM.CN/S/BLOG_7225328801017UFO.HTML》 *

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104360883A (en) * 2014-11-12 2015-02-18 浪潮(北京)电子信息产业有限公司 Method and system for configuring Raid (Redundant array of independent disks)
CN104360883B (en) * 2014-11-12 2018-03-09 浪潮(北京)电子信息产业有限公司 A kind of configuration Raid method and system
CN104765607A (en) * 2015-04-01 2015-07-08 闻泰通讯股份有限公司 Compiling-free reinstalling package correcting method
CN105138359A (en) * 2015-08-17 2015-12-09 浪潮电子信息产业股份有限公司 Optimized RAID forming method based on automation
CN105760255A (en) * 2016-02-14 2016-07-13 北京艾森思科技有限公司 RAID card configuration information backup and recovery method and device
CN105760255B (en) * 2016-02-14 2019-01-22 北京艾森思科技有限公司 A kind of backup and reduction method and apparatus of RAID card configuration information
CN106528077A (en) * 2016-09-21 2017-03-22 郑州云海信息技术有限公司 Method for generating universal RPM-format RAID card driver for customization system
CN106959828A (en) * 2017-03-31 2017-07-18 山东超越数控电子有限公司 A kind of hardware RAID system and its implementation based on Domestic Platform
CN112015431A (en) * 2020-08-27 2020-12-01 深圳忆联信息系统有限公司 Method and device for modifying firmware information by one key, computer equipment and storage medium
CN112015431B (en) * 2020-08-27 2023-12-05 深圳忆联信息系统有限公司 Method, device, computer equipment and storage medium for modifying firmware information by one key
CN114253609A (en) * 2021-11-10 2022-03-29 苏州浪潮智能科技有限公司 Method and system for installing OS (operating system) through network PXE (peripheral component interconnect extensions) based on Feiteng platform
CN114253609B (en) * 2021-11-10 2023-07-18 苏州浪潮智能科技有限公司 Method and system for installing OS system through network PXE based on Feiteng platform

Similar Documents

Publication Publication Date Title
CN103514022A (en) RAID card drive integration method under LINUX
CN110088733B (en) Storage layer-based orchestration of virtual machine migration
US9563442B2 (en) Baseboard management controller and method of loading firmware
US20060288168A1 (en) Transportable computing environment
CN103324474B (en) Based on (SuSE) Linux OS across the method for System structure ISO and module
US6425078B1 (en) Method for factory-installation of files and directories with long filenames while maintaining proper reference to their short filename equivalents
CN105446771A (en) USB flash disk based method for quickly and automatically installing operating system
US7490267B2 (en) System and method for testing computer
CN105468396A (en) Generating method for differential package, upgrading method, generating apparatus, and Linux terminal
US20120311279A1 (en) Data recovery and backup system and process
US20120167090A1 (en) Hypervisor for starting a virtual machine
CN102141923B (en) Memory file system loading method and device
CN103309706A (en) Memory file system preparation method and unit based on Linux operation system
TW201709081A (en) Automatic image recovery method and server system
CN102135893A (en) Method for integrating operating system on BIOS (Basic Input Output System) chip and starting operating system on server
WO2010108102A1 (en) Hybrid storage device
CN103761107B (en) Software package customizing device and method
CN105426207A (en) PXE-based method for rapidly installing operation systems in batches
CN104391713A (en) Automatic installation method for Windows system
WO2019027654A1 (en) Systems and methods for customized operating system conversion
CN104866324A (en) Method for constructing portable operating system and portable memorizer
CN104484207A (en) Mirror image upgrading method for switch, linux operation system and switch
CN102043634A (en) Embedded system and embedded software upgrading method
CN106383703A (en) Hard disk driver loading method and apparatus for linux operation system
CN108491292A (en) A kind of backup and reduction method based on platform of soaring

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20140115