TW201037509A - RAID information update method - Google Patents

RAID information update method Download PDF

Info

Publication number
TW201037509A
TW201037509A TW98110936A TW98110936A TW201037509A TW 201037509 A TW201037509 A TW 201037509A TW 98110936 A TW98110936 A TW 98110936A TW 98110936 A TW98110936 A TW 98110936A TW 201037509 A TW201037509 A TW 201037509A
Authority
TW
Taiwan
Prior art keywords
original
profile
disk array
updated
mini
Prior art date
Application number
TW98110936A
Other languages
Chinese (zh)
Other versions
TWI401566B (en
Inventor
Chung-Chiang Chen
Original Assignee
Inventec Corp
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 Inventec Corp filed Critical Inventec Corp
Priority to TW98110936A priority Critical patent/TWI401566B/en
Publication of TW201037509A publication Critical patent/TW201037509A/en
Application granted granted Critical
Publication of TWI401566B publication Critical patent/TWI401566B/en

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

A RAID information update method includes following steps: when a Power-On Self Test starts to test a RAID (Redundant Array of Independent Disks), a mini RIS (RAID Information Sector) is obtained from a RIS of the RAID; the RAID is initialized according to the mini RIS, and a present state of the RAID is detected; the mini RIS is updated according to the present state of the RAID; the updated mini RIS and several original blocks of the RIS are compared to determine if there is at least an update block which needs to be updated among the original blocks of the RIS; when there is at least one of the update block which needs to be updated among the original blocks of the RIS, at least one of the update block is updated according to the updated mini RIS and then writing back to the RAID to update the RIS of the RAID.

Description

201037509 六、發明說明: 【發明所屬之技術領域】 本發明是有關於一種磁碟陣列設定檔處理方、、 別是有關於一種磁碟陣列設定檔更新方法。 去,且特 【先前技術】 隨著電腦的日漸普及,民眾儲存於電腦之次、曰 之日益龐大。因此,使得電腦薇商開發出不斷貝j篁也隨 容量之儲存媒體。然而,一般具有大容量之儲^ a出更大 硬碟,傳輸速率受限於本身讀取頭之存取速率=媒體,如 接之匯流排傳輸速率,因而造成此類儲存媒體^其所連 速率上的瓶頸。此外,此類儲存媒體一般不具有办=貝料傳輸 因而在儲存媒體損壞時,其所健存之資料也隨功能, 此,發展出磁碟陣列(Redundant Array μ 了貝室又。因201037509 VI. Description of the Invention: [Technical Field] The present invention relates to a disk array profile processing method, and more particularly to a disk array profile updating method. Go, and special [Prior Art] With the increasing popularity of computers, the number of people stored in computers is growing. Therefore, the computer Weishang has developed a storage medium that is constantly accommodating with capacity. However, generally there is a large capacity to store a larger hard disk, and the transmission rate is limited by the access rate of the read head itself = the medium, such as the bus transfer rate, thus causing such a storage medium to be connected The bottleneck in speed. In addition, such storage media generally do not have the transmission of the bedding material. Therefore, when the storage medium is damaged, the data stored by it is also functioned. Therefore, a disk array has been developed (Redundant Array μ has a shell and another.

Disks,RAID),用以同時自數個實體硬碟存取^ 得所模擬出之邏輯硬碟具有較快之資料 率\ j U 容錯之功能。 千且具有 在存取磁碟陣列所模擬之邏輯硬碟前,系 碟陣列之數個實體硬碟的磁碟陣列資㈣自 趣 mformation Sector,RIS)取得磁碟陣列設定^ 為應bytes)。然後,便可根據聰上所儲存之磁碟陣列 設定棺,減化並存取__所雖之邏輯硬碟。 在執行開機自我_ ( PGW㈣n Sdf Test,p〇ST )時, 系統所能利用的記憶體空間較小(約為1MB)。因此,在 開機自我檢測對磁碟陣列做檢測時,僅會自磁碟陣列設定 201037509 構擷取部份重要的攔位作成_⑽(其 bytes),以初始化並檢測磁 灼為670 列之狀態有改變(如有其中’在檢測到磁碟陣 陣列拔除便根據磁碟陣列之目前狀態更新 ㈣。在關自我制完成對磁碟陣狀檢測彳 先磁碟陣列設定檑與完成檢測後之mini RIS比對,:= 是否需根據咖更新磁料列設定檔。“ Ο 對時,需另外配置-塊記憶體空間儲存原先 = 槽,因而容易造成記憶體空間不足。此外,即使 碟陣列設U之部份欄位,仍需將更新後之磁碟陣列設定 檔全部寫回磁碟陣列,無形中浪費了很多資料傳輸以及 取的時間。 ’ 【發明内容】 因此,本發明之一目的是在提供一種磁碟陣列設定檔 更新方法’用以在開機自我檢測完成對磁碟陣列之檢測 〇 後’將原始磁碟陣列設定檔分為數個區塊,並將各區塊逐Disks, RAID), used to access multiple physical hard disks at the same time. The simulated logical hard disk has a faster data rate and j u fault tolerance. Thousands have the disk array of several physical hard disks of the array of disks before accessing the logical hard disk simulated by the disk array. (4) The mformation sector (RIS) obtains the disk array setting ^ as bytes. Then, you can reduce and access the logical hard disk of __ according to the disk array settings stored on Cong. When the boot self_(PGW(4)n Sdf Test, p〇ST) is executed, the memory space available to the system is small (approximately 1MB). Therefore, when the boot self-detection detects the disk array, only the important block of the disk array setting 201037509 is created as _(10) (its bytes) to initialize and detect the state of the magnetic burn of 670 columns. There is a change (if there is 'in the detection of the disk array is removed according to the current state of the disk array update (four). In the self-made to complete the disk array detection 彳 first disk array settings 完成 and after the completion of the detection of the mini RIS comparison, := Whether to update the magnetic column configuration file according to the coffee. “ Ο When it is time, it needs to be configured separately - the block memory space is stored in the original = slot, so it is easy to cause insufficient memory space. In addition, even if the disk array is set to U In some of the fields, it is still necessary to write all the updated disk array profiles back to the disk array, which wastes a lot of data transmission and time taken. ' SUMMARY OF THE INVENTION Therefore, one of the objects of the present invention is Providing a disk array profile update method for "after booting self-detection to complete detection of a disk array", dividing the original disk array profile into several blocks, and dividing each zone One by one

一與完成檢測後之mini RIS比對。僅在各區塊上,mini RIS 所對應之攔位有更新時,根據mini RIS更新上述區塊並寫 回磁碟陣列。 依據本發明一實施例,一種磁碟陣列設定檔更新方法 包含以下步驟:在一開機自我檢測開始檢測一磁碟陣列 時’自磁碟陣列之一原始設定檔擷取一迷你設定檔。根據 迷你設定檔初始化磁碟陣列,並偵測磁碟陣列之一目前狀 態。根據磁碟陣列之目前狀態,更新迷你設定檔。將更新 201037509 後之迷你設定檔與原始設定檔之數個原始區塊逐一比對, 以判斷原始設定檔是否有至少一更新區塊需更新。在原始 設定檔有至少一更新區塊需更新時,根據更新後之逑你設 定檔,更新至少一更新區塊。僅將更新後之至少一更新區 塊寫回磁碟陣列’以更新磁碟陣列之原始設定檔。 【實施方式】 請參照第1圖,其繪示依照本發明一實施方式的一種 ❹磁碟陣列(Redundant Array of Inexpensive Disks ’ RAID ) 設定檔更新方法之流程圖。磁碟陣列設定檔更新方法用以 在開機自我檢測(Power-On Self Test,POST)完成對磁碟 陣列之檢測後,將原始磁碟陣列設定檔分為數個區塊,並 將各區塊逐一與完成檢測後之mini RIS ( RAID Inf〇rmati〇n Sector)比對。其中’僅在各區塊上,ris所對應之欄 位有更新時,根據mini RIS更新上述區塊並寫回磁碟陣 列。磁碟陣列設定檔更新方法10〇包含以下步驟: 〇 在一開機自我檢測開始檢測一磁碟降列(步驟丨1〇) 時,自磁碟陣列之一原始設定檔擷取一迷你設定檔(步驟 120)。其中,原始設定檔係儲存於磁碟陣列之數個實體硬 碟之RIS ’而迷你設定稽係應用mjni ris之格式。 在步驟130中,根據迷你設定檔初始化磁碟陣列,並 偵測磁碟陣列之一目前狀態,如是否有實體硬碟新增至磁 碟陣列或自磁碟陣列移除。接下來,在步驟14〇中,根據 磁碟陣列之目前狀態,更新迷你設定槽。 在步驟150中’取得原始設定檔之數個原始區塊的其 201037509 做調 分成 中,各原始區塊之大小可依據實際需求而 正牛例來說,由於一般磁碟陣列上所使用之實 ,寫單仇為block (512 bytes),因此可將原始設 夕個大小為512 bytes之原始區塊。 馬One is compared with the mini RIS after the completion of the test. Only on each block, when the pad corresponding to the mini RIS is updated, the above block is updated according to the mini RIS and written back to the disk array. According to an embodiment of the invention, a disk array profile updating method includes the steps of: capturing a mini profile from one of the original profiles of the disk array when a boot self-detection begins to detect a disk array. Initializes the disk array based on the mini profile and detects the current state of one of the disk arrays. The mini profile is updated based on the current state of the disk array. The mini profile set after updating 201037509 is compared with the original blocks of the original profile to determine whether the original profile has at least one update block to be updated. When at least one update block needs to be updated in the original configuration file, at least one update block is updated according to the updated file. Only the updated at least one update block is written back to the disk array' to update the original profile of the disk array. [Embodiment] Please refer to FIG. 1 , which is a flowchart of a method for updating a Redundant Array of Inexpensive Disks ( RAID ) profile according to an embodiment of the invention. The disk array configuration file updating method is used to divide the original disk array configuration file into several blocks after the power-on self test (POST) completes the detection of the disk array, and each block is changed one by one. Align with the mini RIS (RAID Inf〇rmati〇n Sector) after the completion of the test. Where 'only on each block, when the field corresponding to ris is updated, the above block is updated according to mini RIS and written back to the disk array. The disk array profile update method 10 includes the following steps: 撷 When detecting a disk drop-down (step 〇1〇) after a boot self-test starts, a mini profile is retrieved from one of the original profiles of the disk array ( Step 120). Among them, the original setting file is stored in the RIS' of several physical hard disks of the disk array, and the mini setting system is applied in the format of mjni ris. In step 130, the disk array is initialized based on the mini profile and the current state of one of the disk arrays is detected, such as whether a physical hard disk is added to the disk array or removed from the disk array. Next, in step 14A, the mini setting slot is updated according to the current state of the disk array. In step 150, the original partition of the original profile is obtained from the 201037509, and the size of each original block can be determined according to the actual demand, because the actual disk array is used. , write single enemies as block (512 bytes), so you can set the original size to 512 bytes of the original block. horse

在竭160巾,判斷所取得之原始區塊是否為 之一更新11塊。其中’步驟16G係藉由將所取得更新 塊與更新後之迷你設定檔做比對而判斷。在所取得/、始區 區塊中,更新後之迷你設定槽所對應之攔位有更=廣始 判定所取得之原始區塊為需更新之更新區塊。 、,則 在步驟170中,當所取得之原始區塊為需更新 區塊時,根據更新後之迷你設定檔更新上述原始區塊, 將更新後之原始區塊寫回原始設定檔。在步驟18〇中,根 據更新後之原始區塊與一暫存偵錯碼,產生一目前偵^ 碼。然而,當所取得之原始區塊非需更新之更新區塊時, 根據所取得之原始區塊與暫存偵錯碼,產生目前偵錯碼(步 驟190)。其中,在開始執行磁碟陣列設定檔更新方法1〇〇 時’暫存偵錯碼係預設為空(Null)。此外,步驟180以及 步驟190中之目前债錯碼,可藉由核對和(checksum )或 其他偵錯碼產生方式產生。 接下來’令目前偵錯碼為暫存偵錯碼(步驟2〇〇 ),並 判斷所取得之原始區塊是否為原始設定檔中最後一個區塊 (步驟210)。在所取得之原始區塊非原始設定檔中最後一 個區塊時,則取得原始設定檔中下一個原始區塊(步驟 150)。如此一來,便可藉由步驟15〇〜步驟210,逐一更新 磁碟陣列之原始設定檔中需更新之原始區塊,並逐一產生 7 201037509 更新後之原始設定檔之偵錯碼。然而,在所取得之原始區 塊為原始設定檔中最後一個區塊時,將暫存偵錯碼寫回磁 碟陣列之原始設定檔(步驟220),作為更新後之原始設定 檔的偵錯碼。如此一來,即可利用更新後之原始設定檔存 取磁碟陣列。 由上述本發明實施方式可知,應用本發明具有下列優 點。由於每次僅將原始設定檔的其中一個區塊與迷你設定 樓比對,因而僅需多配置一個區塊之記憶體大小作為比對 0 時使用。如此一來,便不會在開機自我檢測對磁碟陣列做 檢測時,造成記憶體空間不足。此外,先前技術在將原始 設定檔更新後,便將更新後之原始設定檔整個寫回磁碟陣 列。然而,應用本發明僅需在原始設定檔之區塊中,迷你 設定檔所對應之欄位有更新時,將上述區塊更新並寫回原 始設定檔,因而節省了資料傳輸以及存取之時間。另外, 更新後之原始設定檔的偵錯碼係隨著各區塊比對而產生。 換言之,不需在原始設定檔更新完成後,重新運算整個更 ^ 新後之原始設定檔以產生偵錯碼,因而節省重新運算以產 生偵錯碼之時間。 雖然本發明已以實施方式揭露如上,然其並非用以限 定本發明,任何熟習此技藝者,在不脫離本發明之精神和 範圍内,當可作各種之更動與潤飾,因此本發明之保護範 圍當視後附之申請專利範圍所界定者為準。 【圖式簡單說明】 為讓本發明之上述和其他目的、特徵、優點與實施例 8 201037509 能更明顯易懂,所附圖式之說明如下: 第1圖繪示依照本發明一實施方式的一種磁碟陣列設 定檔更新方法之流程圖。 【主要元件符號說明】 100 :磁碟陣列設定檔更新方 法 110〜220 :步驟After exhausting 160 towels, it is judged whether or not the original block obtained is one of 11 updates. The 'step 16G' is determined by comparing the obtained update block with the updated mini profile. In the acquired /, start block, the updated block corresponding to the mini setting slot has a more = original decision to obtain the original block as the updated block to be updated. Then, in step 170, when the original block obtained is the required update block, the original block is updated according to the updated mini profile, and the updated original block is written back to the original profile. In step 18, a current detection code is generated based on the updated original block and a temporary error detection code. However, when the obtained original block does not need to be updated, the current error detection code is generated according to the obtained original block and the temporary error detection code (step 190). Wherein, when the disk array profile update method 1 is started, the temporary storage error code system is preset to be null (Null). In addition, the current debt error codes in steps 180 and 190 can be generated by checksum or other error detection code generation. Next, the current error detection code is the temporary error detection code (step 2〇〇), and it is judged whether the obtained original block is the last block in the original configuration file (step 210). When the last block in the original block non-original profile is obtained, the next original block in the original profile is obtained (step 150). In this way, the original blocks to be updated in the original configuration file of the disk array can be updated one by one by step 15 〇 to step 210, and the error detection code of the original configuration file after the update of 201037509 is generated one by one. However, when the original block obtained is the last block in the original profile, the temporary error detection code is written back to the original profile of the disk array (step 220), as the debug of the updated original profile. code. In this way, the updated array can be used to access the disk array. It will be apparent from the above-described embodiments of the present invention that the application of the present invention has the following advantages. Since only one of the original profiles is compared with the mini-set building at a time, it is only necessary to configure the memory size of one block as the comparison 0. As a result, there is no memory space shortage when the boot self-detection detects the disk array. In addition, the prior art updates the original profile to the disk array after the original profile is updated. However, the application of the present invention only needs to update and write the above-mentioned block back to the original profile when the field corresponding to the mini profile is updated in the block of the original profile, thereby saving data transmission and access time. . In addition, the error detection code of the updated original profile is generated as each block is aligned. In other words, it is not necessary to recalculate the entire newer original profile after the original profile update is completed to generate an error detection code, thereby saving time for recalculation to generate an error detection code. Although the present invention has been disclosed in the above embodiments, it is not intended to limit the present invention, and the present invention can be modified and modified without departing from the spirit and scope of the present invention. The scope is subject to the definition of the scope of the patent application attached. BRIEF DESCRIPTION OF THE DRAWINGS In order to make the above and other objects, features and advantages of the present invention and the embodiment 8 201037509 more apparent, the description of the drawings is as follows: FIG. 1 is a view of an embodiment of the present invention. A flow chart of a method for updating a disk array profile. [Main component symbol description] 100: Disk array configuration file update method 110~220: Step

Claims (1)

201037509 七、申請專利範圍: L 一種磁碟陣列設定檔更新方法,包含: 在一開機自我檢測開始檢測一磁碟陣列時,自該 陣列之一原始設定檔擷取一迷你設定檔; ” 根據該迷你設定槽初始化該磁碟陣列,並偵測該 陣列之一目前狀態; ” 根據該磁碟陣列之該目前狀態,更新該迷你設定槽; 將更新後之該迷你設定檔與該原始設定檔之複數個原 f區塊逐一比對,以判斷該原始設定檔之該些原始區塊中 是否有至少一更新區塊需更新;以及 在該些原始區塊中有該至少一更新區塊需更新時,根 據更新後之該迷你設定檔,更新該至少一更新區塊,並僅 將更新後之該至少一更新區塊寫回該磁碟陣列,以更新該 磁碟陣列之該原始設定檔。 2. 如請求項1所述之磁碟陣列設定檔更新方法,其 中在將更新後之該迷你設定檔與該原始設定檔之該些原始 區塊逐一比對時,更包含: 根據非該至少一更新區塊之該些原始區塊以及該至少 一更新區塊’產生更新後之該原始設定檔之一偵錯碼; 將該偵錯碼寫回更新後之該原始設定檔。 3. 如請求項1所述之磁碟陣列設定檔更新方法,其 10 201037509 中該原始設定檔之該债錯碼係利用核對和(checksum )產 生0 4. 如請求項1所述之磁碟陣列設定檔更新方法,其 中該磁碟陣列之該原始設定檔係儲存於該磁碟陣列之複數 個實體硬碟之 RIS (RAID Information Sector)。 5. 如請求項1所述之磁碟陣列設定檔更新方法,其 0 中該迷你設定槽係應用mini RIS之格式。 6. 如請求項1所述之磁碟陣列設定檔更新方法,其 中每一該些原始區塊之大小為512 bytes。201037509 VII. Patent application scope: L A method for updating a disk array configuration file, comprising: capturing a mini profile from one of the original profiles of the array when a boot self-detection starts detecting a disk array; The mini setting slot initializes the disk array and detects a current state of the array; ” updating the mini setting slot according to the current state of the disk array; and updating the updated mini profile with the original profile Comparing the plurality of original f-blocks one by one to determine whether at least one update block in the original blocks of the original profile needs to be updated; and updating the at least one update block in the original blocks And updating the at least one update block according to the updated mini profile, and writing only the updated at least one update block back to the disk array to update the original profile of the disk array. 2. The disk array profile update method of claim 1, wherein when the updated mini profile is compared with the original blocks of the original profile, the method further comprises: The original blocks of an update block and the at least one update block 'generate an error detection code of the updated original configuration file; and write the error detection code back to the updated original configuration file. 3. The disk array profile update method according to claim 1, wherein the debt error code of the original profile in 10 201037509 is generated by using a checksum. 4. The disk according to claim 1 The array profile update method, wherein the original profile of the disk array is stored in a RIS (RAID Information Sector) of a plurality of physical hard disks of the disk array. 5. The disk array profile update method according to claim 1, wherein the mini setting slot is in the format of mini RIS. 6. The disk array profile update method of claim 1, wherein each of the original blocks has a size of 512 bytes.
TW98110936A 2009-04-01 2009-04-01 Raid information update method TWI401566B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW98110936A TWI401566B (en) 2009-04-01 2009-04-01 Raid information update method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW98110936A TWI401566B (en) 2009-04-01 2009-04-01 Raid information update method

Publications (2)

Publication Number Publication Date
TW201037509A true TW201037509A (en) 2010-10-16
TWI401566B TWI401566B (en) 2013-07-11

Family

ID=44856702

Family Applications (1)

Application Number Title Priority Date Filing Date
TW98110936A TWI401566B (en) 2009-04-01 2009-04-01 Raid information update method

Country Status (1)

Country Link
TW (1) TWI401566B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI778811B (en) * 2021-08-19 2022-09-21 大陸商訊牧信息科技(上海)有限公司 Method for upgrade, computer system and remote upgrade equipment

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6084734A (en) * 1997-12-08 2000-07-04 Maxtor Corporation Data recovery using targeted ECC correction
US7055035B2 (en) * 2001-07-31 2006-05-30 Hewlett-Packard Development Company, L.P. Method for generating a read only memory image
CN100350371C (en) * 2003-10-07 2007-11-21 普安科技股份有限公司 Consistency initializing method of on-line magnetic disc array
TWI257573B (en) * 2004-06-21 2006-07-01 Inventec Corp Method of updating a portion of BIOS

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI778811B (en) * 2021-08-19 2022-09-21 大陸商訊牧信息科技(上海)有限公司 Method for upgrade, computer system and remote upgrade equipment

Also Published As

Publication number Publication date
TWI401566B (en) 2013-07-11

Similar Documents

Publication Publication Date Title
US10372570B2 (en) Storage device, test system for testing the same, and method thereof
CN108089951B (en) Accelerated data recovery in a storage system
JP6759459B2 (en) Physical Media Aware Spatial Join Journal Processing and Replay
US8694984B2 (en) Memory apparatus and method of updating firmware of the memory apparatus
US10120769B2 (en) Raid rebuild algorithm with low I/O impact
US20130275691A1 (en) Method, apparatus and system for memory validation
US8489946B2 (en) Managing logically bad blocks in storage devices
JP2009528616A (en) Multi-protocol removable storage
TW201237666A (en) Memory storage device, memory controller thereof, and method for virus scanning
US8291149B2 (en) Storage device and storage system having a hard disk drive and flash memory
US10942678B2 (en) Method of accessing data in storage device, method of managing data in storage device and storage device performing the same
CN112181298B (en) Array access method, array access device, storage equipment and machine-readable storage medium
US20140372710A1 (en) System and method for recovering from an unexpected shutdown in a write-back caching environment
US8156278B2 (en) Non-volatile data storage system and method thereof
US20060164743A1 (en) Method for copying source data from a source hard disk to multiple target hard disks
US8055842B1 (en) Using raid with large sector size ATA mass storage devices
CN110765032A (en) Method for reading and writing I2C memory based on system management bus interface
US20130151769A1 (en) Hard Disk Drive Reliability In Server Environment Using Forced Hot Swapping
US20140164845A1 (en) Host computer and method for testing sas expanders
CN107885620A (en) A kind of method and system for improving Solid-state disc array Performance And Reliability
US20110153674A1 (en) Data storage including storing of page identity and logical relationships between pages
US20140365713A1 (en) Electronic system and operating method thereof
TWI461904B (en) Recovery method and device for linux using fat file system
CN112540869A (en) Memory controller, memory device, and method of operating memory device
TW201037509A (en) RAID information update method

Legal Events

Date Code Title Description
MM4A Annulment or lapse of patent due to non-payment of fees