CN106020914A - Method for regulating multi-controller drive loading sequence under RedHat7 - Google Patents
Method for regulating multi-controller drive loading sequence under RedHat7 Download PDFInfo
- Publication number
- CN106020914A CN106020914A CN201610398478.3A CN201610398478A CN106020914A CN 106020914 A CN106020914 A CN 106020914A CN 201610398478 A CN201610398478 A CN 201610398478A CN 106020914 A CN106020914 A CN 106020914A
- Authority
- CN
- China
- Prior art keywords
- controller
- redhat7
- file
- ahci
- grub2
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44505—Configuring for program initiating, e.g. using registry, configuration files
- G06F9/4451—User profiles; Roaming
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/4401—Bootstrapping
- G06F9/4411—Configuring for operating with peripheral devices; Loading of device drivers
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computer Security & Cryptography (AREA)
- Stored Programmes (AREA)
Abstract
The invention discloses a method for regulating a multi-controller drive loading sequence under RedHat7. According to the method, the operation system loading storage controller drive sequence is regulated by modifying a grub2 configuration file of the RedHat7 and generating a new configuration file. By means of the method, the multi-controller drive loading sequence under linux of a RedHat7 series can be flexibly and conveniently regulated, then, the disk drive sequence is regulated, the inherent controller drive loading sequence can be flexibly changed for requirements of clients or tests, the requirements of services or tests are met, and the drive loading sequence is effectively regulated.
Description
Technical field
The present invention relates to storage control and OS technical field, a kind of method being specifically related under RedHat7 adjust multi-controller drive load order, adjust drive load order.
Background technology
Along with the development of the Internet, the demand of server is increasing, and Internet subscribers colony increases, and the thing followed is that the demand of client is more and more diversified.In order to improve the amount of storage of server, it is necessary to install multiple storage controls on the server, to connect more memory unit or equipment.But owing in server design and the limitation of operating system itself, each storage control drive load installed order is the most different as well as server and the difference of operating system.Which results in the disk drive order difference that the different storage controls seen under operating system connect, i.e. operating system Loading Control device driving order is different.
At present conventional storage control mainly has RAID card and a HBA card:
RAID(Redundant Arrays of Independent Disks) mean " array with redundant ability that independent disk is constituted ", i.e. disk array.It is by a lot of prices disk inexpensively, it is combined into a huge disk group of capacity, indivedual disk is utilized to provide data produced addition effect promoting whole disk system usefulness, some RAID are also equipped with utilizing the idea of parity check, in array, any one hard disk failure is, still can stay alone data, when data reconstruction, re-write after data are computed in new hard disk.RAID card is used for realizing function above exactly, utilizes RAID card can realize the different RAID function such as RAID0, RAID1, RAID10, RAID5 and RAID6.
HBA, i.e. host bus adaptor English " Host Bus Adapter " abbreviation.Being one provides input/output (I/O) to process the circuit board with physical connection or integrated circuit adapter between server and storage device.Host bus adaptor (Host
Bus Adapter, HBA) it is one and provides input/output (I/O) to process between server and storage device and the circuit board of physical connection and/or integrated circuit adapter.Because HBA alleviates the primary processor burden in data storage and search task, it can improve the performance of server.One HBA and the disk subsystem being attached thereto are referred to as a disk channel sometimes along.
For current X86 server, some client may require that and installs multiple storage control on the server, and require that in the storage device such as disk that connected some storage control installed therein for RedHat7 series Linux, simultaneity factor dish drive is necessary for first.In the face of this demand, it is necessary to we adjust, by suitable method, the order that RedHat7 load store controller drives, the storage control driving order having reached to be connected system disk adjusts to first.
Summary of the invention
The technical problem to be solved in the present invention is: the present invention is directed to above weak point, it is provided that a kind of method adjusting multi-controller drive load order under RedHat, so that different customer demand is flexibly met.
The technical solution adopted in the present invention is:
A kind of method adjusting multi-controller drive load order under RedHat7, described method is by modifying to the grub2 configuration file of RedHat7, and generate new configuration file, realize the adjustment to operating system load store controller driving order, can realize flexibly each controller drive load is sequentially adjusted, meet client and testing requirement, implement process as follows:
1) lspci is used to check that each controller drives title under linux, in order to follow-up according to driving name modifications kernel file;
2) former start image is backed up, to prevent from cannot reducing after revising start image failure;
3) the grub file of operating system is revised;
4) new grub2 configuration file is generated by grub2-mkconfig order;
5) Boot Image File is rebuild;
6) adjustment of drive load order and restart operating system, is completed.
Described use lspci checks that each controller drives title process as follows:
Pci bus ID of each memorizer is found by lspci
00:11.4 SATA controller: Intel Corporation C610/X99 series chipset sSATA Controller [AHCI mode] (rev 05)
04:00.0 Serial Attached SCSI controller: Adaptec
Series 8 12G SAS/PCIe 3 (rev 01)
05:00.0 Serial Attached SCSI controller: LSI
Logic / Symbios Logic SAS3008 PCI-Express Fusion-MPT
SAS-3 (rev 02)
Checked the details of storage control by lspci title, find driving title
lspci -s
00:11.4 -xxxvvv |grep
driver
Perform above order and can be appreciated that " Kernel driver in use:ahci ", the i.e. entitled ahci of driving of AHCI.
Described method is by performing:
cp /boot/initramfs-$(uname -r).img /boot/initramfs-$(uname -r).img.bak
Back up former image file, in case can recover after adjusting drive load order failure.
Described grub file drive load according to demand order, amendment/etc/sysconfig/grub
Editor/etc/sysconfig/grub, plus rd.driver.pre=ahci after GRUB_CMDLINE_LINUX, mpt3sas, aacraid
GRUB_CMDLINE_LINUX="crashkernel=auto rhgb quiet rd.driver.pre=ahci,mpt3sas,aacraid"
It is ahci-> mpt3sas-> aacraid by load driver sequential update.
Described grub2 configuration file generates new grub2 configuration file by performing grub2-mkconfig o/boot/grub2/grub.cfg.
Described reconstruction Boot Image File process is as follows:
Rebuild new initramfs file
dracut –v –f
dracut –f /boot/initramfs-$(uname –r).img $(uname -r)。
The invention have the benefit that
How multi-controller is driven loading sequence under adjustment RedHat7 series linux that the present invention can be the most flexible to be adjusted, and then adjust disk drive order, for client or testing requirement, intrinsic controller drive load order can be changed flexibly, meet business or test needs, effectively realize the adjustment of drive load order.
Accompanying drawing explanation
Fig. 1 is present system operational flowchart.
Detailed description of the invention
Below in conjunction with Figure of description, according to detailed description of the invention, the present invention is further described:
After installing RedHat7, the order of each storage control of system loads just secures, and the most first loads the driving of HBA card, and the driving of followed by AHCI, is finally the driving of RAID card.But we need to be adjusted to the drive load order of AHCI the driving of the first cis-position, followed by RAID card, are finally the drivings of HBA card.Under this premise, it is necessary to we can have a kind of feasible method of aspect to meet demand, adjust storage control drive load order.
As shown in Figure 1, a kind of method adjusting multi-controller drive load order under RedHat7, described method is by modifying to the grub2 configuration file of RedHat7, and generate new configuration file, realize the adjustment to operating system load store controller driving order, can realize flexibly each controller drive load is sequentially adjusted, meet client and testing requirement, implement process as follows:
1. check the driving title of each storage control
Pci bus ID of each memorizer is found by lspci
00:11.4 SATA controller: Intel Corporation C610/X99 series chipset sSATA Controller [AHCI mode] (rev 05)
04:00.0 Serial Attached SCSI controller: Adaptec
Series 8 12G SAS/PCIe 3 (rev 01)
05:00.0 Serial Attached SCSI controller: LSI
Logic / Symbios Logic SAS3008 PCI-Express Fusion-MPT
SAS-3 (rev 02)
Checked the details of storage control by lspci title, find driving title
lspci -s
00:11.4 -xxxvvv |grep
driver
Perform above order and can be appreciated that " Kernel driver in use:ahci ", the i.e. entitled ahci of driving of AHCI
2. back up former image file
cp /boot/initramfs-$(uname -r).img /boot/initramfs-$(uname -r).img.bak
Back up former image file, in case can recover after adjusting drive load order failure
Drive load order, amendment/etc/sysconfig/grub the most according to demand
Editor/etc/sysconfig/grub, plus rd.driver.pre=ahci after GRUB_CMDLINE_LINUX, mpt3sas, aacraid
GRUB_CMDLINE_LINUX="crashkernel=auto rhgb quiet rd.driver.pre=ahci,mpt3sas,aacraid"
Will load driver sequential update be ahci-> mpt3sas-> aacraid
4. generate new grub2 configuration file
Perform grub2-mkconfig o/boot/grub2/grub.cfg and generate new grub2 configuration file
5. rebuild new initramfs file
dracut –v –f
dracut –f /boot/initramfs-$(uname –r).img $(uname
-r)
6. restart server, check after starting shooting drive load order the most whether with require consistent, if order with require consistent, then terminate adjustment, otherwise re-start adjustment.
Embodiment is merely to illustrate the present invention; and not limitation of the present invention; those of ordinary skill about technical field; without departing from the spirit and scope of the present invention; can also make a variety of changes and modification; the technical scheme of the most all equivalents falls within scope of the invention, and the scope of patent protection of the present invention should be defined by the claims.
Claims (6)
1. the method adjusting multi-controller drive load order under a RedHat7, it is characterized in that, described method is by modifying to the grub2 configuration file of RedHat7, and generate new configuration file, realize the adjustment to operating system load store controller driving order, implement process as follows:
1) lspci is used to check that each controller drives title under linux, in order to follow-up according to driving name modifications kernel file;
2) by the reflection backup of former startup file, to prevent from cannot reducing after revising start image failure;
3) the grub file of operating system is revised;
4) new grub2 configuration file is generated by grub2-mkconfig order;
5) Boot Image File is rebuild;
6) adjustment of drive load order and restart operating system, is completed.
The method adjusting multi-controller drive load order under a kind of RedHat7 the most according to claim 1, it is characterised in that described use lspci checks that each controller drives title process as follows:
Pci bus ID of each memorizer is found by lspci
00:11.4 SATA controller: Intel Corporation
C610/X99 series chipset sSATA Controller [AHCI mode] (rev 05)
04:00.0 Serial Attached SCSI controller: Adaptec
Series 8 12G SAS/PCIe 3 (rev 01)
05:00.0 Serial Attached SCSI controller: LSI Logic
/ Symbios Logic SAS3008 PCI-Express Fusion-MPT SAS-3 (rev 02)
Checked the details of storage control by lspci title, find driving title
lspci -s 00:11.4 -xxxvvv |grep driver
Perform above order and can be appreciated that " Kernel
Driver in use:ahci ", i.e. the entitled ahci of driving of AHCI.
The method adjusting multi-controller drive load order under a kind of RedHat7 the most according to claim 1, it is characterised in that described method is by performing:
cp /boot/initramfs-$(uname -r).img
/boot/initramfs-$(uname -r).img.bak
Back up former image file.
The method adjusting multi-controller drive load order under a kind of RedHat7 the most according to claim 1, it is characterised in that described grub file drive load according to demand order, amendment/etc/sysconfig/grub
Editor/etc/sysconfig/grub, plus rd.driver.pre=ahci after GRUB_CMDLINE_LINUX, mpt3sas, aacraid
GRUB_CMDLINE_LINUX="crashkernel=auto rhgb
quiet rd.driver.pre=ahci,mpt3sas,aacraid"
It is ahci-> mpt3sas-> aacraid by load driver sequential update.
The method adjusting multi-controller drive load order under a kind of RedHat7 the most according to claim 1, it is characterized in that, described grub2 configuration file generates new grub2 configuration file by performing grub2-mkconfig o/boot/grub2/grub.cfg.
The method adjusting multi-controller drive load order under a kind of RedHat7 the most according to claim 1, it is characterised in that described reconstruction Boot Image File process is as follows:
Rebuild new initramfs file
dracut –v –f
dracut –f /boot/initramfs-$(uname –r).img $(uname -r)。
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610398478.3A CN106020914A (en) | 2016-06-07 | 2016-06-07 | Method for regulating multi-controller drive loading sequence under RedHat7 |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610398478.3A CN106020914A (en) | 2016-06-07 | 2016-06-07 | Method for regulating multi-controller drive loading sequence under RedHat7 |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106020914A true CN106020914A (en) | 2016-10-12 |
Family
ID=57090857
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610398478.3A Pending CN106020914A (en) | 2016-06-07 | 2016-06-07 | Method for regulating multi-controller drive loading sequence under RedHat7 |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106020914A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107402855A (en) * | 2017-06-30 | 2017-11-28 | 郑州云海信息技术有限公司 | A kind of detection method of hard disk, device and server |
CN107450864A (en) * | 2017-08-31 | 2017-12-08 | 郑州云海信息技术有限公司 | A kind of magnetic disc control method, device, server and storage medium |
CN109460261A (en) * | 2018-11-02 | 2019-03-12 | 郑州云海信息技术有限公司 | A kind of method and device adjusting disk sequence between a variety of storage controls |
WO2023123896A1 (en) * | 2021-12-28 | 2023-07-06 | 苏州浪潮智能科技有限公司 | Disc loading control method, apparatus, and device, and readable storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8387045B2 (en) * | 2009-03-12 | 2013-02-26 | International Business Machines Corporation | Cloning image creation using virtual machine environment |
CN104077196A (en) * | 2014-07-02 | 2014-10-01 | 浪潮(北京)电子信息产业有限公司 | Linux boot failure recovering method and device |
CN105426169A (en) * | 2015-10-27 | 2016-03-23 | 浪潮电子信息产业股份有限公司 | Method for automatic adjustment of network card identification order in Windows system |
CN104461402B (en) * | 2014-12-29 | 2018-04-06 | 浪潮电子信息产业股份有限公司 | A kind of method for adjusting disk order under Linux system between multi-controller |
-
2016
- 2016-06-07 CN CN201610398478.3A patent/CN106020914A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8387045B2 (en) * | 2009-03-12 | 2013-02-26 | International Business Machines Corporation | Cloning image creation using virtual machine environment |
CN104077196A (en) * | 2014-07-02 | 2014-10-01 | 浪潮(北京)电子信息产业有限公司 | Linux boot failure recovering method and device |
CN104461402B (en) * | 2014-12-29 | 2018-04-06 | 浪潮电子信息产业股份有限公司 | A kind of method for adjusting disk order under Linux system between multi-controller |
CN105426169A (en) * | 2015-10-27 | 2016-03-23 | 浪潮电子信息产业股份有限公司 | Method for automatic adjustment of network card identification order in Windows system |
Non-Patent Citations (1)
Title |
---|
邵国金: "《UNIX系统与软件开发》", 31 October 2013, 中国铁道出版社 * |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107402855A (en) * | 2017-06-30 | 2017-11-28 | 郑州云海信息技术有限公司 | A kind of detection method of hard disk, device and server |
CN107450864A (en) * | 2017-08-31 | 2017-12-08 | 郑州云海信息技术有限公司 | A kind of magnetic disc control method, device, server and storage medium |
CN109460261A (en) * | 2018-11-02 | 2019-03-12 | 郑州云海信息技术有限公司 | A kind of method and device adjusting disk sequence between a variety of storage controls |
WO2023123896A1 (en) * | 2021-12-28 | 2023-07-06 | 苏州浪潮智能科技有限公司 | Disc loading control method, apparatus, and device, and readable storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP2731013B1 (en) | Backing up method, device, and system for virtual machine | |
US10346253B2 (en) | Threshold based incremental flashcopy backup of a raid protected array | |
CN104685476B (en) | For restoring the method, system and product of virtual machine | |
US9600375B2 (en) | Synchronized flashcopy backup restore of a RAID protected array | |
CN102099787B (en) | Systems and methods for installing a bootable virtual storage appliance on a virtualized server platform | |
CN106020914A (en) | Method for regulating multi-controller drive loading sequence under RedHat7 | |
US9377964B2 (en) | Systems and methods for improving snapshot performance | |
US8037243B1 (en) | Installing data storage system software on disk drive systems | |
US20100115257A1 (en) | Systems and Methods to Provide Failover Support for Booting Embedded Hypervisor From an Internal Non-Volatile Memory Card | |
US20070168571A1 (en) | System and method for automatic enforcement of firmware revisions in SCSI/SAS/FC systems | |
US20120311279A1 (en) | Data recovery and backup system and process | |
US20120079474A1 (en) | Reimaging a multi-node storage system | |
US7266815B2 (en) | Automated control of a licensed internal code update on a storage controller | |
CN102165418A (en) | Turbo boot systems and methods | |
CN105138431A (en) | Linux system back-up and restoring method | |
CN104461402A (en) | Method for adjusting disk sequence among multiple controllers under linux system | |
US9471256B2 (en) | Systems and methods for restoring data in a degraded computer system | |
US11169818B2 (en) | Systems and methods for dynamically locating and accessing operating system (OS) file system data from a pre-boot environment | |
US7536593B2 (en) | Apparatus, system, and method for emergency backup | |
US20120017111A1 (en) | Kernel swapping systems and methods for recovering a network device | |
CN106843764B (en) | Method and system for creating soft independent redundant disk array | |
US8769334B1 (en) | Techniques for providing instant disaster recovery | |
CN100585558C (en) | Method and device for providing and recovering data | |
US10496307B1 (en) | Reaching a normal operating mode via a fastboot procedure | |
US20140149787A1 (en) | Method and system for copyback completion with a failed drive |
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: 20161012 |