CN105260208A - RAID card driver automatic batch refreshing method for servers - Google Patents
RAID card driver automatic batch refreshing method for servers Download PDFInfo
- Publication number
- CN105260208A CN105260208A CN201510654615.0A CN201510654615A CN105260208A CN 105260208 A CN105260208 A CN 105260208A CN 201510654615 A CN201510654615 A CN 201510654615A CN 105260208 A CN105260208 A CN 105260208A
- Authority
- CN
- China
- Prior art keywords
- raid card
- server
- refreshing
- servers
- refresh
- 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
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The present invention discloses an RAID card driver automatic batch refreshing method for servers. The RAID card driver automatic batch refreshing method for the servers comprises the specific implementation process: firstly, using one server as a control node, and copying RAID card driving files and contents which need to be compiled onto all nodes; then executing a refreshing operation; after completing the refreshment, restarting an operating system, automatically inspecting RAID card drivers of all the nodes and generating documents so as to inspect an upgrade result; and so far, completing all the refreshing work. Compared with the prior art, the RAID card driver automatic batch refreshing method for the servers can rapidly, efficiently, accurately and automatically perform the synchronous refreshing operation on a great number of general servers on a cabinet, thereby significantly saving operation man-hours, and also avoids an instruction input error caused by a great number of repetitive operations during manual refreshment as all instructions and compiled contents are written into a script in advance. Not only is the work efficiency improved in the testing work, but also convenience is provided for the later maintenance work of the servers.
Description
Technical field
The present invention relates to field of computer technology, specifically a kind of method that drives of practical, server automatic batch refreshing RAID card.
Background technology
Along with the development of current measuring technology, various testing tool, testing software and method are more and more applied to the test of server product and various parts.
Usually there is the server of 20 to 80 identical types in the generic server rack of large-scale machine room, in the process of test and daily servicing, need to carry out firmware upgrade refreshing to the driving of the RAID card of these servers.Under normal circumstances, refreshing and upgrading RAID card drives, need first manually to compile driving according to the difference of kernel modifications, complete renewal needs about 10 to 15 minutes, if refreshed one by one at each server, then can need more than four or five hours, and when a large amount of repetitive operation, there will be the mistake that some are difficult to avoid unavoidably.
Based on this, a kind of method that server automatic batch refreshing RAID card drives now is provided, can under linux system fast and convenient whole servers efficiently to whole rack, carry out the new operation of RAID card drive brush, because refresh command and compiling content have been incorporated in script, it also avoid the mistake occurred in repetitive operation.
Summary of the invention
Technical assignment of the present invention is for above weak point, provides a kind of method that practical, server automatic batch refreshing RAID card drives.
Server automatic batch refreshing RAID card drive a method, its specific implementation process is: first using a server as Controlling vertex, RAID card drive file and need compiling copy content on whole node;
Then refresh work is performed;
Refreshed rear restarting operating systems, the RAID card of the whole node of self-verifying drives and generates document, so that check updating result;
So far refresh all work is completed.
Before above-mentioned refresh activity starts, also comprise the step of preposition work, this step is specially: the whole servers in rack are sequentially arranged nodename and distributing IP address from top to bottom according to physical location, configure ssh after being assigned automatically to log in, light the BMC identification LEDs of Servers-all node successively, whether unobstructedly detect each meshed network.The method introduced can be applied after having detected herein and carry out BIOS refreshing operation.
Described refresh work process is: carry out operated from a distance by bash script to node whole on rack, refresh driving by respective recompile kernel RAID card driver, restart node after having refreshed and complete refreshing, utilize after restarting linux command parameter read node R AID card drive version information after unified stored in document in case check refresh whether successful.
Described bash script specific operation process is:
Log in each server, and proceed to backstage after performing specified command;
RAID card is driven file and need the content of compiling to copy into server to be measured;
Perform automatic compiling and refresh script, carry out the operation of RAID card refreshing and upgrading;
Capture server RAID card after restarting server and drive version information, to verify whether Flushing success.
The method that a kind of server automatic batch refreshing RAID card of the present invention drives, has the following advantages:
The method that a kind of server automatic batch refreshing RAID card of the present invention drives, can fast, efficient, accurately, robotization synchronous refresh operation is carried out to a large amount of generic servers on rack, greatly save working hour, and because whole instruction and compiling content write script in advance, also avoid when manual refreshing, due to the instruction input error that a large amount of repetitive operation causes.Not only in test job, improve work efficiency, it is convenient, practical to also provide the maintenance work in server later stage, is easy to promote.
Accompanying drawing explanation
Accompanying drawing 1 is realization flow figure of the present invention.
Embodiment
Below in conjunction with the drawings and specific embodiments, the invention will be further described.
The invention provides a kind of method that server automatic batch refreshing RAID card drives, as shown in Figure 1, its specific implementation process is:
First using a server as Controlling vertex, RAID card drive file and need compiling copy content on whole node;
Then refresh work is performed;
Refreshed rear restarting operating systems, the RAID card of the whole node of self-verifying drives and generates document, so that check updating result;
So far refresh all work is completed.
Before above-mentioned refresh activity starts, also comprise the step of preposition work, this step is specially: the whole servers in rack are sequentially arranged nodename and distributing IP address from top to bottom according to physical location, configure ssh after being assigned automatically to log in, light the BMC identification LEDs of Servers-all node successively, whether unobstructedly detect each meshed network.The method introduced can be applied after having detected herein and carry out BIOS refreshing operation.
Described refresh work process is: carry out operated from a distance by bash script to node whole on rack, refresh driving by respective recompile kernel RAID card driver, restart node after having refreshed and complete refreshing, after utilizing linux command parameter reading node R AID card to drive version information after restarting, unification is stored in document to check that whether refreshing is successful, and linux command parameter here refers to parameter d mesggrepaac.
Described bash script specific operation process is:
Log in each server, and proceed to backstage after performing specified command;
RAID card is driven file and need the content of compiling to copy into server to be measured;
Perform automatic compiling and refresh script, carry out the operation of RAID card refreshing and upgrading;
Capture server RAID card after restarting server and drive version information, to verify whether Flushing success.
Below for 40 generic servers, this method is progressively illustrated.
One, preposition work:
Whole servers in rack are sequentially arranged nodename and distributing IP address, such as cu1/192.168.1.1 from top to bottom according to physical location; Cu2/192.168.1.2; Cu40/192.168.1.40.Configure ssh after being assigned automatically to log in.(because the core content of this method does not lie in this, so concrete configuration method skips over.)
Then by order:
foriin{1..40};
dosshcu$iipmitoolchassisidentify。
Light the BMC identification LEDs of all generic servers successively, whether unobstructedly detect each meshed network.The method introduced can be applied after having detected herein and carry out BIOS refreshing operation.
Two, method script.
The method bulk circulation introduced in the present invention performs four parts, Part I, realizes logging in each server, and proceeds to backstage after performing specified command, Part II, RAID card is driven file and need the content of compiling to copy into server to be measured, Part III, perform automatic compiling and refresh script, carry out the operation of RAID card refreshing and upgrading, Part IV, captures server RAID card and drives version information after restarting server, to verify whether Flushing success.
1) introduce the main script of Part I below, how to realize logging in each server.
#!/bin/bash;
functionlogon();
Naming program is logon;
{ssh$1$2};
Logon procedure subject is that ssh telnet is defined as server ip address to this part of $ 1($ 1), perform $ 2($ 2 for realizing the specific procedure of subsequent sections function);
foriin{1..40};
Defined parameters " i " is circulated to 40 from 1;
Do;
Perform following operation:
echo"-----------$i--------";
Display is circulated to the value of current " i ";
logon192.168.1.$i"$1"&;
Perform logon program, log in the ip to previous cycle to server, and perform " $ 1 " ($ 1 when $ 1 is different from define program above herein, but representative $ 2 above), last " & " symbol then represents that this order proceeds to consistency operation, can direct cycle to next step, important herein, if do not have this to order, this program then can complete performed order just can continue loop program, causes the increase on working time.
Done。
EOP (end of program).
2) Part II, drives file and needs the content file of compiling to copy into server to be measured by RAID card.
#!/bin/bash;
functionscopy();
Naming program is scopy;
{scp$1$2$3};
Scopy procedure subject is telecopy scp, $ 1 (RAID card driving file) and $ 2(are needed the content file compiled according to different kernel, if standard kernel, compiling is not needed to drive, then this may skip) copy $ 3 (under the concrete catalogue of destination node, $ 3 adopts previous cycle node i p extremely in Part I) to herein;
scopyafulnxrom192.168.1.$i:/root/Drive/;
Perform scopy program, the RAID card of this locality is driven file and need in the root directory Drive file of the content file telecopy of compiling to previous cycle to server;
Done。
EOP (end of program).
3) Part III, perform automatic compiling and refresh RAID card driving script, carry out RAID card and drive refreshing and upgrading operation, this step must use in conjunction with logon program, as 2 parts of logon program.
cd/root/Drive/;
Enter in root directory Drive file;
Perform automatic compiling and refresh RAID card driving script, according to different kernels, amendment compiling driver.Compile the automatic refresh work of rear execution.Driver carries RAID card refresh tool, can directly refresh after compiling.
Be a script by above-mentioned thin consolidation, use after logon part, refreshing operation can be completed.
4) Part IV, captures Node B ios release information after restarting server, to verify whether Flushing success.
First Part IV script is placed in etc/rc.d/rc.local, as start self-starting part, after reboot server, performs following operation,
foriin{1..40};
Defined parameters " i " is circulated to 40 from 1;
doecho“cu$i”>>check.txt;
By previous cycle to the title write check.txt document of server;
ssh192.168.1.$idmesg|grepaac>>check.txt;
In dmesg, capture RAID card drive version number information, write check.txt;
Done。
Complete operation.
Because server number is be sequentially written in check.txt with server info, so can check that in check.txt the RAID card of Servers-all drives version number to verify that whether refreshing operation is successful very intuitively.
Three, be a script by above-mentioned four thin consolidation, refresh all operation can be completed and check and refresh whether success.
Above-mentioned embodiment is only concrete case of the present invention; scope of patent protection of the present invention includes but not limited to above-mentioned embodiment; claims of the method that any a kind of server automatic batch refreshing RAID card according to the invention drives and the those of ordinary skill of any described technical field to its suitable change done or replacement, all should fall into scope of patent protection of the present invention.
Claims (4)
1. server automatic batch refreshing RAID card drive a method, it is characterized in that, its specific implementation process is: first using a server as Controlling vertex, RAID card drive file and need compiling copy content on whole node;
Then refresh work is performed;
Refreshed rear restarting operating systems, the RAID card of the whole node of self-verifying drives and generates document, so that check updating result;
So far refresh all work is completed.
2. the method for a kind of server automatic batch refreshing RAID card driving according to claim 1, it is characterized in that, before above-mentioned refresh activity starts, also comprise the step of preposition work, this step is specially: the whole servers in rack are sequentially arranged nodename and distributing IP address from top to bottom according to physical location, configure ssh after being assigned automatically to log in, light the BMC identification LEDs of Servers-all node successively, whether unobstructedly detect each meshed network; The method introduced can be applied after having detected herein and carry out BIOS refreshing operation.
3. the method for a kind of server automatic batch refreshing RAID card driving according to claim 1, it is characterized in that, described refresh work process is: carry out operated from a distance by bash script to node whole on rack, refresh driving by respective recompile kernel RAID card driver, restart node after having refreshed and complete refreshing, utilize after restarting linux command parameter read node R AID card drive version information after unified stored in document in case check refresh whether successful.
4. the method for a kind of server automatic batch refreshing RAID card driving according to claim 3, it is characterized in that, described bash script specific operation process is:
Log in each server, and proceed to backstage after performing specified command;
RAID card is driven file and need the content of compiling to copy into server to be measured;
Perform automatic compiling and refresh script, carry out the operation of RAID card refreshing and upgrading;
Capture server RAID card after restarting server and drive version information, to verify whether Flushing success.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510654615.0A CN105260208A (en) | 2015-10-10 | 2015-10-10 | RAID card driver automatic batch refreshing method for servers |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510654615.0A CN105260208A (en) | 2015-10-10 | 2015-10-10 | RAID card driver automatic batch refreshing method for servers |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105260208A true CN105260208A (en) | 2016-01-20 |
Family
ID=55099911
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510654615.0A Pending CN105260208A (en) | 2015-10-10 | 2015-10-10 | RAID card driver automatic batch refreshing method for servers |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105260208A (en) |
Cited By (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105912345A (en) * | 2016-05-09 | 2016-08-31 | 浪潮电子信息产业股份有限公司 | Control node as well as system and method for refreshing external plugin card drives |
CN106201583A (en) * | 2016-06-29 | 2016-12-07 | 浪潮电子信息产业股份有限公司 | A kind of for not restarting the method that system realizes the upgrading of LSI RAID card FW under linux system |
CN106293850A (en) * | 2016-08-19 | 2017-01-04 | 浪潮电子信息产业股份有限公司 | A kind of method realizing refreshing PMC8068RAID card FW under system |
CN106445767A (en) * | 2016-10-11 | 2017-02-22 | 郑州云海信息技术有限公司 | Method for setting IP and time of RAID type IO in memory |
CN106445591A (en) * | 2016-09-19 | 2017-02-22 | 郑州云海信息技术有限公司 | Automatic and batched RAID card FW refreshing method of servers |
CN106681775A (en) * | 2017-01-03 | 2017-05-17 | 郑州云海信息技术有限公司 | Method for achieving online batch upgrading of hard disk firmware through RAID card under Linux system |
CN107402789A (en) * | 2017-07-31 | 2017-11-28 | 郑州云海信息技术有限公司 | A kind of server cluster automatic batch penetrates the method that RAID card refreshes hard disk FW |
CN107491338A (en) * | 2017-09-29 | 2017-12-19 | 郑州云海信息技术有限公司 | A kind of whole machine cabinet batch automatic configuration RAID card level method for distinguishing |
CN107608695A (en) * | 2017-09-21 | 2018-01-19 | 曙光信息产业(北京)有限公司 | Hard disk firmware upgrade method, device and server |
CN107766072A (en) * | 2017-11-28 | 2018-03-06 | 郑州云海信息技术有限公司 | Video card refreshes BIOS method under a kind of linux system |
CN108718255A (en) * | 2018-06-11 | 2018-10-30 | 郑州云海信息技术有限公司 | A kind of method and system of quick reading service device system asset information |
CN109542476A (en) * | 2018-11-01 | 2019-03-29 | 郑州云海信息技术有限公司 | A kind of automatic identification HDD type and the method, system and device for refreshing hard disk firmware |
CN109558155A (en) * | 2018-12-04 | 2019-04-02 | 郑州云海信息技术有限公司 | A kind of firmware of NVRAM card and the upgrade method and relevant apparatus of driving |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101604246A (en) * | 2009-07-16 | 2009-12-16 | 浪潮电子信息产业股份有限公司 | A kind of automatic batch refreshing method of general mainboard bios |
US20100100720A1 (en) * | 2008-10-20 | 2010-04-22 | Asustek Computer Inc. | Computer system having dual bios program protecting function and control method thereof |
CN104461611A (en) * | 2014-11-05 | 2015-03-25 | 浪潮电子信息产业股份有限公司 | Method for refreshing node BIOSes of RACK cabinet in batches |
-
2015
- 2015-10-10 CN CN201510654615.0A patent/CN105260208A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20100100720A1 (en) * | 2008-10-20 | 2010-04-22 | Asustek Computer Inc. | Computer system having dual bios program protecting function and control method thereof |
CN101604246A (en) * | 2009-07-16 | 2009-12-16 | 浪潮电子信息产业股份有限公司 | A kind of automatic batch refreshing method of general mainboard bios |
CN104461611A (en) * | 2014-11-05 | 2015-03-25 | 浪潮电子信息产业股份有限公司 | Method for refreshing node BIOSes of RACK cabinet in batches |
Cited By (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105912345A (en) * | 2016-05-09 | 2016-08-31 | 浪潮电子信息产业股份有限公司 | Control node as well as system and method for refreshing external plugin card drives |
CN106201583A (en) * | 2016-06-29 | 2016-12-07 | 浪潮电子信息产业股份有限公司 | A kind of for not restarting the method that system realizes the upgrading of LSI RAID card FW under linux system |
CN106293850A (en) * | 2016-08-19 | 2017-01-04 | 浪潮电子信息产业股份有限公司 | A kind of method realizing refreshing PMC8068RAID card FW under system |
CN106445591A (en) * | 2016-09-19 | 2017-02-22 | 郑州云海信息技术有限公司 | Automatic and batched RAID card FW refreshing method of servers |
CN106445767A (en) * | 2016-10-11 | 2017-02-22 | 郑州云海信息技术有限公司 | Method for setting IP and time of RAID type IO in memory |
CN106681775A (en) * | 2017-01-03 | 2017-05-17 | 郑州云海信息技术有限公司 | Method for achieving online batch upgrading of hard disk firmware through RAID card under Linux system |
CN107402789A (en) * | 2017-07-31 | 2017-11-28 | 郑州云海信息技术有限公司 | A kind of server cluster automatic batch penetrates the method that RAID card refreshes hard disk FW |
CN107608695A (en) * | 2017-09-21 | 2018-01-19 | 曙光信息产业(北京)有限公司 | Hard disk firmware upgrade method, device and server |
CN107608695B (en) * | 2017-09-21 | 2020-08-28 | 曙光信息产业(北京)有限公司 | Hard disk firmware upgrading method and device and server |
CN107491338A (en) * | 2017-09-29 | 2017-12-19 | 郑州云海信息技术有限公司 | A kind of whole machine cabinet batch automatic configuration RAID card level method for distinguishing |
CN107766072A (en) * | 2017-11-28 | 2018-03-06 | 郑州云海信息技术有限公司 | Video card refreshes BIOS method under a kind of linux system |
CN108718255A (en) * | 2018-06-11 | 2018-10-30 | 郑州云海信息技术有限公司 | A kind of method and system of quick reading service device system asset information |
CN109542476A (en) * | 2018-11-01 | 2019-03-29 | 郑州云海信息技术有限公司 | A kind of automatic identification HDD type and the method, system and device for refreshing hard disk firmware |
CN109558155A (en) * | 2018-12-04 | 2019-04-02 | 郑州云海信息技术有限公司 | A kind of firmware of NVRAM card and the upgrade method and relevant apparatus of driving |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105260208A (en) | RAID card driver automatic batch refreshing method for servers | |
CN104461611A (en) | Method for refreshing node BIOSes of RACK cabinet in batches | |
CN105183497A (en) | Method for automatically refreshing basic input/output systems (BIOSs) in batches by universal server | |
CN106445591A (en) | Automatic and batched RAID card FW refreshing method of servers | |
US9747192B2 (en) | Automated operating system installation on multiple drives | |
CN107402789A (en) | A kind of server cluster automatic batch penetrates the method that RAID card refreshes hard disk FW | |
CN106681775A (en) | Method for achieving online batch upgrading of hard disk firmware through RAID card under Linux system | |
US9569204B2 (en) | End-to-end continuous integration and verification of software | |
CN106775877A (en) | A kind of firmware method for refreshing and a kind of server | |
US9965288B2 (en) | Preconfiguring hardware and speeding up server discovery prior to bios boot | |
GB2508643A (en) | Method for Performing a Regression Test after Modifying Source Code File | |
CN105260274A (en) | Linux-based hard disk random hot plug stability detection method | |
CN112068852B (en) | Method, system, equipment and medium for installing open-source software based on domestic server | |
CN103150188A (en) | Quick initialization method for x86 compatible display card of non-x86 instruction set computer | |
CN109189430A (en) | A kind of power supply firmware upgrade method, device, equipment and storage medium | |
CN108923997B (en) | Cloud service node automatic testing method and device based on python | |
CN104503772B (en) | The method and apparatus that operating system installation based on virtual machine, test environment are built | |
CN108694118A (en) | A kind of application testing method and device | |
US20160110281A1 (en) | System and method for debugging firmware/software by generating trace data | |
CN107391195A (en) | A kind of method that SSD FW upgradings are carried out under linux | |
CN105760191A (en) | Embedded system equipment programming mass production method | |
US20050229161A1 (en) | Generic user interface testing framework with load-time libraries | |
CN111831345B (en) | Management method and device of server hard disk backboard, storage medium and equipment | |
CN106681783A (en) | Detection method and system for SVN code | |
CN104461402A (en) | Method for adjusting disk sequence among multiple controllers under linux system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20160120 |