CN109460261A - A kind of method and device adjusting disk sequence between a variety of storage controls - Google Patents

A kind of method and device adjusting disk sequence between a variety of storage controls Download PDF

Info

Publication number
CN109460261A
CN109460261A CN201811298640.XA CN201811298640A CN109460261A CN 109460261 A CN109460261 A CN 109460261A CN 201811298640 A CN201811298640 A CN 201811298640A CN 109460261 A CN109460261 A CN 109460261A
Authority
CN
China
Prior art keywords
storage control
storage
driving
variety
module
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
CN201811298640.XA
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 CN201811298640.XA priority Critical patent/CN109460261A/en
Publication of CN109460261A publication Critical patent/CN109460261A/en
Pending legal-status Critical Current

Links

Classifications

    • 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
    • G06F9/4406Loading of operating system
    • G06F9/4408Boot device selection

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The present invention provides a kind of method and device for adjusting disk sequence between a variety of storage controls, and method includes the following steps: to obtain all storage control types that server carries;It determines the storage control type for carrying out operating system installation, is set as the first storage control;It determines the storage control type for carrying out data storage, is set as the second storage control;Increase the driving of the first storage control in linux guide management starting module;The driving of increased first storage control is saved in linux guide management starting module;The driving that the second storage control is arranged starts after the driving of the first storage control;Server Restart, new disk sequence come into force.The present invention by linux to grub guide management modification of program, under Lai Shixian operating system in a variety of mashed up situations of storage control disk boot sequence setting, the present invention is simple and efficient, and improves the efficiency of test and application.

Description

A kind of method and device adjusting disk sequence between a variety of storage controls
Technical field
The invention belongs to server field of storage, and in particular to a kind of to adjust disk sequence between a variety of storage controls Method and device.
Background technique
It will appear to put in order when server carries a variety of storage control such as SATA/RAID card/SAS cards at present and be not fixed The phenomenon that, for many practical applications it has also been found that when existing simultaneously such as onboard SATA+raid card, the onboard SATA disk of demand does system disk peace Operating system is filled, the hard disk that will appear preferential identification raid card connection into operating system identifies onboard SATA again, then existing Following problem:
1, automatic installing operating system, system will be installed on connecing the hard disk on raid card;
2, operating system is installed manually, chooses postposition hard disk, after operating system is installed, finds the non-sda disk of system disk.
There is system failure when causing to be written and read system disk because of drive problem.
This is the deficiencies in the prior art, therefore, in view of the above-mentioned drawbacks in the prior art, provides a kind of a variety of storages of adjustment The method and device of disk sequence, is necessary between controller.
Summary of the invention
It is an object of the present invention to carry a variety of storage control such as SATA/RAID card/SAS cards for above-mentioned server When will appear the unfixed phenomenon that puts in order, occur the defect of system failure when causing to be written and read system disk, mention For a kind of method and device for adjusting disk sequence between a variety of storage controls, to solve the above technical problems.
To achieve the above object, the present invention provides following technical scheme:
A method of disk sequence between a variety of storage controls is adjusted, is included the following steps:
S1. all storage control types that server carries are obtained;
S2. it determines the storage control type for carrying out operating system installation, is set as the first storage control;
S3. it determines the storage control type for carrying out data storage, is set as the second storage control;
S4. increase the driving of the first storage control in linux guide management starting module;
S5. the driving of increased first storage control is saved in linux guide management starting module;
S6. the driving that the second storage control is arranged starts after the driving of the first storage control;
S7. Server Restart, new disk sequence come into force.
Further, the linux guide management starting module uses grub guide management program.Grub is a guidance Management program can guide the systems such as linux, winxp.
Further, in step S4, in grub guide management program, modification rdloaddriver are the first storage control The driving of device processed.Rdloaddriver be the storage control preferentially started driving title.
Further, by executing order grub2-mkconfig >/boot/efi/EFI/redhat/ in step S5 Grub.cfg creates new grub file and the driving of increased first storage control is saved in grub guide management program.
Further, first storage control uses SAS storage control;
In step S4, in grub guide management program, modification rdloaddriver are mpt3sas.
Further, specific step is as follows by step S6:
S61. under copied files 18-scsi-sd-sequence.rules to/etc/udev/rules.d/ catalogue;
S62. the driving that the DRIVER item under 18-scsi-sd-sequence.rules is the second storage control is modified;
S63. modification saves, and exits.The storage control that DRIVER item under 18-scsi-sd-sequence.rules starts after being The driving title of device.
Further, first storage control uses SAS controller, and the second storage control is using raid storage control Device processed;
It is megaraid_sas that the DRIVER item under 18-scsi-sd-sequence.rules is modified in step S62.
The present invention gives following technical solution:
A kind of device adjusting disk sequence between a variety of storage controls, including
Storage control type acquisition module, for obtaining all storage control types of server carrying;
The storage control determining module of operating system installation, for determining the storage control class for carrying out operating system installation Type is set as the first storage control;
The storage control determining module of data storage is set as determining the storage control type for carrying out data storage Second storage control;
The storage control driving of operating system installation increases module, for increasing by the in linux guide management starting module The driving of one storage control;
The storage control of operating system installation drives preserving module, for saving the driving of increased first storage control To linux guide management starting module;
The driving setup module of data storage controller, for the driving of the second storage control to be arranged in the first storage control Driving after start;
Restart module, be used for Server Restart, new disk sequence comes into force.
The beneficial effects of the present invention are:
The present invention by linux to grub guide management modification of program, a variety of storage controls under Lai Shixian operating system The setting of disk boot sequence, the present invention are simple and efficient in mashed up situation, improve the efficiency of test and application.
In addition, design principle of the present invention is reliable, structure is simple, has very extensive application prospect.
It can be seen that compared with prior art, the present invention implementing with substantive distinguishing features outstanding and significant progress Beneficial effect be also obvious.
Detailed description of the invention
Fig. 1 is flow chart of the method for the present invention;
Fig. 2 is system schematic of the invention;
Wherein, 1- storage control type acquisition module;The storage control determining module of 2- operating system installation;3- data are deposited The storage control determining module of storage;The storage control driving of 4- operating system installation increases module;The installation of 5- operating system Storage control drive preserving module;The driving setup module of 6- data storage controller;7- restarts module.
Specific embodiment:
To enable the purpose of the present invention, feature, advantage more obvious and understandable, it is embodied below in conjunction with the present invention Attached drawing in example, is clearly and completely described the technical solution in the present invention.
Embodiment 1:
As shown in Figure 1, the present invention provides a kind of method for adjusting disk sequence between a variety of storage controls, which is characterized in that Include the following steps:
S1. all storage control types that server carries are obtained;
S2. it determines the storage control type for carrying out operating system installation, is set as the first storage control;
S3. it determines the storage control type for carrying out data storage, is set as the second storage control;
S4. increase the driving of the first storage control in linux guide management starting module;
S5. the driving of increased first storage control is saved in linux guide management starting module;
S6. the driving that the second storage control is arranged starts after the driving of the first storage control;
S7. Server Restart, new disk sequence come into force.
In above-described embodiment 1, the linux guide management starting module uses grub guide management program;First storage Controller uses SAS controller, and the second storage control uses raid storage control;
In step S4, in grub guide management program, modification rdloaddriver are mpt3sas;
It is created newly in step S5 by executing order grub2-mkconfig >/boot/efi/EFI/redhat/grub.cfg The driving of increased first storage control is saved in grub guide management program by grub file;
Specific step is as follows by step S6:
S61. under copied files 18-scsi-sd-sequence.rules to/etc/udev/rules.d/ catalogue;
S62. modifying the DRIVER item under 18-scsi-sd-sequence.rules is megaraid_sas;S63. modification is protected It deposits, exits.
Embodiment 2:
As shown in Fig. 2, the present invention provides a kind of device for adjusting disk sequence between a variety of storage controls, including
Storage control type acquisition module 1, for obtaining all storage control types of server carrying;
The storage control determining module 2 of operating system installation, for determining the storage control class for carrying out operating system installation Type is set as the first storage control;
The storage control determining module 3 of data storage is set as determining the storage control type for carrying out data storage Second storage control;
The storage control driving of operating system installation increases module 4, for increasing by the in linux guide management starting module The driving of one storage control;
The storage control of operating system installation drives preserving module 5, for protecting the driving of increased first storage control It is stored to linux guide management starting module;
The driving setup module 6 of data storage controller, for the driving of the second storage control to be arranged in the first storage control Start after the driving of device;
Restart module 7, be used for Server Restart, new disk sequence comes into force.
The embodiment of the present invention be it is illustrative and not restrictive, above-described embodiment be only to aid in understanding the present invention, because The present invention is not limited to the embodiments described in specific embodiment for this, all by those skilled in the art's technology according to the present invention Other specific embodiments that scheme obtains, also belong to the scope of protection of the invention.

Claims (8)

1. a kind of method for adjusting disk sequence between a variety of storage controls, which comprises the steps of:
S1. all storage control types that server carries are obtained;
S2. it determines the storage control type for carrying out operating system installation, is set as the first storage control;
S3. it determines the storage control type for carrying out data storage, is set as the second storage control;
S4. increase the driving of the first storage control in linux guide management starting module;
S5. the driving of increased first storage control is saved in linux guide management starting module;
S6. the driving that the second storage control is arranged starts after the driving of the first storage control;
S7. Server Restart, new disk sequence come into force.
2. a kind of method for adjusting disk sequence between a variety of storage controls as described in claim 1, which is characterized in that institute Linux guide management starting module is stated using grub guide management program.
3. a kind of method for adjusting disk sequence between a variety of storage controls as claimed in claim 2, which is characterized in that step In rapid S4, in grub guide management program, the modification rdloaddriver drivings for the first storage control.
4. a kind of method for adjusting disk sequence between a variety of storage controls as claimed in claim 3, which is characterized in that New grub is created by executing order grub2-mkconfig >/boot/efi/EFI/redhat/grub.cfg in step S5 The driving of increased first storage control is saved in grub guide management program by file.
5. a kind of method for adjusting disk sequence between a variety of storage controls as claimed in claim 3, which is characterized in that institute The first storage control is stated using SAS storage control;
In step S4, in grub guide management program, modification rdloaddriver are mpt3sas.
6. a kind of method for adjusting disk sequence between a variety of storage controls as described in claim 1, which is characterized in that step Specific step is as follows by rapid S6:
S61. under copied files 18-scsi-sd-sequence.rules to/etc/udev/rules.d/ catalogue;
S62. the driving that the DRIVER item under 18-scsi-sd-sequence.rules is the second storage control is modified;
S63. modification saves, and exits.
7. a kind of method for adjusting disk sequence between a variety of storage controls as claimed in claim 6, which is characterized in that institute The first storage control is stated using SAS controller, the second storage control uses raid storage control;
It is megaraid_sas that the DRIVER item under 18-scsi-sd-sequence.rules is modified in step S62.
8. a kind of device for adjusting disk sequence between a variety of storage controls, which is characterized in that including
Storage control type acquisition module (1), for obtaining all storage control types of server carrying;
The storage control determining module (2) of operating system installation, for determining the storage control for carrying out operating system installation Type is set as the first storage control;
The storage control determining module (3) of data storage, for determining the storage control type for carrying out data storage, setting For the second storage control;
The storage control driving of operating system installation increases module (4), for increasing in linux guide management starting module The driving of first storage control;
The storage control of operating system installation drives preserving module (5), for by the driving of increased first storage control It is saved in linux guide management starting module;
The driving setup module (6) of data storage controller, for the driving of the second storage control to be arranged in the first storage control Start after the driving of device processed;
Restart module (7), be used for Server Restart, new disk sequence comes into force.
CN201811298640.XA 2018-11-02 2018-11-02 A kind of method and device adjusting disk sequence between a variety of storage controls Pending CN109460261A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811298640.XA CN109460261A (en) 2018-11-02 2018-11-02 A kind of method and device adjusting disk sequence between a variety of storage controls

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811298640.XA CN109460261A (en) 2018-11-02 2018-11-02 A kind of method and device adjusting disk sequence between a variety of storage controls

Publications (1)

Publication Number Publication Date
CN109460261A true CN109460261A (en) 2019-03-12

Family

ID=65609271

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811298640.XA Pending CN109460261A (en) 2018-11-02 2018-11-02 A kind of method and device adjusting disk sequence between a variety of storage controls

Country Status (1)

Country Link
CN (1) CN109460261A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103744708A (en) * 2014-01-23 2014-04-23 浪潮电子信息产业股份有限公司 Method of fixing disk device names in Linux operating system
CN104461402A (en) * 2014-12-29 2015-03-25 浪潮电子信息产业股份有限公司 Method for adjusting disk sequence among multiple controllers under linux system
US9256475B1 (en) * 2011-08-10 2016-02-09 Nutanix, Inc. Method and system for handling ownership transfer in a virtualization environment
CN106020914A (en) * 2016-06-07 2016-10-12 浪潮电子信息产业股份有限公司 Method for regulating multi-controller drive loading sequence under RedHat7
CN107807791A (en) * 2017-10-20 2018-03-16 郑州云海信息技术有限公司 A kind of hard disc of computer sequence binding method and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9256475B1 (en) * 2011-08-10 2016-02-09 Nutanix, Inc. Method and system for handling ownership transfer in a virtualization environment
CN103744708A (en) * 2014-01-23 2014-04-23 浪潮电子信息产业股份有限公司 Method of fixing disk device names in Linux operating system
CN104461402A (en) * 2014-12-29 2015-03-25 浪潮电子信息产业股份有限公司 Method for adjusting disk sequence among multiple controllers under linux system
CN106020914A (en) * 2016-06-07 2016-10-12 浪潮电子信息产业股份有限公司 Method for regulating multi-controller drive loading sequence under RedHat7
CN107807791A (en) * 2017-10-20 2018-03-16 郑州云海信息技术有限公司 A kind of hard disc of computer sequence binding method and system

Similar Documents

Publication Publication Date Title
CN102103629B (en) Online data migration method
US7991758B2 (en) System and method for performing a search operation within a sequential access data storage subsystem
US8024603B2 (en) Data migration satisfying migration-destination requirements
US8161006B2 (en) Database management method, database management apparatus, and database management program
CN104239166A (en) Method for realizing file backup for running virtual machine
US20130246364A1 (en) Removable storage device with transactional operation support and system including same
CN102541470B (en) Data object processing method and device
US20080016390A1 (en) Apparatus, system, and method for concurrent storage pool migration and backup
CN101770410A (en) System restore method, virtual machine managing device and system based on client operating system
US20140215127A1 (en) Apparatus, system, and method for adaptive intent logging
CN103678036B (en) A kind of backup method found based on virtual machine operation information data
CN101945131A (en) Storage virtualization-based data migration method
CN103777985A (en) Method and device for installing several multiple operating systems on one partition of storage medium
CN101114228A (en) Method for rapid installing operating system and system thereof
CN101673230A (en) Method for automatically backing up and recovering configuration data of embedded system by using a U-disk
CN103207817B (en) Automatic reduction method for virtual machine
CN105183521A (en) Method for installing computing operation system and USB port storage device
CN111163149B (en) Intelligent contract platform method based on block chain
US8627126B2 (en) Optimized power savings in a storage virtualization system
CN109460261A (en) A kind of method and device adjusting disk sequence between a variety of storage controls
CN108647034B (en) Method for installing multiple operating systems on single mobile hard disk
CN102135897A (en) Convenient server maintenance tool integration manufacturing method
CN106020914A (en) Method for regulating multi-controller drive loading sequence under RedHat7
CN101615127B (en) Automatic installing method of operating system based on strategy
CN106293535B (en) NAS performance optimization method and device

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

Application publication date: 20190312