CN103164168A - System and method for adjusting redundant array of independent disk card connected with serial attached small computer system interface (SAS) expander - Google Patents
System and method for adjusting redundant array of independent disk card connected with serial attached small computer system interface (SAS) expander Download PDFInfo
- Publication number
- CN103164168A CN103164168A CN 201110424470 CN201110424470A CN103164168A CN 103164168 A CN103164168 A CN 103164168A CN 201110424470 CN201110424470 CN 201110424470 CN 201110424470 A CN201110424470 A CN 201110424470A CN 103164168 A CN103164168 A CN 103164168A
- Authority
- CN
- China
- Prior art keywords
- raid
- sas expander
- card
- raid card
- information
- 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
Images
Landscapes
- Debugging And Monitoring (AREA)
Abstract
一种调整SAS扩展器连接磁盘阵列卡的系统及方法,该方法包括将磁盘阵列RAID卡分为多个种类,并根据SAS扩展器的配置参数为各种类的RAID卡创建对应的调整信息;当有RAID卡新连接SAS扩展器时,读取该RAID卡的信息;判断该RAID卡与SAS扩展器是否匹配;当不匹配时,根据该RAID卡的信息所对应的种类,读取其所对应的调整信息,并将该调整信息与RAID卡的信息写入一个新的固件中;将该新的固件存储到SAS扩展器的闪存芯片中,更新该SAS扩展器中的固件,使得该RAID卡与SAS扩展器匹配。通过本发明能够随意地变更RAID卡与SAS扩展器连接。
A system and method for adjusting a SAS expander connected to a disk array card, the method comprising dividing the disk array RAID card into multiple types, and creating corresponding adjustment information for each type of RAID card according to the configuration parameters of the SAS expander; When a RAID card is newly connected to the SAS expander, read the information of the RAID card; judge whether the RAID card matches the SAS expander; corresponding adjustment information, and write the adjustment information and the information of the RAID card in a new firmware; store the new firmware in the flash memory chip of the SAS expander, update the firmware in the SAS expander, so that the RAID Cards mate with SAS expanders. The invention can freely change the connection between the RAID card and the SAS expander.
Description
技术领域 technical field
本发明涉及一种调整SAS扩展器连接磁盘阵列卡的系统及方法。The invention relates to a system and method for adjusting a SAS expander connected to a disk array card.
背景技术 Background technique
目前独立冗余磁盘阵列(Redundant Array 0f Independent Disk,RAID)卡,即磁盘阵列卡,(以下简称RAID卡)通过SAS expander(Serial Attached Small Computer System Interface Expander,串行连接小型电子装置系统接口扩展器,以下简称SAS扩展器)可以连接多个扩展设备,例如HDD(Hard Disk Drive,硬盘驱动器)或其他SAS扩展器。首选需要根据RAID卡的属性或种类去调整SAS扩展器的固件(firmware),在该固件设置完成之后,SAS扩展器所连接的RAID卡就不能随意更换了。如果直接更换RAID卡连接SAS扩展器,容易导致SAS扩展器所连接的扩展设备的相关信息混乱或丢失。At present, the Redundant Array 0f Independent Disk (RAID) card, that is, the disk array card, (hereinafter referred to as the RAID card) connects the small electronic device system interface expander serially through the SAS expander (Serial Attached Small Computer System Interface Expander) , hereinafter referred to as SAS expander) can connect multiple expansion devices, such as HDD (Hard Disk Drive, hard disk drive) or other SAS expanders. The first option is to adjust the firmware of the SAS expander according to the properties or types of the RAID card. After the firmware is set, the RAID card connected to the SAS expander cannot be replaced at will. If you directly replace the RAID card and connect it to the SAS expander, information about the expansion device connected to the SAS expander may be confused or lost.
发明内容 Contents of the invention
鉴于以上内容,有必要提供一种调整SAS扩展器连接磁盘阵列卡的系统及方法,能够根据RAID卡的信息自动调整SAS扩展器相关信息,使得SAS扩展器可以随意更换所连接的RAID卡。In view of the above, it is necessary to provide a system and method for adjusting the connection of a SAS expander to a disk array card, which can automatically adjust the relevant information of the SAS expander according to the information of the RAID card, so that the SAS expander can freely replace the connected RAID card.
一种调整SAS扩展器连接磁盘阵列卡的方法,应用于包括SAS扩展器的电子装置中,该方法包括建立步骤:将磁盘阵列RAID卡分为多个种类,并根据SAS扩展器的配置参数为各种类的RAID卡创建对应的调整信息,将该调整信息存储在该电子装置的存储装置中;第一读取步骤:当有RAID卡新连接SAS扩展器时,读取与SAS扩展器新连接的RAID卡的信息;判断步骤:根据RAID卡的信息,判断该RAID卡与SAS扩展器是否匹配;第二读取步骤:当该RAID卡与SAS扩展器不匹配时,根据该RAID卡的信息所对应的RAID卡的种类,从存储装置中读取该RAID卡所对应的调整信息,并将该调整信息与该RAID卡的信息写入一个新的固件中;匹配步骤:将该新的固件存储到SAS扩展器的闪存芯片中,更新该SAS扩展器中的固件,使得该RAID卡与SAS扩展器匹配。A method for adjusting a SAS expander to connect to a disk array card, which is applied to an electronic device including a SAS expander, the method includes the steps of: dividing the disk array RAID card into multiple types, and according to the configuration parameters of the SAS expander as Various types of RAID cards create corresponding adjustment information, and store the adjustment information in the storage device of the electronic device; the first reading step: when a RAID card is newly connected to the SAS expander, read the new information related to the SAS expander. Information of the connected RAID card; judging step: according to the information of the RAID card, judge whether the RAID card matches the SAS expander; the second reading step: when the RAID card does not match the SAS expander, according to the information of the RAID card The type of the RAID card corresponding to the information, read the adjustment information corresponding to the RAID card from the storage device, and write the adjustment information and the information of the RAID card into a new firmware; matching step: the new firmware The firmware is stored in the flash memory chip of the SAS expander, and the firmware in the SAS expander is updated so that the RAID card matches the SAS expander.
一种调整SAS扩展器连接磁盘阵列卡的系统,运行于包括SAS扩展器的电子装置中,该系统包括:建立模块,用于将磁盘阵列RAID卡分为多个种类,并根据SAS扩展器的配置参数为各种类的RAID卡创建对应的调整信息,并将所述的调整信息存储于电子装置的存储装置中;第一读取模块,用于当有RAID卡新连接SAS扩展器时,读取与SAS扩展器新连接的RAID卡的信息;判断模块,用于根据RAID卡的信息,判断该RAID卡与SAS扩展器是否匹配;第二读取模块,用于当该RAID卡与SAS扩展器不匹配时,根据该RAID卡的信息所对应的RAID卡的种类,从存储装置中读取该RAID卡所对应的调整信息,并将该调整信息与该RAID卡的信息写入一个新的固件中;匹配模块,用于将该新的固件存储到SAS扩展器的闪存芯片中,更新该SAS扩展器中的固件,使得该RAID卡与SAS扩展器匹配。A system for adjusting a SAS expander to connect to a disk array card, running in an electronic device including a SAS expander, the system includes: a building module for dividing the disk array RAID card into multiple types, and according to the SAS expander The configuration parameters create corresponding adjustment information for various types of RAID cards, and store the adjustment information in the storage device of the electronic device; the first reading module is used for when the RAID card is newly connected to the SAS expander, Read the information of the newly connected RAID card with the SAS expander; the judging module is used to judge whether the RAID card matches the SAS expander according to the information of the RAID card; the second reading module is used for when the RAID card and the SAS When the expander does not match, read the adjustment information corresponding to the RAID card from the storage device according to the type of RAID card corresponding to the information of the RAID card, and write the adjustment information and the information of the RAID card into a new In the firmware; the matching module is used to store the new firmware in the flash memory chip of the SAS expander, and update the firmware in the SAS expander so that the RAID card matches the SAS expander.
相较于现有技术,本发明提供的调整SAS扩展器连接磁盘阵列卡的系统及方法,通过读取SAS扩展器所连接的RAID卡的信息,判断是否与SAS扩展器是否匹配,且在RAID卡与SAS不匹配时,根据RAID卡的信息自动调整SAS扩展器的相关信息,使得SAS扩展器可以不受限制地随意更换所连接的RAID卡。Compared with the prior art, the system and method for adjusting the SAS expander connected to the disk array card provided by the present invention can judge whether it matches the SAS expander by reading the information of the RAID card connected to the SAS expander, and in the RAID When the card does not match the SAS, the relevant information of the SAS expander will be automatically adjusted according to the information of the RAID card, so that the SAS expander can freely replace the connected RAID card without restriction.
附图说明 Description of drawings
图1是本发明调整SAS扩展器连接磁盘阵列卡的系统较佳实施例的运行环境示意图。FIG. 1 is a schematic view of the operating environment of a preferred embodiment of the system for adjusting a SAS expander connected to a disk array card according to the present invention.
图2是本发明调整SAS扩展器连接磁盘阵列卡的系统较佳实施例的功能模块图。Fig. 2 is a functional block diagram of a preferred embodiment of the system for adjusting the connection of the SAS expander to the disk array card of the present invention.
图3是本发明调整SAS扩展器连接磁盘阵列卡的方法较佳实施例的功能模块图。FIG. 3 is a functional module diagram of a preferred embodiment of a method for adjusting a SAS expander connected to a disk array card in the present invention.
主要元件符号说明Description of main component symbols
如下具体实施方式将结合上述附图进一步说明本发明。The following specific embodiments will further illustrate the present invention in conjunction with the above-mentioned drawings.
具体实施方式 Detailed ways
如图1所示,是本发明调整SAS扩展器连接磁盘阵列卡的系统较佳实施例的架构图。该调整SAS扩展器连接磁盘阵列卡的系统20(以下简称“调整系统20”)运行于电子装置1中。所述的电子装置1包括处理器10、存储装置30、RAID卡40以及SAS扩展器50。所述的处理器10用于处理电子装置1的数据和指令。所述的存储装置30用于存储电子装置1的数据。As shown in FIG. 1 , it is a structure diagram of a preferred embodiment of a system for adjusting a SAS expander connected to a disk array card in the present invention. The
所述的处理器10与RAID卡40及SAS扩展器50连接。所述的RAID卡40可以通过SAS端口(图中未示出)与SAS扩展器50连接。所述SAS扩展器50可以连接一个或多个硬件设备(图中未示出),例如,HDD(Hard Disk Drive,硬盘驱动器)等。The
所述的RAID卡40用于管理连接于SAS扩展器50的硬盘驱动器,不同的RAID卡40所支持的RAID功能不同,即支持不同的RAID级别,该RAID级别包括RAID 0、RAID 1、RAID 3、RAID 4、RAID5、RAID 10、RAID50以及RAID 60等。所述SAS扩展器50的闪存芯片中保存有一个固件(firmware),该固件中保存着该SAS扩展器50的配置参数,包括该SAS扩展器50的物理层(Physical Layer,PHY)的配置信息,SAS扩展器50的地址信息,SAS扩展器50物理层的连接信息等,在本较佳实施例中,该固件中还保存了该SAS扩展器50正确连接一个RAID卡40后,该所连接的RAID卡40的相关参数,例如,该卡所支持的RAID级别等。所述的固件是一种嵌入在SAS扩展器中的软件,且该固件可以被更新与升级。Described
如图2所示,是本发明调整SAS扩展器连接磁盘阵列卡的系统较佳实施例的功能模块图。所述的调整系统20包括建立模块200、第一读取模块202、判断模块204、第二读取模块206以及匹配模块208。以上各模块均以软件程序或指令的形式安装在电子装置1的存储装置30中或固化于该电子装置1的操作系统中,并由该电子装置1的处理器10所执行。本发明所称的模块是完成一特定功能的程序段,比程序更适合于描述软件在电子装置1中的执行过程。以下结合图3的流程图对各功能模块进行详细说明。As shown in FIG. 2 , it is a functional block diagram of a preferred embodiment of the system for adjusting a SAS expander connected to a disk array card in the present invention. The
如图3所示,是本发明调整SAS扩展器连接磁盘阵列卡的方法较佳实施例的流程图。As shown in FIG. 3 , it is a flowchart of a preferred embodiment of a method for adjusting a SAS expander connected to a disk array card in the present invention.
步骤S110,所述的建立模块200用于根据RAID卡40支持不同的RAID级别,将RAID卡40分为多个种类,并根据SAS扩展器50的配置参数为各种类的RAID卡40创建对应的调整信息,并将该调整信息存储于存储装置30中。该每个种类RAID卡对应的调整信息包括该种类RAID卡40所支持的RAID级别,针对该种类的RAID卡40所调整的SAS扩展器50的配置参数。例如,根据RAID卡40所支持不同RAID级别,RAID卡40可以分为只支持RAID 0及RAID1的IRRAID类、不支持RAID 0及RAID 1的IT RAID类、支持RAID0,RAID 1,RAID 5,RAID 5,RAID6,RAID 50以及RAID 60的MEGARAID类等多个种类。用户可以根据实际的情况以及或者个人的喜好对RAID卡的种类进行分类。Step S110, the establishment module 200 is used to divide the
步骤S111,当有RAID卡40新连接SAS扩展器50时,例如,更换RAID卡40时,所述的第一读取模块202通过处理器10读取得到与SAS扩展器50新连接的RAID卡40的信息,包括该RAID卡40所支持的RAID级别。Step S111, when a
步骤S112,所述的判断模块204判断该RAID卡40与SAS扩展器50是否匹配。所述的判断模块204通过判断该RAID卡40支持的级别是否与SAS扩展器50中闪存芯片的固件中记录的所支持的RAID级别是否一致。当RAID卡40所支持的RAID级别与SAS扩展器50固件中所支持的RAID级别一致时,所述的判断模块204判断RAID卡40与SAS扩展器50匹配,流程结束;当RAID卡40所支持的RAID级别与SAS扩展器50固件中所支持的RAID级别不一致时,所述的判断模块204判断RAID卡40与SAS扩展器50不匹配,进入步骤S113。Step S112 , the judging module 204 judges whether the
步骤S113,根据该RAID卡40所支持的RAID卡级别所对应的种类,所述的第二读取模块206从存储装置30中读取该RAID卡40所对应的调整信息,并将该调整信息与该RAID卡40的信息写入一个新的固件中。Step S113, according to the type corresponding to the RAID card level supported by the
步骤S114,所述的匹配模块208将该新的固件存储到SAS扩展器50的闪存芯片中,更新该SAS扩展器50中的固件,使得该RAID卡40与SAS扩展器匹配。Step S114, the matching module 208 stores the new firmware in the flash chip of the SAS expander 50, and updates the firmware in the SAS expander 50, so that the
应说明的是,在SAS扩展器50中的固件更新后需要被重启才能正常使用。It should be noted that after the firmware in the SAS
另外,如果该SAS扩展器50之前没有连接过RAID卡40,当有RAID卡40连接该SAS扩展器50时,SAS扩展器50是没有记录RAID卡40的种类和所支持的RAID级别等有关RAID卡的信息的,因此,此时也是判断该SAS扩展器50与RAID卡40不匹配,需要更新该SAS扩展器50中的固件。In addition, if the
最后所应说明的是,以上实施例仅用以说明本发明的技术方案而非限制,尽管参照较佳实施例对本发明进行了详细说明,本领域的普通技术人员应当理解,可以对本发明的技术方案进行修改或等同替换,而不脱离本发明技术方案的精神和范围。Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention without limitation. Although the present invention has been described in detail with reference to the preferred embodiments, those of ordinary skill in the art should understand that the technical solutions of the present invention can be The scheme shall be modified or equivalently replaced without departing from the spirit and scope of the technical scheme of the present invention.
Claims (8)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN 201110424470 CN103164168A (en) | 2011-12-17 | 2011-12-17 | System and method for adjusting redundant array of independent disk card connected with serial attached small computer system interface (SAS) expander |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN 201110424470 CN103164168A (en) | 2011-12-17 | 2011-12-17 | System and method for adjusting redundant array of independent disk card connected with serial attached small computer system interface (SAS) expander |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN103164168A true CN103164168A (en) | 2013-06-19 |
Family
ID=48587297
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN 201110424470 Pending CN103164168A (en) | 2011-12-17 | 2011-12-17 | System and method for adjusting redundant array of independent disk card connected with serial attached small computer system interface (SAS) expander |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN103164168A (en) |
Cited By (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20130159606A1 (en) * | 2011-12-16 | 2013-06-20 | Hon Hai Precision Industry Co., Ltd. | System and method for controlling sas expander to electronically connect to a raid card |
| CN105045529A (en) * | 2015-06-25 | 2015-11-11 | 浪潮(北京)电子信息产业有限公司 | Operation and maintenance management system and method for computer disk array cards |
| CN105760255A (en) * | 2016-02-14 | 2016-07-13 | 北京艾森思科技有限公司 | RAID card configuration information backup and recovery method and device |
| WO2017096715A1 (en) * | 2015-12-11 | 2017-06-15 | 英业达科技有限公司 | Apparatus and method for configuring configuration files of expanders of storage system |
| CN108595127A (en) * | 2018-05-09 | 2018-09-28 | 杭州宏杉科技股份有限公司 | A kind of method and device dividing SAS port subregion |
| CN115033182A (en) * | 2022-06-29 | 2022-09-09 | 联想(北京)有限公司 | Processing method and device |
-
2011
- 2011-12-17 CN CN 201110424470 patent/CN103164168A/en active Pending
Cited By (12)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20130159606A1 (en) * | 2011-12-16 | 2013-06-20 | Hon Hai Precision Industry Co., Ltd. | System and method for controlling sas expander to electronically connect to a raid card |
| US9086806B2 (en) * | 2011-12-16 | 2015-07-21 | Hon Hai Precision Industry Co., Ltd. | System and method for controlling SAS expander to electronically connect to a RAID card |
| CN105045529A (en) * | 2015-06-25 | 2015-11-11 | 浪潮(北京)电子信息产业有限公司 | Operation and maintenance management system and method for computer disk array cards |
| CN105045529B (en) * | 2015-06-25 | 2019-05-24 | 浪潮(北京)电子信息产业有限公司 | A system and method for operation and maintenance management of computer disk array card |
| WO2017096715A1 (en) * | 2015-12-11 | 2017-06-15 | 英业达科技有限公司 | Apparatus and method for configuring configuration files of expanders of storage system |
| US10642514B2 (en) | 2015-12-11 | 2020-05-05 | Inventec (Pudong) Technology Corporation | Device and method for configuring expander configuration file of a storage system |
| CN105760255A (en) * | 2016-02-14 | 2016-07-13 | 北京艾森思科技有限公司 | RAID card configuration information backup and recovery method and device |
| CN105760255B (en) * | 2016-02-14 | 2019-01-22 | 北京艾森思科技有限公司 | Backup and restore method and device for RAID card configuration information |
| CN108595127A (en) * | 2018-05-09 | 2018-09-28 | 杭州宏杉科技股份有限公司 | A kind of method and device dividing SAS port subregion |
| CN108595127B (en) * | 2018-05-09 | 2021-07-30 | 杭州宏杉科技股份有限公司 | Method and device for dividing SAS port partition |
| CN115033182A (en) * | 2022-06-29 | 2022-09-09 | 联想(北京)有限公司 | Processing method and device |
| CN115033182B (en) * | 2022-06-29 | 2025-12-19 | 联想(北京)有限公司 | Processing method and device |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US8661306B2 (en) | Baseboard management controller and memory error detection method of computing device utilized thereby | |
| US8788800B2 (en) | OS processing method, system and non-transitory computer readable storage medium thereof | |
| US20120054539A1 (en) | Computing device and restarting method of the computing device | |
| CN103823642B (en) | Method and system for flash balanced storage | |
| CN103164168A (en) | System and method for adjusting redundant array of independent disk card connected with serial attached small computer system interface (SAS) expander | |
| US8868793B2 (en) | SAS expander system and method for dynamically allocating SAS addresses to SAS expander devices | |
| US20120042307A1 (en) | System and method for creating memory interface of computing device | |
| TW201413448A (en) | Data processing method, memory controller and memory storage device | |
| CN101930372A (en) | Program updating system and method | |
| TWI479505B (en) | Data management method, memory controller and memory storage apparatus | |
| CN102326141A (en) | Processing method and apparatus for raid configuration information and raid controller | |
| US20120271983A1 (en) | Computing device and data synchronization method | |
| TW201508472A (en) | System and method of performing firmware update test | |
| CN101923441A (en) | Method for processing writing request of redundant array of hybrid magnetic disc, controller and storage system thereof | |
| TWI459198B (en) | Memory storage device, memory controller thereof, and method for identifying valid data | |
| CN103699491A (en) | Data storage method, memory controller and memory storage device | |
| CN102467420A (en) | System and method for storing and restoring configuration information of external board card | |
| CN104133640B (en) | From the fast quick-recovery of dormancy | |
| US20140164845A1 (en) | Host computer and method for testing sas expanders | |
| WO2015154415A1 (en) | Method and device for creating update package | |
| US20140164822A1 (en) | Host computer and method for managing sas expanders of sas expander storage system | |
| CN101963931A (en) | Hard disk testing method under extensible firmware interface | |
| CN102135860A (en) | Automatic planning method of hard disk capacity | |
| WO2018041151A1 (en) | Data storage method and apparatus, and nonvolatile memory | |
| CN116501259A (en) | Disk group active-active synchronization method, device, computer equipment and storage medium |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C05 | Deemed withdrawal (patent law before 1993) | ||
| WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20130619 |