TW201435578A - Hybrid setting method for disk array - Google Patents

Hybrid setting method for disk array Download PDF

Info

Publication number
TW201435578A
TW201435578A TW102108015A TW102108015A TW201435578A TW 201435578 A TW201435578 A TW 201435578A TW 102108015 A TW102108015 A TW 102108015A TW 102108015 A TW102108015 A TW 102108015A TW 201435578 A TW201435578 A TW 201435578A
Authority
TW
Taiwan
Prior art keywords
hard disk
setting
hybrid
hard
disk
Prior art date
Application number
TW102108015A
Other languages
Chinese (zh)
Inventor
Chih-Chin Yang
Original Assignee
Prolific Technology Inc
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 Prolific Technology Inc filed Critical Prolific Technology Inc
Priority to TW102108015A priority Critical patent/TW201435578A/en
Publication of TW201435578A publication Critical patent/TW201435578A/en

Links

Landscapes

  • Signal Processing For Digital Recording And Reproducing (AREA)

Abstract

The present invention relates to a hybrid setting method for disk array, and this hybrid setting method can be applied in an external hard drive. When executing the hybrid setting method, it would determine whether the capacities of two hard disks disposed in the external hard drive are equal to each other, if yes, a RAID mode would then be activated to the two hard disks; Otherwise, if the capacities of two hard disks disposed in the external hard drive are different to each other, a hybrid RAID mode would be activated for setting the two hard disks to a single RAID, and setting a remaining capacity from one of the two hard disks to a general logical partition. Therefore, this hybrid setting method is able to resolve the hard disk capacity waste caused by conventional RAID modes. In addition, because the hybrid setting method is implemented in a RAID chip of the hard drive, it would not be limited by the connection interface sorts of the hard drive; moreover, the capacities of two different hard disks are sure to be fully used.

Description

混合式磁碟陣列的設定方法 Method of setting a hybrid disk array

本發明係關於一種應用於外接式硬碟盒之磁碟陣列方法,尤指一種混合式磁碟陣列的設定方法。 The present invention relates to a disk array method applied to an external hard disk case, and more particularly to a method of setting a hybrid disk array.

隨著電腦資訊之發展,大容量硬碟的價格越來越便宜,因此使用者已習慣使用大容量硬碟解決個人電腦之資料儲存與備份等問題。1987年,Patterson、Gibson和Katz這三位工程師在加州大學伯克利分校發表了”A Case of Redundant Array of Inexpensive Disks(廉價磁片冗餘陣列方案)”的論文,基本思想就是將多個售價相對便宜的硬碟進行虛擬組合,使其實際呈現的效能能夠超過一個售價較為昂貴的大硬碟。這一設計概念很快就被接受,從此獨立磁碟冗餘陣列(redundant array of independent disks,RAID)技術逐漸發展完備,並同時受到廣泛應用,電腦之資料儲存與備份隨即進入了更快速、安全且廉價的新時代。 With the development of computer information, the price of large-capacity hard disks is getting cheaper and cheaper. Therefore, users have become accustomed to using large-capacity hard disks to solve problems such as data storage and backup of personal computers. In 1987, three engineers, Patterson, Gibson, and Katz, published a paper on "A Case of Redundant Array of Inexpensive Disks" at the University of California at Berkeley. The basic idea is to compare multiple prices. A cheap combination of hard drives makes it practical to deliver more than a hard disk. This design concept was quickly accepted. Since then, the redundant array of independent disks (RAID) technology has been gradually developed and widely used. The data storage and backup of the computer has become faster and safer. And a new era of cheap.

請參閱第一圖,係外接式硬碟之使用示意圖。通常,使用者會將備份用硬碟容置於一外接式硬碟盒3’之中,接著,透過高速傳輸纜線33’,例如USB 3.0纜線 或SATA纜線,將電腦2’中的資料傳輸至外接式硬碟盒3’之中的備份用硬碟。如第一圖所示,雖然該外接式硬碟盒3’容置有兩顆備份硬碟(即,第一硬碟31’與第二硬碟32’),但透過獨立磁碟冗餘陣列(RAID)技術可將第一硬碟31’與第二硬碟32’組合成為一個邏輯磁區,進以增強資料整合度及容錯功能。 Please refer to the first figure, which is a schematic diagram of the use of an external hard disk. Usually, the user places the backup hard disk in an external hard disk case 3', and then passes through a high speed transmission cable 33', such as a USB 3.0 cable. Or a SATA cable that transfers the data in the computer 2' to the backup hard disk in the external hard disk case 3'. As shown in the first figure, although the external hard disk case 3' accommodates two backup hard disks (ie, the first hard disk 31' and the second hard disk 32'), the redundant array of independent disks is transmitted. The (RAID) technology combines the first hard disk 31' with the second hard disk 32' into a logical magnetic area to enhance data integration and fault tolerance.

RAID技術大致上可分為:JBOD、BIG、RAID0、RAID1等模式。嚴格來說,JBOD並不能算是RAID;當使用者採用JBOD模式時,如第二圖所示,電腦系統視窗中會顯示兩顆備份硬碟(即,第一硬碟31’與第二硬碟32’);由使用者自行決資料要備份至第一硬碟31’或第二硬碟32’。當使用者採用RAID之BIG模式時,如第三圖所示,電腦系統視窗中僅會顯示“一顆”備份硬碟,使用者可使用第一硬碟與第二硬碟加總之容量。 RAID technology can be roughly divided into: JBOD, BIG, RAID0, RAID1 and other modes. Strictly speaking, JBOD is not a RAID; when the user adopts the JBOD mode, as shown in the second figure, two backup hard disks (ie, the first hard disk 31' and the second hard disk are displayed in the computer system window. 32'); the user decides to back up the data to the first hard disk 31' or the second hard disk 32'. When the user adopts the RAID BIG mode, as shown in the third figure, only one "one" backup hard disk is displayed in the computer system window, and the user can use the first hard disk and the second hard disk to add the total capacity.

當使用者採用RAID0模式時,如第三圖所示,電腦系統視窗中顯示一顆備份硬碟,且使用者可使用第一硬碟31’與第二硬碟32’加總之容量;進行資料備份時,RAID0模式係採取第一硬碟31’與第二硬碟32’交互寫入(stripping)的方式完成資料備份,故此模式可大幅增加使用者備份之速度。當使用者採用RAID1模式時,電腦系統視窗中顯示一顆備份硬碟,但使用者僅可使用第一硬碟31’與第二硬碟32’中較小之容量;進行資料備份時,控 制晶片會將資料自動同時寫入第一硬碟31’及第二硬碟32’,以達到雙重備份的目的。 When the user adopts the RAID0 mode, as shown in the third figure, a backup hard disk is displayed in the computer system window, and the user can use the capacity of the first hard disk 31' and the second hard disk 32'; In the backup mode, the RAID0 mode adopts the first hard disk 31' and the second hard disk 32' stripping to complete the data backup, so the mode can greatly increase the speed of the user backup. When the user adopts the RAID1 mode, a backup hard disk is displayed in the computer system window, but the user can only use the smaller capacity of the first hard disk 31' and the second hard disk 32'; when performing data backup, the control The wafer will automatically write the data to the first hard disk 31' and the second hard disk 32' simultaneously for the purpose of double backup.

由上述說明,吾人可瞭解四種RAID模式之資料備份方式,同時也能夠瞭解RAID技術使得資料儲存與備份能夠即更加快速、安全。然而,長久以來,RAID技術一直存在著一項重大缺陷,即,使用者所購買的第一硬碟31’與第二硬碟32’的容量大小必須相同。以下將透過第四A圖與第四B圖所繪示之RAID技術的架構圖加以說明習用的RAID技術所存在的重大缺陷。假設使用者所購買的第一硬碟31’與第二硬碟32’的容量大小是相同的,如第四A圖所示,對第一硬碟31’與第二硬碟32’執行RAID則不會有任何問題與缺陷;反之,若使用者所購買的第一硬碟31’與第二硬碟32’的容量大小分別為1TB與500GB,如第四B圖所示,則第一硬碟31’會產生一無法利用之硬碟容量311’,該無法利用之硬碟容量311’的大小為第一硬碟31’與第二硬碟32’容量大小的差值,即,500GB。 From the above description, we can understand the data backup methods of the four RAID modes, and also understand the RAID technology to make data storage and backup faster and safer. However, RAID technology has long been a major drawback in that the size of the first hard disk 31' and the second hard disk 32' purchased by the user must be the same. The following is a description of the major drawbacks of the conventional RAID technology through the architectural diagram of the RAID technology illustrated in Figures 4A and 4B. It is assumed that the size of the first hard disk 31' and the second hard disk 32' purchased by the user are the same. As shown in FIG. 4A, RAID is performed on the first hard disk 31' and the second hard disk 32'. There will be no problems or defects; on the contrary, if the size of the first hard disk 31' and the second hard disk 32' purchased by the user are 1TB and 500GB respectively, as shown in the fourth B, the first The hard disk 31' generates an unusable hard disk capacity 311'. The size of the unusable hard disk capacity 311' is the difference between the first hard disk 31' and the second hard disk 32', that is, 500 GB. .

因此,經由上述,吾人可以得知,雖然RAID技術使得電腦資料儲存與備份能夠即更加快速與安全,然而RAID技術係一直存在著重大缺陷;有鑑於此,本案之發明人係極力地研究創作,而終於研發出一種混合式磁碟陣列的設定方法。 Therefore, through the above, we can know that although RAID technology makes computer data storage and backup faster and safer, RAID technology has always had major flaws; in view of this, the inventor of this case is trying to study and create. Finally, a method of setting up a hybrid disk array has been developed.

本發明之主要目的,在於提供一種混合式磁碟陣列的設定方法,主要應用於外接式硬碟盒之中,以於兩顆容量大小不同的硬碟被置入一外接式硬碟盒之內時,自動啟用混合式RAID模式;而在混合式RAID模式下,兩顆硬碟會被設為一獨立磁碟冗餘陣列(RAID),且其中一硬碟所剩餘的硬碟容量設定為一般邏輯磁區,如此的硬碟磁區規劃,可改善習用的RAID模式所造成的硬碟容量之浪費。再者,由於本發明之設定方法係於硬碟盒內的RAID chip中實現,因此不受限於任何連接介面,並可在不增加硬體成本的前提下,達到不同大小的硬碟空間皆可被充分利用之結果。 The main purpose of the present invention is to provide a method for setting a hybrid disk array, which is mainly used in an external hard disk case, so that two hard disks of different capacities are placed in an external hard disk case. In the hybrid RAID mode, the two hard disks are set to a redundant array of independent disks (RAID), and the hard disk capacity of one of the hard disks is set to be normal. Logical magnetic zone, such a hard disk magnetic zone plan, can improve the waste of hard disk capacity caused by the conventional RAID mode. Furthermore, since the setting method of the present invention is implemented in a RAID chip in a hard disk case, it is not limited to any connection interface, and can reach different sizes of hard disk space without increasing the hardware cost. The result can be fully utilized.

因此,為了達成上述本發明之目的,本案之發明人係提出一種混合式磁碟陣列的設定方法,係包括以下步驟:(1)將一外接式硬碟盒連接至一電子裝置;(2)將至少二硬碟置入該外接式硬碟盒之一硬碟插槽,並完成至少二硬碟序號之設定;(3)判斷該至少二硬碟之容量是否相等,若是,則執行步驟(4),若否,則執行步驟(5);(4)將該些硬碟設為一獨立磁碟冗餘陣列(RAID),並將其中一硬碟所剩餘的硬碟容量設定為一般邏 輯磁區;以及(5)將該些硬碟設為一獨立磁碟冗餘陣列(RAID)。 Therefore, in order to achieve the above object of the present invention, the inventors of the present invention have proposed a method for setting a hybrid disk array, comprising the steps of: (1) connecting an external hard disk case to an electronic device; (2) Inserting at least two hard disks into one of the hard disk slots of the external hard disk case, and completing setting of at least two hard disk numbers; (3) determining whether the capacity of the at least two hard disks is equal, and if yes, performing the steps ( 4) If not, perform step (5); (4) set the hard disks to a redundant array of independent disks (RAID), and set the remaining hard disk capacity of one of the hard disks to a general logic And (5) set the hard disks as a redundant array of independent disks (RAID).

〔習知〕 [study]

2’‧‧‧電腦 2’‧‧‧ computer

3’‧‧‧外接式硬碟盒 3'‧‧‧External hard disk box

31’‧‧‧第一硬碟 31’‧‧‧First hard drive

32’‧‧‧第二硬碟 32’‧‧‧ Second hard drive

33’‧‧‧高速傳輸纜線 33’‧‧‧High speed transmission cable

311’‧‧‧無法利用之硬碟容量 311’‧‧‧ Unusable hard disk capacity

〔本發明〕 〔this invention〕

2‧‧‧電子裝置 2‧‧‧Electronic devices

3‧‧‧外接式硬碟盒 3‧‧‧External hard disk box

31‧‧‧硬碟 31‧‧‧ Hard disk

32‧‧‧硬碟 32‧‧‧ Hard disk

33‧‧‧高速傳輸纜線 33‧‧‧High speed transmission cable

S01~S07‧‧‧方法步驟 S01~S07‧‧‧ method steps

S08~S10‧‧‧方法步驟 S08~S10‧‧‧ method steps

S091~S092‧‧‧方法步驟 S091~S092‧‧‧ method steps

S101~S102‧‧‧方法步驟 S101~S102‧‧‧ method steps

第一圖係外接式硬碟之使用示意圖;第二圖係電腦系統視窗之畫面圖;第三圖係電腦系統視窗之畫面圖;第四A圖係RAID技術的架構圖;第四B圖係RAID技術的架構圖;第五A圖與第五B圖係本發明之一種混合式磁碟陣列的設定方法的流程圖;第六A圖與第六B圖係外接式硬碟之使用示意圖;第七圖係混合式RAID模式下的系統視窗之畫面圖;第八圖係一般RAID模式下的系統視窗之畫面圖;第九圖係該混合式磁碟陣列的設定方法的補強方法的流程圖;以及第十圖係該混合式磁碟陣列的設定方法的補強方法的流程圖。 The first picture is a schematic diagram of the use of an external hard disk; the second picture is a picture of a computer system window; the third picture is a picture of a computer system window; the fourth picture is a structural diagram of a RAID technology; the fourth picture B is a system diagram; FIG. 5A and FIG. 5B are flowcharts showing a method for setting a hybrid disk array according to the present invention; and FIGS. 6A and 6B are schematic diagrams showing the use of an external hard disk; The seventh picture is a screen view of the system window in the hybrid RAID mode; the eighth picture is a picture view of the system window in the general RAID mode; the ninth picture is a flow chart of the reinforcing method of the setting method of the hybrid disk array; And the tenth figure is a flowchart of a reinforcing method of the setting method of the hybrid disk array.

為了能夠更清楚地描述本發明所提出之一種混合式磁碟陣列的設定方法,以下將配合圖式,詳盡說明本發明之實施例。 In order to more clearly describe the method of setting a hybrid disk array proposed by the present invention, an embodiment of the present invention will be described in detail below with reference to the drawings.

請參閱第五A圖與五B圖,係本發明之一種混合式磁碟陣列的設定方法的流程圖;並請同時參閱第六A圖與第六B圖,係外接式硬碟之使用示意圖。本發明之混合式磁碟陣列的設定方法包括基本的10個步驟如下:該混合式磁碟陣列的設定方法首先執行步驟(S01)與步驟(S02),將一外接式硬碟盒3連接至一電子裝置2,並將一硬碟31置入該外接式硬碟盒3之一硬碟插槽;其中,第六A圖所示之電子裝置2為一筆記型電腦,但不受限於此,於實際應用時,電子裝置2亦可為一嵌入式電子裝置、一機上盒(set-top box,STB)、一多媒體播放器、一工業電腦、或一電腦主機。且,第六A圖所示,外接式硬碟盒3係透過一高速傳輸纜線33而連接至該電子裝置2,該高速傳輸纜線33可為一USB 3.0纜線、一SATA纜線、一USB 2.0纜線、一Thunderbolt纜線、或一網路線。然而,於此並不限於以高速傳輸纜線33而連接該電子裝置2與該外接式硬碟盒3,於實際應用時,亦可透過無線傳輸方式使得外接式硬碟盒3連接溝通該電子裝置2。 Please refer to FIG. 5A and FIG. 5B, which are flowcharts of a method for setting a hybrid disk array according to the present invention; and also refer to FIG. 6A and FIG. 6B, which are schematic diagrams of using an external hard disk. . The method for setting the hybrid disk array of the present invention comprises the following basic steps: The setting method of the hybrid disk array first performs steps (S01) and (S02) to connect an external hard disk case 3 to An electronic device 2, and a hard disk 31 is placed in a hard disk slot of the external hard disk case 3; wherein the electronic device 2 shown in FIG. 6A is a notebook computer, but is not limited thereto. Therefore, in actual application, the electronic device 2 can also be an embedded electronic device, a set-top box (STB), a multimedia player, an industrial computer, or a computer host. Moreover, as shown in FIG. 6A, the external hard disk case 3 is connected to the electronic device 2 through a high-speed transmission cable 33, and the high-speed transmission cable 33 can be a USB 3.0 cable, a SATA cable, A USB 2.0 cable, a Thunderbolt cable, or a web route. However, the present invention is not limited to connecting the electronic device 2 and the external hard disk case 3 with the high-speed transmission cable 33. In actual application, the external hard disk case 3 can also be connected to communicate with the electronic device through wireless transmission. Device 2.

繼續地,該方法流程係執行步驟(S03)以判斷是否前一步驟之該硬碟已設有硬碟序號。若置入外接式硬碟盒3之硬碟31已被編設有硬碟序號,則方法流程便可自動地繼續執行步驟(S05);反之,若硬碟31尚未編有 硬碟序號,則可能該硬碟31為尚未使用過的新硬碟,必須透過(S04)設定該硬碟31之一第一硬碟序號。並且,在確認置入外接式硬碟盒3之硬碟31已編設有其所屬的硬碟序號之後,接著,該方法流程係執行步驟(S05),判斷是否另一硬碟被置入該外接式硬碟盒3之另一硬碟插槽。 Continuing, the method flow performs the step (S03) to determine whether the hard disk of the previous step has been provided with a hard disk serial number. If the hard disk 31 placed in the external hard disk box 3 has been programmed with a hard disk number, the method flow can automatically continue the step (S05); otherwise, if the hard disk 31 is not yet programmed For the hard disk serial number, the hard disk 31 may be a new hard disk that has not been used yet. The first hard disk serial number of the hard disk 31 must be set by (S04). Further, after confirming that the hard disk 31 placed in the external hard disk case 3 has been programmed with the hard disk number to which it belongs, the method flow proceeds to step (S05) to determine whether another hard disk is placed in the hard disk. Another hard disk slot of the external hard disk case 3.

進一步地,如六B圖所示,若另一硬碟32也被置入外接式硬碟盒3,則同樣地必須確認該硬碟32是否已編設有硬碟序號(步驟(S06));若置入外接式硬碟盒3之硬碟32已被編設有硬碟序號,則方法流程便可自動地繼續執行步驟(S08);反之,若硬碟32尚未編有硬碟序號,則可能該硬碟32為尚未使用過的新硬碟,必須透過(S07)設定該硬碟32之一第二硬碟序號。 Further, as shown in FIG. 6B, if another hard disk 32 is also placed in the external hard disk case 3, it is necessary to confirm whether or not the hard disk 32 has a hard disk number (step (S06)). If the hard disk 32 placed in the external hard disk box 3 has been programmed with a hard disk number, the method flow can automatically continue the step (S08); otherwise, if the hard disk 32 has not been programmed with the hard disk number, Then, the hard disk 32 may be a new hard disk that has not been used yet, and the second hard disk serial number of the hard disk 32 must be set by (S07).

請再同時參閱第七圖與第八圖,係混合式RAID模式下的系統視窗之畫面圖以及一般RAID模式下的系統視窗之畫面圖。於確認外接式硬碟盒3內的兩顆硬碟31、32皆具有其所屬的硬碟序號之後;繼續地,該方法流程係執行步驟(S08),判斷是否兩顆硬碟的容量不相等,若是,則會透過步驟(S09)以執行混合式獨立磁碟冗餘陣列(RAID)模式;在混合式RAID模式下,兩顆硬碟會被設為一獨立磁碟冗餘陣列(RAID),此時,在該電子裝置2(即,筆記型電腦)的系統視窗畫面上,則會顯示 一顆RAID硬碟(即第七圖所示的硬碟Back-1(F:));同時,其中一硬碟所剩餘的硬碟容量設定為一般邏輯磁區,並於該電子裝置2(即,筆記型電腦)的系統視窗畫面上,則會顯示一顆一般磁區硬碟。如此,即完成混合式RAID模式的自動設定。 Please refer to the seventh and eighth diagrams at the same time, which is the screen view of the system window in the hybrid RAID mode and the screen view of the system window in the general RAID mode. After confirming that the two hard disks 31 and 32 in the external hard disk case 3 have the hard disk serial number to which they belong, the method flow proceeds to step (S08) to determine whether the capacities of the two hard disks are not equal. If yes, the hybrid independent RAID array mode is executed through step (S09); in the hybrid RAID mode, the two hard disks are set to a redundant array of independent disks (RAID). At this time, on the system window screen of the electronic device 2 (ie, the notebook computer), it is displayed. A RAID hard disk (ie, the hard disk Back-1 (F:) shown in Figure 7); at the same time, the hard disk capacity of one of the hard disks is set to a general logical magnetic area, and is in the electronic device 2 ( That is, on the system window screen of the notebook computer, a general magnetic hard disk is displayed. In this way, the automatic setting of the hybrid RAID mode is completed.

另外,若步驟(S08)的判斷式的結果為否,表示外接式硬碟盒3內的兩顆硬碟31、32的容量是相等的,則方法流程會透過步驟(S10)以執行一般的RAID模式;在一般的RAID模式下,如第八圖所示,該電子裝置2(即,筆記型電腦)的系統視窗畫面上僅會顯示一顆RAID硬碟,即,硬碟Back-1(F:)。(特別注意,第七圖與第八圖的系統視窗畫面所顯示的硬碟Back-1(F:)或Back-2(G:),其僅為示範實施例,並非用以限定本發明之混合式磁碟陣列的設定方法的實施態樣。 In addition, if the result of the judgment formula of the step (S08) is NO, indicating that the capacities of the two hard disks 31 and 32 in the external hard disk case 3 are equal, the method flow passes through the step (S10) to perform a general operation. RAID mode; in the general RAID mode, as shown in the eighth figure, only one RAID hard disk, that is, hard disk Back-1, is displayed on the system window of the electronic device 2 (ie, the notebook computer). F:). (Special attention is paid to the hard disk Back-1 (F:) or Back-2 (G:) displayed on the system window screens of the seventh and eighth figures, which are merely exemplary embodiments and are not intended to limit the present invention. An embodiment of a method of setting a hybrid disk array.

然而,在正常的使用狀況下,被置入外接式硬碟盒3內的兩顆硬碟31、32也有可能被取出,因此必須一併考慮任一硬碟自該外接式硬碟盒3被取出時之RAID模式。其中,如第九圖所示的方法流程圖,若該兩顆硬碟被設定為混合式RAID模式(即,處於步驟(S09)的狀況),且任一硬碟於混合式RAID的模式下(步驟(S091))自該外接式硬碟盒3被取出,則本發明之方法透過步驟(S092)將該外接式硬碟盒3內的該硬碟設為該獨立磁碟冗餘陣列 (RAID);而只要使用者又將同一硬碟或者另一硬碟置入外接式硬碟盒3之內(由步驟(S05)判斷),則本發明之方法又會回到步驟(S06),以決定設定為混合式RAID模式或者一般式RAID模式。 However, under normal use conditions, the two hard disks 31, 32 placed in the external hard disk case 3 may also be taken out, so that any hard disk must be considered from the external hard disk case 3 The RAID mode when you remove it. Wherein, the method flow chart shown in FIG. 9 is if the two hard disks are set to the hybrid RAID mode (ie, in the state of step (S09)), and any hard disk is in the hybrid RAID mode. (Step (S091)) is taken out from the external hard disk case 3, and the method of the present invention sets the hard disk in the external hard disk case 3 as the redundant array of independent disks through the step (S092). (RAID); and as long as the user puts the same hard disk or another hard disk into the external hard disk box 3 (determined by the step (S05)), the method of the present invention returns to the step (S06). To decide whether to set to hybrid RAID mode or general RAID mode.

並且,如第十圖所示的方法流程圖,若該兩顆硬碟被設定為一般RAID模式(即,處於步驟(S10)的狀況),且任一硬碟於一般RAID的模式下(步驟(S101))自該外接式硬碟盒3被取出,則本發明之方法透過步驟(S102)將該外接式硬碟盒3內的該硬碟設為該獨立磁碟冗餘陣列(RAID);而只要使用者又將同一硬碟或者另一硬碟置入外接式硬碟盒3之內(由步驟(S05)判斷),則本發明之方法又會回到步驟(S06),以決定設定為混合式RAID模式或者一般式RAID模式。如此,透過第九圖與第十圖所示的方法流程之補強,使得本發明之混合式磁碟陣列的設定方法係趨於完善。 Moreover, as shown in the method flowchart of the tenth figure, if the two hard disks are set to the general RAID mode (that is, in the state of the step (S10)), and any hard disk is in the general RAID mode (steps) (S101)) The external hard disk case 3 is taken out, and the method of the present invention sets the hard disk in the external hard disk case 3 to the independent disk redundant array (RAID) through the step (S102). And as long as the user puts the same hard disk or another hard disk into the external hard disk case 3 (determined by the step (S05)), the method of the present invention returns to the step (S06) to determine Set to hybrid RAID mode or general RAID mode. Thus, the method of setting the hybrid disk array of the present invention tends to be perfected by the reinforcement of the method flow shown in the ninth and tenth diagrams.

如此,藉由上述,本發明所提出的混合式磁碟陣列的設定方法係已經完整且清楚地被揭露,並且,經由上述,吾人可得知本發明係具有下列之優點: Thus, by the above, the setting method of the hybrid disk array proposed by the present invention has been completely and clearly disclosed, and, through the above, we can know that the present invention has the following advantages:

1.本發明之設定方法係應用於外接式硬碟盒之中,當兩顆容量大小不同的硬碟被置入外接式硬碟盒之內時,系統將啟動混合式RAID模式,在混合式RAID模式下,兩顆硬碟會被設為一獨立磁碟冗餘陣列(RAID),且其中一 硬碟所剩餘的硬碟容量設定為一般邏輯磁區;藉此方式的硬碟磁區規劃,可改善習用的RAID模式所造成的硬碟容量之浪費。 1. The setting method of the present invention is applied to an external hard disk case. When two hard disks of different capacities are placed in the external hard disk case, the system will start the hybrid RAID mode in the hybrid mode. In RAID mode, two hard disks are set to a redundant array of independent disks (RAID), and one of them The hard disk capacity remaining on the hard disk is set to the general logical magnetic area; the hard disk magnetic area planning in this way can improve the waste of the hard disk capacity caused by the conventional RAID mode.

2.承上述第1點,此外,若置入外接式硬碟盒內的兩顆硬碟的容量是相等的,則本發明之設定方法會將該兩顆硬碟設定為一般的RAID模式。 2. In accordance with the first point described above, if the capacities of the two hard disks placed in the external hard disk case are equal, the setting method of the present invention sets the two hard disks to a normal RAID mode.

3.承上述第1點,再者,本發明之設定方法係於硬碟盒內的RAID chip中實現,因此不受限於任何連接介面,例如:USB連接介面、SATA連接介面、Thunderbolt連接介面、或(有線/無線)網傳輸介面;因此,係可在不增加硬體成本的前提下,達到不同大小的硬碟空間皆可被充分利用之結果;如此,使用者欲透過磁碟陣列(RAID)進行資料被份時,可不必擔心RAID模式會對兩顆不同大小硬碟造成硬碟容量浪費之情事。 3. According to the first point above, the setting method of the present invention is implemented in a RAID chip in a hard disk box, and thus is not limited to any connection interface, for example, a USB connection interface, a SATA connection interface, and a Thunderbolt connection interface. Or (wired/wireless) network transmission interface; therefore, it is possible to achieve the full use of different sizes of hard disk space without increasing the hardware cost; thus, the user wants to pass through the disk array ( RAID) When you are sharing data, you don't have to worry about the RAID mode being a waste of hard disk capacity for two different hard disks.

上述之詳細說明係針對本發明可行實施例之具體說明,惟該實施例並非用以限制本發明之專利範圍,凡未脫離本發明技藝精神所為之等效實施或變更,均應包含於本案之專利範圍中。 The detailed description of the present invention is intended to be illustrative of the preferred embodiments of the present invention, and is not intended to limit the scope of the invention. In the scope of patents.

S01~S07‧‧‧方法步驟 S01~S07‧‧‧ method steps

S08~S10‧‧‧方法步驟 S08~S10‧‧‧ method steps

Claims (10)

一種混合式磁碟陣列的設定方法,係包括以下步驟:(1)將一外接式硬碟盒連接至一電子裝置;(2)將至少二硬碟置入該外接式硬碟盒之一硬碟插槽,並完成至少二硬碟序號之設定;(3)判斷該至少二硬碟之容量是否相等,若是,則執行步驟(4),若否,則執行步驟(5);(4)將該些硬碟設為一獨立磁碟冗餘陣列(RAID),並將其中一硬碟所剩餘的硬碟容量設定為一般邏輯磁區;以及(5)將該些硬碟設為一獨立磁碟冗餘陣列(RAID)。 A method for setting a hybrid disk array includes the steps of: (1) connecting an external hard disk case to an electronic device; and (2) placing at least two hard disks into the external hard disk case. a disc slot, and completing the setting of at least two hard disk serial numbers; (3) determining whether the capacity of the at least two hard disks is equal; if yes, performing step (4); if not, performing step (5); (4) The hard disks are set as a redundant array of independent disks (RAID), and the hard disk capacity of one of the hard disks is set to a general logical magnetic zone; and (5) the hard disks are set as an independent Redundant Array of Disks (RAID). 如申請專利範圍第1項所述之混合式磁碟陣列的設定方法,其中,該步驟(2)係包括以下詳細步驟:(21)將一硬碟置入該外接式硬碟盒之一硬碟插槽;(22)判斷是否前一步驟之該硬碟已設有一第一硬碟序號,若是,則執行步驟(24),若否,則執行步驟(23);(23)設定該硬碟之該第一硬碟序號;(24)判斷是否另一硬碟被置入該外接式硬碟盒之另一硬碟插槽,若是,則執行步驟(25),若否,則重複執行步驟(24); (25)判斷是否前一步驟之該硬碟已設有一第二硬碟序號,若是,則執行該步驟(3),若否,則執行步驟(26);以及(26)設定該硬碟之該第二硬碟序號。 The method for setting a hybrid disk array according to claim 1, wherein the step (2) comprises the following detailed steps: (21) placing a hard disk into the hard disk of the external hard disk case. a disc slot; (22) determining whether the hard disk of the previous step has a first hard disk number, and if so, performing step (24); if not, performing step (23); (23) setting the hard The first hard disk serial number of the disc; (24) determining whether another hard disk is placed in another hard disk slot of the external hard disk box, if yes, executing step (25), if not, repeating Step (24); (25) determining whether the hard disk of the previous step has a second hard disk number, and if so, performing step (3), if not, performing step (26); and (26) setting the hard disk The second hard disk serial number. 如申請專利範圍第2項所述之混合式磁碟陣列的設定方法,更包括接續於該步驟(4)之後的下列步驟:(41)判斷是否兩硬碟之其一硬碟被抽離該外接式硬碟盒,若是,則執行步驟(42),若否,則執行步驟(4);以及(42)將該外接式硬碟盒之內的該硬碟設為該獨立磁碟冗餘陣列(RAID),並執行該步驟(24)。 The method for setting a hybrid disk array according to claim 2, further comprising the following steps after the step (4): (41) determining whether a hard disk of the two hard disks is extracted from the hard disk. An external hard disk case, if yes, performing step (42), if not, performing step (4); and (42) setting the hard disk in the external hard disk case to the independent disk redundancy Array (RAID) and perform this step (24). 如申請專利範圍第3項所述之混合式磁碟陣列的設定方法,更包括接續於該步驟(5)之後的下列步驟::(51)判斷是否兩硬碟之其一硬碟被抽離該外接式硬碟盒,若是,則執行步驟(52),若否,則執行該步驟(5);以及以及(52)將該外接式硬碟盒之內的該硬碟設為該獨立磁碟冗餘陣列(RAID),並執行該步驟(5)。 The method for setting a hybrid disk array according to claim 3, further comprising the following steps after the step (5): (51) determining whether a hard disk of the two hard disks is removed The external hard disk case, if yes, performing step (52), if not, performing the step (5); and (52) setting the hard disk in the external hard disk case to the independent magnetic Redundant array of disks (RAID) and perform this step (5). 如申請專利範圍第1項所述之混合式磁碟陣列的設定方法,其中,當完成步驟(4)之後,則該電子裝置之系統視窗會顯示兩顆卸除式硬碟裝置。 The method for setting a hybrid disk array according to claim 1, wherein, after the step (4) is completed, the system window of the electronic device displays two removable hard disk devices. 如申請專利範圍第1項所述之混合式磁碟陣列的設定方法,其中,當完成步驟(5)之後,則該電子裝置之系統視窗會顯示一顆卸除式硬碟裝置。 The method for setting a hybrid disk array according to claim 1, wherein, after the step (5) is completed, the system window of the electronic device displays a removable hard disk device. 如申請專利範圍第1項所述之混合式磁碟陣列的設定方法,其中,該外接式硬碟盒係透過一高速傳輸纜線而連接至該電子裝置。 The method of setting a hybrid disk array according to claim 1, wherein the external hard disk case is connected to the electronic device through a high speed transmission cable. 如申請專利範圍第1項所述之混合式磁碟陣列的設定方法,其中,該高速傳輸纜線可為下列任一種:USB 3.0纜線、SATA纜線、USB 2.0纜線、Thunderbolt纜線、與網路線。 The method for setting a hybrid disk array according to claim 1, wherein the high speed transmission cable can be any of the following: a USB 3.0 cable, a SATA cable, a USB 2.0 cable, a Thunderbolt cable, With the network route. 如申請專利範圍第1項所述之混合式磁碟陣列的設定方法,其中,該外接式硬碟盒係透過無線傳輸方式而連接至該電子裝置。 The method of setting a hybrid disk array according to claim 1, wherein the external hard disk case is connected to the electronic device by wireless transmission. 如申請專利範圍第1項所述之混合式磁碟陣列的設定方法,其中,該電子裝置可為下列任一種:嵌入式電子裝置、機上盒(set-top box,STB)、多媒體播放器、工業電腦、電腦主機、與筆記型電腦。 The method for setting a hybrid disk array according to claim 1, wherein the electronic device can be any of the following: an embedded electronic device, a set-top box (STB), a multimedia player. , industrial computers, computer mainframes, and notebook computers.
TW102108015A 2013-03-07 2013-03-07 Hybrid setting method for disk array TW201435578A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW102108015A TW201435578A (en) 2013-03-07 2013-03-07 Hybrid setting method for disk array

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW102108015A TW201435578A (en) 2013-03-07 2013-03-07 Hybrid setting method for disk array

Publications (1)

Publication Number Publication Date
TW201435578A true TW201435578A (en) 2014-09-16

Family

ID=51943355

Family Applications (1)

Application Number Title Priority Date Filing Date
TW102108015A TW201435578A (en) 2013-03-07 2013-03-07 Hybrid setting method for disk array

Country Status (1)

Country Link
TW (1) TW201435578A (en)

Similar Documents

Publication Publication Date Title
CN102209952B (en) Storage system and method for operating storage system
US7653781B2 (en) Automatic RAID disk performance profiling for creating optimal RAID sets
WO2017190578A1 (en) Hard disk data wiping method, server and system
JP6476932B2 (en) Storage device, control program, storage system, and data transfer method
TWI384361B (en) Hard disk system state monitoring method
JP2007213721A (en) Storage system and control method thereof
JP5853734B2 (en) Virtual storage device, control device, and control program
US9792048B2 (en) Identifying disk drives and processing data access requests
JP2010282608A (en) Method and apparatus for controlling data volume creation in data storage system with dynamic chunk allocation capability
US9535619B2 (en) Enhanced reconstruction in an array of information storage devices by physical disk reduction without losing data
US20190079686A1 (en) Thin provisioning using cloud based ranks
US10621059B2 (en) Site recovery solution in a multi-tier storage environment
TW201447876A (en) Method and system for converting partition format
JP6464874B2 (en) Storage control device, storage device, and storage control program
JP2014519062A (en) Storage system and logical unit management method thereof
CN105700817A (en) Just Bunch of Discs JBOD apparatus
JP6011125B2 (en) Storage device and storage system
WO2016132572A1 (en) Data placement device and data placement method
TW201435578A (en) Hybrid setting method for disk array
JP6361390B2 (en) Storage control device and control program
US20130031320A1 (en) Control device, control method and storage apparatus
KR20110103660A (en) Apparatus and method for recording raid of optical disc drive
JP6399755B2 (en) Mirroring apparatus and control method thereof
WO2015196820A1 (en) Method and apparatus for creating jbod file system
US10162531B2 (en) Physical allocation unit optimization