CN106126223A - 基于K‑UX救援模式自动组建Raid卡阵列的方法 - Google Patents

基于K‑UX救援模式自动组建Raid卡阵列的方法 Download PDF

Info

Publication number
CN106126223A
CN106126223A CN201610454480.8A CN201610454480A CN106126223A CN 106126223 A CN106126223 A CN 106126223A CN 201610454480 A CN201610454480 A CN 201610454480A CN 106126223 A CN106126223 A CN 106126223A
Authority
CN
China
Prior art keywords
raid
rescue mode
array
disk
raid card
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
CN201610454480.8A
Other languages
English (en)
Inventor
崔夕军
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Inspur Electronic Information Industry Co Ltd
Original Assignee
Inspur Electronic Information Industry Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Inspur Electronic Information Industry Co Ltd filed Critical Inspur Electronic Information Industry Co Ltd
Priority to CN201610454480.8A priority Critical patent/CN106126223A/zh
Publication of CN106126223A publication Critical patent/CN106126223A/zh
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/31Programming languages or programming paradigms

Landscapes

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

Abstract

本发明公开基于K‑UX救援模式自动组建Raid卡阵列的方法,涉及计算机服务器技术领域,在安腾平台上基于K‑UX救援模式下,通过提取raid卡的配置工具,判断磁盘中raid信息并删除磁盘中的raid信息,重新组建所需要的raid阵列。本发明节省了搭建系统环境的时间,大大简化了操作流程,有效降低了人力资源消耗;能够自动化测试,更合理的分配测试资源,极大提高了测试效率和测试准确性。

Description

基于K-UX救援模式自动组建Raid卡阵列的方法
技术领域
本发明涉及计算机服务器技术领域,具体的说是基于K-UX救援模式自动组建Raid卡阵列的方法。
背景技术
随着IT行业的快速发展,产品更新周期的缩短,如何更有效率的完成产品的可靠性以及压力等的测试,已经成为缩短新产品上市周期的关键。测试作为产品研发周期中重要的一环,提高测试的效率与准确性,能够有效的缩短产品周期,并节省大量的人力成本。而目前IT行业中,产品的可靠性和压力等测试方面操作比较繁琐,严重限制测试效率,并且测试效果也不太理想。
发明内容
本发明针对目前技术发展的需求和不足之处,提供基于K-UX救援模式自动组建Raid卡阵列的方法。
本发明所述基于K-UX救援模式自动组建Raid卡阵列的方法,解决上述技术问题采用的技术方案如下:所述基于K-UX救援模式自动组建Raid卡阵列的方法,在安腾平台上基于K-UX救援模式下,通过提取raid卡的配置工具,判断磁盘中raid信息并删除磁盘中的raid信息,重新组建所需要的raid阵列;从而自动的完成安装操作系统前的准备工作,提高测试的工作效率。
优选的,本发明通过shell脚本自动化地组建raid卡阵列,其主要步骤如下:
1)制作K-UX操作系统启动盘;
2)开机通过UEFI进入K-UX救援模式;
3)执行shell脚本程序;
4)提取raid卡配置工具;
5)显示磁盘数目和磁盘状态;
6)删除外部磁盘信息;
7)组建raid阵列;
8)reboot。
优选的,检查磁盘装态是否为UGood,若为UGood则组建raid阵列,否则输出#手动删除raid信息。
本发明所述基于K-UX救援模式自动组建Raid卡阵列的方法与现有技术相比具有的有益效果是:本发明借用shell脚本,自动完成K1救援模式下raid阵列的组建工作,从而节省了搭建系统环境的时间,大大简化了操作流程,避免测试过程中大量的重复性工作,有效降低了人力资源消耗;能够自动化测试,更合理的分配测试资源,节省了大量测试的时间,极大提高了测试效率和测试准确性。
具体实施方式
为使本发明的目的、技术方案和优点更加清楚明白,以下结合具体实施例,对本发明所述基于K-UX救援模式自动组建Raid卡阵列的方法进一步详细说明。
本发明提出基于K-UX救援模式自动组建Raid卡阵列的方法,在安腾平台上基于K-UX救援模式下,自动组建raid阵列,从而实现提高测试效率。本发明所述方法,在K-UX救援模式下,通过提取raid卡的配置工具,判断磁盘中raid信息并删除磁盘中的raid信息,重新组建所需要的raid阵列;从而自动的完成安装操作系统前的准备工作,提高测试的工作效率。
实施例:
本实施例所述基于K-UX救援模式自动组建Raid卡阵列的方法,在安腾平台上基于K-UX救援模式,通过shell脚本自动化地组建raid卡阵列,其主要步骤如下:
1)制作K-UX操作系统启动盘;
2)开机通过UEFI进入K-UX救援模式;
3)执行shell脚本程序;
4)提取raid卡配置工具;
5)显示磁盘数目和磁盘状态;
6)删除外部磁盘信息;
7)组建raid阵列;
8)reboot。
所述提取raid卡配置工具这一步骤,具体实施过程如下:
mkdir usb iso tool
mount /dev/sdc4 /mnt/usb
mount /mnt/usb/K-UX_xxxx_ia64_xxx.iso /mnt/iso -o loop
cp /mnt/iso/Server/lsi_raid-* /mnt/tool
cd /mnt/tool
rpm2cpio lsi_raid-6.4-1.12.24.ia64.rpm |cpio -ivd
cd /mnt/tool/opt/lsi_raid
mkdir /mnt/tool/opt/lsi_raid/text
tar xvf /mnt/tool/opt/lsi_raid/MR_SAS_StorCLI_xxx/storclIa64.tar
cp /mnt/tool/opt/lsi_raid/MR_SAS_StorCLI_xxx/storclIa64 /mnt/tool/opt/lsi_raid/text/。
所述显示磁盘数目和磁盘状态这一步骤,具体实施过程如下:
work_dir=/mnt/tool/opt/lsi_raid/text/
cd work_dir
n=work_dir/storclIa64 /c0 show all |grep "Physical Drives" |awk '{print$4}'
echo $n
work_dir/storclIa64 /c0 show all |grep "252:[0-n-1]" |tee state.txt。
所述删除外部磁盘信息,以及组建raid阵列等步骤,具体实施过程如下:
for(i=0;i<=n-1;i++)
do
if [cat state.txt | awk 'nr=i{print $3}'==Ubad];then
/work_dir/storcliIa64 /c0/e252/s$i set good
fi
/work_dir/storcliIa64 /c0/vd del force
done
#再次检查磁盘装态是否为UGood,若为UGood则组建raid阵列,否则输出#手动删除raid信息
work_dir/storclIa64 /c0 show all |grep "Physical Drives" |grep "252:[0-n-1]" |tee state1.txt
m=0
for(j=0;j<=n-1;j++)
do
if [cat state1.txt | awk 'nr=i{print $3}'==ugood];then
m++
done
if [m=n-1];then
echo "hdd states is Ugood"
read -p "Please input your numbers:”num #num的格式为0,1,2,…num-1等列出的数字
read -p "Please input your raid modes:"raid_m
/work_dir/storcliIa64 /c0 add vd r$raid_m size=all drives=252:num
/work_dir/storcliIa64 /c0/v1 start init
reboot
else
echo "raid information can't delete ,please remove them manually "
fi.。
上述具体实施方式仅是本发明的具体个案,本发明的专利保护范围包括但不限于上述具体实施方式,任何符合本发明的权利要求书的且任何所属技术领域的普通技术人员对其所做的适当变化或替换,皆应落入本发明的专利保护范围。

Claims (3)

1.基于K-UX救援模式自动组建Raid卡阵列的方法,其特征在于, 在安腾平台上基于K-UX救援模式下,通过提取raid卡的配置工具,判断磁盘中raid信息并删除磁盘中的raid信息,重新组建所需要的raid阵列。
2.根据权利要求1所述基于K-UX救援模式自动组建Raid卡阵列的方法,其特征在于,通过shell脚本自动化地组建raid卡阵列,其主要步骤如下:
1)制作K-UX操作系统启动盘;
2)开机通过UEFI进入K-UX救援模式;
3)执行shell脚本程序;
4)提取raid卡配置工具;
5)显示磁盘数目和磁盘状态;
6)删除外部磁盘信息;
7)组建raid阵列;
8)reboot。
3.根据权利要求2所述基于K-UX救援模式自动组建Raid卡阵列的方法,其特征在于,检查磁盘装态是否为UGood,若为UGood则组建raid阵列,否则输出#手动删除raid信息。
CN201610454480.8A 2016-06-22 2016-06-22 基于K‑UX救援模式自动组建Raid卡阵列的方法 Pending CN106126223A (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610454480.8A CN106126223A (zh) 2016-06-22 2016-06-22 基于K‑UX救援模式自动组建Raid卡阵列的方法

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610454480.8A CN106126223A (zh) 2016-06-22 2016-06-22 基于K‑UX救援模式自动组建Raid卡阵列的方法

Publications (1)

Publication Number Publication Date
CN106126223A true CN106126223A (zh) 2016-11-16

Family

ID=57471310

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610454480.8A Pending CN106126223A (zh) 2016-06-22 2016-06-22 基于K‑UX救援模式自动组建Raid卡阵列的方法

Country Status (1)

Country Link
CN (1) CN106126223A (zh)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108563402A (zh) * 2018-04-02 2018-09-21 郑州云海信息技术有限公司 一种自动配置raid卡参数的方法和系统
CN109032535A (zh) * 2018-08-30 2018-12-18 郑州云海信息技术有限公司 一种raid组建方法及相关装置
CN111475107A (zh) * 2020-03-13 2020-07-31 苏州浪潮智能科技有限公司 一种硬盘格式化的方法、装置及存储介质

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1808365A (zh) * 2005-01-17 2006-07-26 英业达股份有限公司 磁盘冗余阵列设备的自动重建方法
WO2013008058A1 (en) * 2011-07-08 2013-01-17 Daini Matteo Portable usb pocket device for internet connection, with its own live operating system for accessing user's virtual desktop through the internet
CN103746833A (zh) * 2013-12-25 2014-04-23 新浪网技术(中国)有限公司 基于pxe的raid自动配置方法和系统
CN105183516A (zh) * 2015-09-09 2015-12-23 浪潮电子信息产业股份有限公司 一种自动安装raid卡fw及kux操作系统的方法
CN105656970A (zh) * 2014-11-24 2016-06-08 中国移动通信集团公司 一种raid卡配置方法、系统及相关装置

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1808365A (zh) * 2005-01-17 2006-07-26 英业达股份有限公司 磁盘冗余阵列设备的自动重建方法
WO2013008058A1 (en) * 2011-07-08 2013-01-17 Daini Matteo Portable usb pocket device for internet connection, with its own live operating system for accessing user's virtual desktop through the internet
CN103746833A (zh) * 2013-12-25 2014-04-23 新浪网技术(中国)有限公司 基于pxe的raid自动配置方法和系统
CN105656970A (zh) * 2014-11-24 2016-06-08 中国移动通信集团公司 一种raid卡配置方法、系统及相关装置
CN105183516A (zh) * 2015-09-09 2015-12-23 浪潮电子信息产业股份有限公司 一种自动安装raid卡fw及kux操作系统的方法

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108563402A (zh) * 2018-04-02 2018-09-21 郑州云海信息技术有限公司 一种自动配置raid卡参数的方法和系统
CN109032535A (zh) * 2018-08-30 2018-12-18 郑州云海信息技术有限公司 一种raid组建方法及相关装置
CN111475107A (zh) * 2020-03-13 2020-07-31 苏州浪潮智能科技有限公司 一种硬盘格式化的方法、装置及存储介质

Similar Documents

Publication Publication Date Title
TWI684859B (zh) 遠端系統復原之方法
TWI465901B (zh) Method and system for verification of computerized systems for cloud testing and remote monitoring of integrated circuit devices
US9558076B2 (en) Methods and systems of cloud-based disaster recovery
US20120297178A1 (en) Configuration mode switching system and method
US8909912B2 (en) Apparatus and method for configuring a target machine with captured operational state comprising a static machine profile and a dynamic machine state to continue operations of a source machine
CN105765534A (zh) 虚拟计算系统和方法
US20120311279A1 (en) Data recovery and backup system and process
CN106126223A (zh) 基于K‑UX救援模式自动组建Raid卡阵列的方法
CN102135893A (zh) 将操作系统集成到bios芯片及启动服务器上操作系统的方法
CN104185836A (zh) 用于在系统改变之后验证计算设备的适当操作的方法和系统
US9880858B2 (en) Systems and methods for reducing BIOS reboots
Van't Hof et al. Flux: Multi-surface computing in Android
CN104732151A (zh) 一种Linux系统下远程安全批量更新BIOS的方法
CN104111867B (zh) 一种虚拟机迁移装置及方法
US10915481B2 (en) PCIe link reset to minimize workload impact
KR20140107042A (ko) 관리 장치 및 서버 노드 관리 방법
CN105260217A (zh) 一种外部重置linux虚拟机密码的方法
CN102946380A (zh) 一种虚拟桌面一体机
CN105868132B (zh) 一种基于usb通信的数字示波器模块化功能拓展方法及系统
US11805338B2 (en) Systems and methods for enabling smart network interface card as an advanced telemetry appliance
US10616944B2 (en) Computer system and method thereof for sharing of wireless connection information between UEFI firmware and OS
CN104200164B (zh) 一种加载器Loader病毒的查杀方法、装置及终端
CN107608923B (zh) 测试的处理方法及相关产品
CN205485799U (zh) 一种可复用sas、sata信号的硬盘背板
CN104459515A (zh) 一种主板生产测试方法

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination