CN107402789A - A kind of server cluster automatic batch penetrates the method that RAID card refreshes hard disk FW - Google Patents

A kind of server cluster automatic batch penetrates the method that RAID card refreshes hard disk FW Download PDF

Info

Publication number
CN107402789A
CN107402789A CN201710642082.3A CN201710642082A CN107402789A CN 107402789 A CN107402789 A CN 107402789A CN 201710642082 A CN201710642082 A CN 201710642082A CN 107402789 A CN107402789 A CN 107402789A
Authority
CN
China
Prior art keywords
hard disk
server
raid card
whole
penetrates
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
CN201710642082.3A
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 CN201710642082.3A priority Critical patent/CN107402789A/en
Publication of CN107402789A publication Critical patent/CN107402789A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention provides a kind of method that server cluster automatic batch penetrates RAID card refreshing hard disk FW, belong to generic server technical field.Methods described comprises the steps:A bash script is compiled under a linux operating system, and using a server as control node, remote operation is carried out to whole nodes on rack;Hard disk FW files and RAID card management tool arcconf are copied in whole servers to be measured;Whole server nodes are performed with automatic compiling and refreshes hard disk FW scripts, carries out hard disk FW refreshing and upgrading operations under RAID card;Automatically check the hard disk FW of whole server nodes and generate feedback document, updating result is checked.The present invention solves existing for existing server that hard disk firmware upgrading refresh rate is slow, efficiency is low, and repeats the problem of refreshing causes error rate high, improves operating efficiency.

Description

A kind of server cluster automatic batch penetrates the method that RAID card refreshes hard disk FW
Technical field
The present invention relates to generic server technical field, relates in particular to a kind of server cluster automatic batch and penetrates The method that RAID card refreshes hard disk FW.
Background technology
With the continuous development of current measuring technology, various testing tools, test software and method of testing are applied to take In the test of business device product and various parts.Generally have in the generic server rack of existing large-scale computer room 20 to 80 it is mutually similar The server of type, test and regular maintenance during, it is necessary to the hard disks of these servers is carried out firmware (FirmWare, FW upgrading) refreshes.Under normal circumstances, one hard disk FW of refreshing and upgrading is operated, it is necessary to carry out single-deck refreshing using SAS cards Amount is big and the consuming time is relatively more, if refreshed one by one to each server, needs the longer time, and a large amount of In the case of repeating, easily there are some mistakes being difficult to avoid that.
Based on above mentioned problem, the method for refreshing in text can be used, under linux system rapidly and efficiently to whole cabinet Whole servers penetrate RAID card and carry out hard disk FW and refresh operation, because refresh command and compiling content have been incorporated into script In, avoid some mistakes occurred in repeatable operation process.
The content of the invention
The present invention provides a kind of server cluster automatic batch and penetrates the method that RAID card refreshes hard disk FW, solves existing clothes Being engaged in, hard disk firmware upgrading refresh rate existing for device is slow, efficiency is low, and repeats the problem of refreshing causes error rate high.
In order to solve the above technical problems, the present invention adopts the following technical scheme that:
A kind of server cluster automatic batch penetrates the method that RAID card refreshes hard disk FW, and methods described includes following steps Suddenly:
A bash script is compiled under a linux operating system, using a server as control node, on rack Whole nodes carry out remote operation;
Hard disk FW files and RAID card management tool arcconf are copied in whole servers to be measured;
Whole server nodes are performed with automatic compiling and refreshes hard disk FW scripts, carries out hard disk FW refreshing and upgradings under RAID card Operation;
Automatically check the hard disk FW of whole server nodes and generate feedback document, updating result is checked.
Further, before above-mentioned refresh operation is performed, in addition to following pre action:Whole in rack is serviced Device sequentially sets nodename according to physical location and distributes IP address from top to bottom, and configured SSH after being assigned steps on automatically Record, then light the BMC identification LEDs of all generic servers successively by order, it is ensured that each meshed network is unobstructed.
Further, after the completion of refreshing to server hard disc FW, it is not necessary to restart node, directly utilize order line Hard disk FW version informations under each node R AID cards are read, are then unified in deposit feedback document, to check to refresh whether succeed.
Further, in the feedback document, server number and clothes corresponding with current server number have been sequentially written in Business device information.Because server number with server info is to be sequentially written in, so can intuitively be checked very much in document is fed back The hard disk FW versions of Servers-all, refresh whether operation succeeds with checking.
The beneficial effects of the present invention are:
A kind of server cluster automatic batch provided by the invention penetrates the method that RAID card refreshes hard disk FW, in Linux Under system, can quickly, efficiently, accurate, automation whole servers to whole cabinet penetrate RAID card and carry out hard disk FW Refresh operation, greatly save working hour.Because the refresh command and compiling content of this method have been previously written in script, It also avoid in manual refreshing, due to instruction input mistake caused by a large amount of repeat.This method is not only in test job In improve operating efficiency, it is convenient that the maintenance work to the server later stage also provides, simple to operate, practical.
Brief description of the drawings
Fig. 1 is the operational flowchart of the embodiment of the present invention;
Fig. 2 is the server room layout of the embodiment of the present invention.
Embodiment
In order to make the purpose , technical scheme and advantage of the present invention be clearer, it is right below in conjunction with drawings and Examples The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and It is not used in the restriction present invention.
A kind of server cluster automatic batch of the present invention penetrates the method that RAID card refreshes hard disk FW, comprises the steps:
A bash script is compiled under a linux operating system, using a server as control node, on rack Whole nodes carry out remote operation;
Hard disk FW files and RAID card management tool arcconf are copied in whole servers to be measured;
Whole server nodes are performed with automatic compiling and refreshes hard disk FW scripts, carries out hard disk FW refreshing and upgradings under RAID card Operation;
Automatically check the hard disk FW of whole server nodes and generate feedback document, updating result is checked.
Before above-mentioned refresh operation is performed, in addition to following pre action:By whole servers in rack according to thing Reason position sequentially sets nodename and distributes IP address from top to bottom, and SSH automated log ons, Ran Houtong have been configured after being assigned Cross the BMC identification LEDs that all generic servers are lighted in order successively, it is ensured that each meshed network is unobstructed.
After the completion of refreshing to server hard disc FW, it is not necessary to restart node, directly utilize order line ./arcconf Getconfig 1 | grep-i firmware read the lower hard disk FW version informations of each node R AID cards, and it is anti-then to unify deposit Present in document check.txt, to check to refresh whether succeed.In the feedback document check.txt, service has been sequentially written in Device number and server info corresponding with current server number.
As shown in Figure 1 and Figure 2, by taking 40 generic servers in a rack as an example, the method for the present embodiment is carried out progressively Explanation.
Preposition work is carried out first, and whole servers in rack are sequentially set into node from top to bottom according to physical location Title simultaneously distributes IP address, such as cu1/192.168.1.1;cu2/192.168.1.2;cu2/192.168.1.3;……; Cu40/192.168.1.40, ssh is configured after being assigned and has logged in automatically.
Then order is passed through:
for i in{1..40}
do ssh cu$i ipmitool chassis identify
The BMC identification LEDs of all generic servers are lighted successively, and whether unobstructed, after the completion of detection if detecting each meshed network It can carry out carrying out BIOS refreshing operations.
Followed by method script, the method bulk circulation of this implementation performs four parts, Part I, and realization logs in To each server, and backstage is transferred to after performing specified order;Part II, by hard disk FW files and RAID card management tool Arcconf copies into server to be measured;Part III, perform automatic compile and refresh script, hard disk FW, which refreshes, under progress RAID card rises Level operation;Part IV, server hard disc FW version informations are captured, to verify whether Flushing success.
(1) the main script of Part I, realization log on to each server
#!/bin/bash
function logon()
Naming program is logon
{ssh$1$2}
Logon procedure subjects are ssh telnets to $ 1 (this part of $ 1 is defined as server ip addresses), perform (the $ 2 of $ 2 To realize the specific procedure of subsequent sections function)
for i in{1..40}
Defined parameters " i " are recycled to 40 from 1
do
Perform following operate
echo"-----------$i--------"
Display is recycled to the value of current " i "
logon 192.168.1.$i"$1"&
Perform logon programs, log on to previous cycle to the ip of server, and perform " $ 1 " (and herein $ 1 be different from above The $ 1 during program is defined, but represents $ 2 above), last " & " symbol then represents that this order is transferred to consistency operation, can be direct It is recycled in next step, if without this order, this program can then complete performed order and just may proceed to cyclic program, cause Increase in run time.
done
EP (end of program)
(2) Part II, realize and hard disk FW files and RAID card management tool arcconf are copied into server to be measured
#!/bin/bash
function scopy()
Naming program is scopy
{scp$1$2$3}
Scopy procedure subjects are telecopy scp, by $ 1 (RAID card driving file) from $ 2 (according to different kernel needs The content file of compiling, if standard kernel, it is not necessary to compiling driving, then this may skip) copy to $ 3 (destination node Under specific catalogue, $ 3 adopts the node i p) of previous cycle extremely in Part I herein
scopy afulnx rom 192.168.1.$i:/root/Drive/
Perform scopy programs, by local hard disk FW files and RAID card management tool arcconf telecopies to ought Before be recycled in the root Drive files of server
done
EP (end of program)
(3) Part III, realize and perform the automatic script for refreshing hard disk FW, carry out hard disk FW refreshing and upgradings under RAID card and make Industry.This step must combine logon programs and use, the parts of $ 2 as logon programs.
cd/root/Drive/
Enter in root Drive files
The automatic script for refreshing hard disk FW is performed, by RAID card management tool arcconf, refreshes hard disk FW.
Automatic step mainly includes following content:
The hard disk that lsscsi-g# are checked under the generic device file name and raid card of hard disk in system is suitable Sequence.
./arcconf getconfig 1# inquire about device number and the channel ID of hard disk
./arcconf inameupdate 1`device ID``channel ID`16384 hard disk FW files 3
Wherein Channel ID indicate a desire to the hard disk refreshed;Chunksize represents block size;Filename is represented Micro code title;Rescan represents refresh mode;Sata interfaces use 7 using 3, sas interfaces.
It is a script by above-mentioned thin consolidation, is used behind logon parts, you can completes to refresh operation.
(4) Part IV, crawl node hard disk FW version informations are realized, to verify whether Flushing success.
for i in{1..40}
Defined parameters " i " are recycled to 40 from 1
do echo“cu$i”>>check.txt
The title of previous cycle to server is write into check.txt documents
ssh 192.168.1.$i arcconf getconfig 1|grep–i firmware>>check.txt
Hard disk FW version informations under RAID card are captured by arcconf instruments, write check.txt
done
Complete operation.
In methods described, because server number and server info are to be sequentially written in check.txt, so It can intuitively check very much that the hard disk FW versions of Servers-all refresh whether operation succeeds to verify in check.txt.
Finally, be a script by above-mentioned four thin consolidation, you can complete refresh all operation and check refreshing whether into Work(.
The server cluster automatic batch provided by the present embodiment penetrates the method that RAID card refreshes hard disk FW, can be fast Speed efficiently penetrates RAID card progress hard disk FW refreshing operations to whole servers of whole cabinet, greatlys save operative employee When, and solve the problems, such as that instruction input mistake caused by largely being repeated during manual refreshing causes error rate high.
The foregoing is merely illustrative of the preferred embodiments of the present invention, not to limit the present invention, for the art Technical staff for, any modification, improvement and equivalent substitution for being made under the premise without departing from the principles of the invention etc., wrap Containing within the scope of the present invention.

Claims (4)

1. a kind of server cluster automatic batch penetrates the method that RAID card refreshes hard disk FW, it is characterised in that methods described bag Include following step:
A bash script is compiled under a linux operating system, using a server as control node, to complete on rack Portion's node carries out remote operation;
Hard disk FW files and RAID card management tool arcconf are copied in all servers to be measured;
Whole server nodes are performed with automatic compiling and refreshes hard disk FW scripts, hard disk FW refreshing and upgradings under RAID card is carried out and makees Industry;
Automatically check the hard disk FW of whole server nodes and generate feedback document, updating result is checked.
2. a kind of server cluster automatic batch according to claim 1 penetrates the method that RAID card refreshes hard disk FW, its It is characterised by, before above-mentioned refresh operation is performed, in addition to following pre action:By whole servers in rack according to thing Reason position sequentially sets nodename and distributes IP address from top to bottom, and SSH automated log ons, Ran Houtong have been configured after being assigned Cross the BMC identification LEDs that all generic servers are lighted in order successively, it is ensured that each meshed network is unobstructed.
3. a kind of server cluster automatic batch according to claim 1 penetrates the method that RAID card refreshes hard disk FW, its It is characterised by, after the completion of refreshing to server hard disc FW, it is not necessary to restart node, directly read using order line each The lower hard disk FW version informations of node R AID cards, then unify in deposit feedback document, to check to refresh whether succeed.
4. a kind of server cluster automatic batch according to claim 3 penetrates the method that RAID card refreshes hard disk FW, its It is characterised by, in the feedback document, has been sequentially written in server number and server info corresponding with current server number.
CN201710642082.3A 2017-07-31 2017-07-31 A kind of server cluster automatic batch penetrates the method that RAID card refreshes hard disk FW Pending CN107402789A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710642082.3A CN107402789A (en) 2017-07-31 2017-07-31 A kind of server cluster automatic batch penetrates the method that RAID card refreshes hard disk FW

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710642082.3A CN107402789A (en) 2017-07-31 2017-07-31 A kind of server cluster automatic batch penetrates the method that RAID card refreshes hard disk FW

Publications (1)

Publication Number Publication Date
CN107402789A true CN107402789A (en) 2017-11-28

Family

ID=60401778

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710642082.3A Pending CN107402789A (en) 2017-07-31 2017-07-31 A kind of server cluster automatic batch penetrates the method that RAID card refreshes hard disk FW

Country Status (1)

Country Link
CN (1) CN107402789A (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107832075A (en) * 2017-11-30 2018-03-23 郑州云海信息技术有限公司 The FW upgrade methods of multi-brand hard disk are covered under a kind of linux environment
CN107894956A (en) * 2017-12-21 2018-04-10 郑州云海信息技术有限公司 A kind of long-range BIOS promotion and demotion refresh automated testing method
CN108874423A (en) * 2018-06-20 2018-11-23 郑州云海信息技术有限公司 A kind of method that remote batch refreshes hard disk firmware
CN108985402A (en) * 2018-06-29 2018-12-11 郑州云海信息技术有限公司 A kind of RAID card information acquisition method and relevant apparatus
CN109284118A (en) * 2018-09-27 2019-01-29 郑州云海信息技术有限公司 A kind of firmware method for refreshing, system, electronic equipment and computer readable storage medium
CN109542474A (en) * 2018-10-15 2019-03-29 广东宝莱特医用科技股份有限公司 A kind of batch upgrading method of patient monitor firmware
CN110968510A (en) * 2019-11-28 2020-04-07 深圳忆联信息系统有限公司 SSD automatic online upgrading firmware test method and device and computer equipment
CN111290774A (en) * 2020-02-24 2020-06-16 深圳忆联信息系统有限公司 Method and device for upgrading solid state disk firmware in batch based on Windows system
CN111371610A (en) * 2020-02-29 2020-07-03 苏州浪潮智能科技有限公司 Network card firmware batch refreshing method, system, terminal and storage medium
CN113688293A (en) * 2021-09-07 2021-11-23 天津津航计算技术研究所 Linux operating system equipment identification information collection device based on Ethernet

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105183497A (en) * 2015-07-21 2015-12-23 浪潮电子信息产业股份有限公司 Method for automatically refreshing BIOS (basic input output system) in batches by universal server
CN105260208A (en) * 2015-10-10 2016-01-20 浪潮电子信息产业股份有限公司 Method for automatically refreshing RAID card drive in batches by server
CN105912345A (en) * 2016-05-09 2016-08-31 浪潮电子信息产业股份有限公司 Control node as well as system and method for refreshing external plugin card drives
CN105955875A (en) * 2016-05-04 2016-09-21 浪潮电子信息产业股份有限公司 Device and method for monitoring logs of RAID cards
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

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105183497A (en) * 2015-07-21 2015-12-23 浪潮电子信息产业股份有限公司 Method for automatically refreshing BIOS (basic input output system) in batches by universal server
CN105260208A (en) * 2015-10-10 2016-01-20 浪潮电子信息产业股份有限公司 Method for automatically refreshing RAID card drive in batches by server
CN105955875A (en) * 2016-05-04 2016-09-21 浪潮电子信息产业股份有限公司 Device and method for monitoring logs of RAID cards
CN105912345A (en) * 2016-05-09 2016-08-31 浪潮电子信息产业股份有限公司 Control node as well as system and method for refreshing external plugin card drives
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

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107832075A (en) * 2017-11-30 2018-03-23 郑州云海信息技术有限公司 The FW upgrade methods of multi-brand hard disk are covered under a kind of linux environment
CN107894956A (en) * 2017-12-21 2018-04-10 郑州云海信息技术有限公司 A kind of long-range BIOS promotion and demotion refresh automated testing method
CN108874423A (en) * 2018-06-20 2018-11-23 郑州云海信息技术有限公司 A kind of method that remote batch refreshes hard disk firmware
CN108985402A (en) * 2018-06-29 2018-12-11 郑州云海信息技术有限公司 A kind of RAID card information acquisition method and relevant apparatus
CN108985402B (en) * 2018-06-29 2021-10-15 郑州云海信息技术有限公司 RAID card information acquisition method and related device
CN109284118A (en) * 2018-09-27 2019-01-29 郑州云海信息技术有限公司 A kind of firmware method for refreshing, system, electronic equipment and computer readable storage medium
CN109284118B (en) * 2018-09-27 2021-08-31 郑州云海信息技术有限公司 Firmware refreshing method and system, electronic equipment and computer readable storage medium
CN109542474A (en) * 2018-10-15 2019-03-29 广东宝莱特医用科技股份有限公司 A kind of batch upgrading method of patient monitor firmware
CN110968510A (en) * 2019-11-28 2020-04-07 深圳忆联信息系统有限公司 SSD automatic online upgrading firmware test method and device and computer equipment
CN111290774A (en) * 2020-02-24 2020-06-16 深圳忆联信息系统有限公司 Method and device for upgrading solid state disk firmware in batch based on Windows system
CN111371610A (en) * 2020-02-29 2020-07-03 苏州浪潮智能科技有限公司 Network card firmware batch refreshing method, system, terminal and storage medium
CN113688293A (en) * 2021-09-07 2021-11-23 天津津航计算技术研究所 Linux operating system equipment identification information collection device based on Ethernet

Similar Documents

Publication Publication Date Title
CN107402789A (en) A kind of server cluster automatic batch penetrates the method that RAID card refreshes hard disk FW
US9064056B2 (en) Completing functional testing
US9740506B2 (en) Automating interactions with software user interfaces
US7895470B2 (en) Collecting and representing knowledge
US7752501B2 (en) Dynamic generation and implementation of globalization verification testing for user interface controls
WO2018120721A1 (en) Method and system for testing user interface, electronic device, and computer readable storage medium
CN106445591A (en) Automatic and batched RAID card FW refreshing method of servers
US20080086718A1 (en) Method and Apparatus for Identifying Authors of Changes Between Multiple Versions of a File
US8495008B2 (en) Application-aware recording and replay
CN105260208A (en) Method for automatically refreshing RAID card drive in batches by server
US20120254662A1 (en) Automated test system and automated test method
WO2012119267A1 (en) Creating a test case
CN111274154A (en) Automatic testing method, device, equipment and storage medium
CN113515297B (en) Version updating method and device, electronic equipment and storage medium
US10713237B2 (en) Automatically correcting invalid scripts in web applications
US20050229161A1 (en) Generic user interface testing framework with load-time libraries
CN115658529A (en) Automatic testing method for user page and related equipment
CN116483730A (en) Service system automatic test method based on domestic software and hardware and open source test tool
Dumas et al. Robotic Process Mining.
CN112256365B (en) Method and terminal for automatically managing multi-language versions
CN115705250A (en) Monitoring stack usage to optimize programs
CN114064510A (en) Function testing method and device, electronic equipment and storage medium
CN111008113B (en) SAS-Expander test method and tool
CN111767222A (en) Data model verification method and device, electronic equipment and storage medium
CN112035300A (en) Server BMC automatic test system, method, storage medium and electronic 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: 20171128