TW201104419A - A method of capacity planning, a method of reading and a method of accessing revision of physical storage device therefore - Google Patents

A method of capacity planning, a method of reading and a method of accessing revision of physical storage device therefore Download PDF

Info

Publication number
TW201104419A
TW201104419A TW98124332A TW98124332A TW201104419A TW 201104419 A TW201104419 A TW 201104419A TW 98124332 A TW98124332 A TW 98124332A TW 98124332 A TW98124332 A TW 98124332A TW 201104419 A TW201104419 A TW 201104419A
Authority
TW
Taiwan
Prior art keywords
disk
capacity
storage device
physical storage
extension table
Prior art date
Application number
TW98124332A
Other languages
Chinese (zh)
Inventor
Kuo-Wei Huang
Chih-Wei Wang
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 TW98124332A priority Critical patent/TW201104419A/en
Publication of TW201104419A publication Critical patent/TW201104419A/en

Links

Landscapes

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

Abstract

A method of capacity planning, a method of reading and a method of accessing revision of physical storage device therefore. When the computer booting, the computer plans the capacity of the physical storage device. The capacity planning method comprises the steps. Finding the physical storage device that connect to the computer. If the physical storage device larger than a disk maxima capacity, setting up a current disk according to a limit capacity value in the physical storage device. Setting all parameters of a logical disk parameter extend table of the current disk. The surplus capacity of the physical storage device divides to the plurality of fix disks, and setting all parameters of a logical disk parameter extend table of the fix disks. Repeating the said steps, until the surplus capacity of the physical storage device less than the disk maxima capacity.

Description

201104419 六、發明說明: 【發明所屬之技術領域】 一種計算機儲存裝置的容量管理方法,特別有關於一種儲存 裝置的容量規劃方法及其存取方法。 【先前技術】 由於科技的快速發展,使得計算機裝置的各項周邊也隨著成 長。特別是儲存裝置的容量與體積。過去儲存裝置的容量是以 Kilobyte記量’演變到現在已經以Terabyte記量,換句話說儲 存裝置的谷量變化率已超過10000000倍。為能管理儲存裝置的 儲存空間,因此各儲存設備的廠商合作定義了一主要開機記錄 (Master Boot Master,簡稱MBR)的規範。mbr通常被設置於儲 存设備的第一磁區,藉以提供計算機裝置識別該儲存設備的相關 資料。 當计算機裝置的開機時,首先基本輸入/輸出系統(Basic Input/Omput System ’ 簡稱 BI0S)會運行過電自檢(p〇wer 〇n Sdf Test ’簡稱POST)。BIOS透過POST用以確認所連接的各項周邊 设備疋否正常。接著’ BIOS才會開始確認儲存設備的mbr的資 料。在儲存設備的第0面、第〇執、第1磁區的MBR,其係為 512 Bytes大小的磁區空間。mbr所儲存的資訊可以分成三個部 刀’其係分別為程式區(B〇〇t Partition Loader ; BPL,或者是Pre-Loadei·、Pre-B〇〇t)、資料區(Partiti〇n Data)與驗證區(Verify201104419 VI. Description of the Invention: [Technical Field of the Invention] A method for managing a capacity of a computer storage device, and more particularly to a method for capacity planning of a storage device and an access method thereof. [Prior Art] Due to the rapid development of technology, the periphery of computer devices has also grown. In particular, the capacity and volume of the storage device. In the past, the capacity of storage devices has evolved from Kilobyte's to now counted in Terabyte. In other words, the rate of change in the storage device has exceeded 10 million times. In order to manage the storage space of the storage device, the manufacturer of each storage device cooperates to define a specification of a Master Boot Master (MBR). The mbr is typically disposed in a first magnetic zone of the storage device to provide information associated with the computer device to identify the storage device. When the computer device is turned on, the basic input/output system (BI0S) will run a self-test (p〇wer 〇n Sdf Test). The BIOS uses POST to confirm whether the connected peripheral devices are normal. Then the BIOS will start to confirm the mbr of the storage device. The MBR of the 0th, 3rd, and 1st magnetic regions of the storage device is a magnetic space of 512 Bytes. The information stored in mbr can be divided into three parts: 'B〇〇t Partition Loader; BPL, or Pre-Loadei·, Pre-B〇〇t), and data area (Partiti〇n Data) ) and verification area (Verify

Data) ° 程式區儲存在OOOh到iBDh,共446 Bytes的磁區範圍中。 201104419 程式區主要是負責載入作業系統分割區的啟動磁區(B〇〇t Sector)。然後,再將計算機裝置控制權交給啟動磁區,繼續載 入作業系統的開機過程。 資料區儲存在IBEh到lFDh,共64 Bytes的磁區範圍中。 而在這64 Bytes範圍中可劃分成四個區域,用以儲存四個硬碟分 割區的資料。這也就是為什麼在使用Fdisk等程式在規劃硬碟分 割區的時候’最多只能規劃四個主要分割磁區(prima^ # Partiti〇n),或者是三個主要分割磁區和一個擴充分割磁區 (Extended Partition)的原因。 驗證區儲存在lFEh到IFFh的2 Bytes範圍巾。驗證區是以 「5祖」的字串數值來標記、驗證從〇_到1FFh整個磁區範 圍的資料是否為MBR磁區。 在MBR的規範下,計算機裝置僅可以對2 Terabyte(其計算 方式為 446+64+2=512 Bytes,,512 = 2 Terabyte)以下的儲存裝Data) ° The program area is stored in the range of OOOh to iBDh with a total area of 446 Bytes. 201104419 The program area is mainly responsible for loading the boot sector (B〇〇t Sector) of the operating system partition. Then, the computer device control is given to the boot sector, and the boot process of the operating system is continued. The data area is stored in the IBEh to lFDh range of 64 Bytes. In the 64 Bytes range, it can be divided into four areas for storing data in four hard disk partitions. This is why when planning a hard disk partition using a program such as Fdisk, you can only plan up to four main split magnetic regions (prima^ #Partiti〇n), or three main split magnetic regions and one extended split magnetic field. The reason for the Extended Partition. The verification area is stored in the 2 Bytes range of lFEh to IFFh. The verification area is marked with the string value of "5 ancestors", and it is verified whether the data of the entire magnetic domain range from 〇_ to 1FFh is the MBR magnetic area. Under the MBR specification, the computer device can only store 2 Terabytes (its calculation method is 446+64+2=512 Bytes, 512 = 2 Terabyte).

置進行存取。請參考「第1圖」所示,其係為習知技術之磁碟參 數设定流程示意圖。習知技術包括以下步驟: 步驟S110.檢測是否為最後一個通訊匯流排; 步驟測·若不為最後-個通簡流排時,臟測此一通訊 匯流排中是否有連接實體儲存褒置; 步驟S131.設定磁碟參數延伸表; 步驟sm.設定實體儲存裳置的磁碟編號; 步驟S133.修改計算機裝置中的BI〇s 之資料區域的磁碟數 量值;以及 201104419 步驟S134.執行磁碟辨識程序,用以決定兮 貫體儲存裝置的 谷置,重複步驟sm直至完成所有通訊匯流排 與其連接的實體儲存裝置為止。 若是大於2 Terabyte白勺實體儲存裝置連接於計算機 則計算機裝置無法對實體贿裝置超容量上限之以 機磁區魏置,進而影響對實體儲存裝置之存取的動::、::: 能讓計算機裝置能夠存取超過容量上限的實體儲存妒置戶° '二 要重新更換刪。但是對於廠商而言,更換m〇s 1二= 成本。除^要變更BIOS外,也要有作業系統的配合。對於%位 福作業祕而言,超過2 Terabytes的實體儲存I置仍會出現無 法正常存取的問題。 【發明内容】 馨於以上關題,本發明的主要目的在於提供1儲 的容量規财法。料算機裝置在啟動過財, 算 裝置中連謝_峨,貞輯軸槪 量大於最大補容㈣’财實體儲純置中的未分财量依序 規劃至少-_,直簡齡量小於最大綱容量為止。 為達上述目的,本發明所揭露之儲存裝置的容量 括下列步驟: 步驟H倾齡輕中之未分财量技讀最大磁碟 谷量; 步驟b.田實^儲存裝置之未分割容量大於最大磁碟容量時, J字定位心標所指定的起始位址為基準在實體儲存 201104419 裝置中劃分出當前磁碟; 步驟C.取得當前磁碟的磁碟容量設定值·Set to access. Please refer to the "Figure 1", which is a schematic diagram of the disk parameter setting process of the prior art. The conventional technology includes the following steps: Step S110. Detect whether it is the last communication bus; Step measurement · If it is not the last-one-pass flow, it is dirty to detect whether there is a connected entity storage device in the communication bus; Step S131. Set a disk parameter extension table; Step sm. Set the disk number of the physical storage slot; Step S133. Modify the disk number value of the data area of BI〇s in the computer device; and 201104419 Step S134. Perform magnetic The disc identification program is used to determine the valley of the storage device, and repeats the step sm until all communication busbars are connected to the physical storage device connected thereto. If the physical storage device of more than 2 Terabyte is connected to the computer, the computer device cannot set the upper limit of the excess capacity of the physical bribe device, thereby affecting the access to the physical storage device::, ::: Can The computer device can access the physical storage device that exceeds the upper limit of the capacity. But for the manufacturer, replace m〇s 1 2 = cost. In addition to changing the BIOS, there must be a cooperation with the operating system. For the % job security secret, more than 2 Terabytes of physical storage I will still have problems with normal access. SUMMARY OF THE INVENTION In order to solve the above problems, the main object of the present invention is to provide a capacity regulation method for storage. The computer device is activated in the financial operation, and the device is connected to the 峨 峨 峨 峨 贞 贞 贞 贞 贞 大于 大于 大于 四 四 四 四 四 四 四 四 四 四 四 四 四 四 四 四 四 四 四 四 四 四 四 四 四 四 四 四 四 四 四 四 四Less than the maximum outline capacity. In order to achieve the above objective, the capacity of the storage device disclosed in the present invention comprises the following steps: Step H: The amount of undivided amount of the maximum amount of disk volume in the gradual change; Step b. The undivided capacity of the storage device is greater than For the maximum disk capacity, the starting address specified by the J-word positioning heartmark is used as the reference to divide the current disk in the physical storage 201104419 device; Step C. Obtain the disk capacity setting value of the current disk.

步驟d.將實雜存裝置的磁碟參數延伸表(FDpT extension table)之内容複_當前鱗的賴_參數延伸表 (logical FDPT extensi〇n table)中; 步驟e.修改補參數延伸表巾_碟編號,細錄改後的 磁碟參數延伸表的磁碟編賴寫賴鱗參數延伸 表中的磁碟編號; 4 f.修改5丨异機裝置中的BI〇s之資料區域即〇s D血 Area)的磁碟數量值; 步驟g.執行磁碟辨識程序(Ide鱗c_and),用以 在實體儲存裝置中_出—個大小為磁碟容量設定 值的當前磁碟;以及 步驟h·當實體儲存裝置之_容量大於最大磁碟容量時,則 將定位沾移至切磁碟的結束錄後並重複步驟a 至步驟h。 當完成所聰的通簡流射的實體儲存裝置後,本發明會 體錯存裝置為止 娜㈣職置及該實 ⑽L Γ否超過最大磁碟容量之侧處理,直至絲所有實 =發明的另—無,本發賴出—種細上述容量規劃 磁碟容量之讀轉正方法, 的 藉以讀取出該磁碟正確的容量 述目的’本發明所揭露之—種磁碟容 量之讀取方法包 7 201104419 括下列步驟: 判斷是否具有磁碟;以及 當實體儲存裴置中具有磁碟時, 第b號中斷向量的函數48之⑽:叫。_•量蚊值修改 資料觀點,本發_—_上述容量規劃的 糾存取方法,轉齡取該刺起始位址。 步驟 為達上述目的,本發明所揭露之—種資料存取方法包括下列 判斷是否具有磁碟;以及 第置中具有磁碟時,獅磁碟输定值修改 第13號情向m的函數42、函數43、函數44與函數. 本發明提供了-種儲存裝料容量賴方法,在超過最 大磁碟谷量_存裝置巾建立複數個_,細避免計算機裝置 無法使用舰最大網容制未分割容量。 ^施例詳細說 有關本發_特徵與實作,兹配合圖示作最佳實; 明如下。 【實施方式】 清參考「第2圖」所示,其係為本發明之系統架構示意圖。 本發明中係包含-可運行容量規触序的計算機裝置2ig與至少 -實體儲存裝置220。在計算機裝置21〇具有處理單元211、至 v通訊匯流排212與組態唯讀記憶體213(〇pti〇n R〇M)。通訊 匯抓排212係用以連接實體储存裝置22〇,通訊匯流排212的種 類係為.IDE、SATA、SCSI、eSATA、USB、或 IEEE 1394。實 201104419 體儲存裝置22〇除了可以是單一的硬碟外,也可以是由冗餘磁碟 陣列所組成(Redundant Array of IndependemDisks,簡稱咖)的 磁碟裝置。組態唯讀記憶體犯中儲存有容量規劃程序2〗4。而 組態唯頃記憶體213可以設置在外接介面卡中,舉例來說,外接 介面卡可以是冗餘磁碟陣列介面卡或SATA擴充卡。此外,也可 以將組態唯讀記憶體213喊於主機板中,使得計算機裝置21〇 細機的贿(P0ST)過程中,處理單元211可以預先從組態唯Step d. The content of the FDpT extension table of the real memory device is _ the current scale FDPT extensi〇n table; step e. modify the parameter extension table towel _Disc number, the disk number of the disk parameter extension table after the change is recorded. The disk number in the extension table of the scale parameter is written; 4 f. Modify the data area of the BI〇s in the 5 丨 device. s D blood area number of disks; step g. performing a disk discriminating process (Ide scale c_and) for outputting a current disk of a disk capacity setting value in the physical storage device; h·When the capacity of the physical storage device is greater than the maximum disk capacity, the positioning is moved to the end of the cutting disk and steps a to h are repeated. After completing the physical storage device of Shun Cong's simplified flow, the present invention will handle the body of the device (4) and the actual (10) L 超过 whether it exceeds the maximum disk capacity side processing until the wire is all true - None, the present invention relies on a method for reading the capacity of the above-mentioned capacity planning disk capacity, in order to read out the correct capacity of the disk, the invention discloses a disk capacity reading method package disclosed in the present invention. 7 201104419 The following steps are included: judging whether there is a disk; and when there is a disk in the physical storage device, the function 48 of the bth interrupt vector is (10): called. _• Quantitative mosquito value modification data point of view, the ___ above the capacity planning of the access method, the age of the thorn to take the address. In order to achieve the above object, the data access method disclosed in the present invention includes the following method for judging whether or not there is a magnetic disk; and the function of modifying the lion disk input value to modify the 13th emotional direction when the magnetic disk is in the first place. , function 43, function 44 and function. The present invention provides a storage capacity capacity method, in the case of exceeding the maximum disk volume _ storage device towel to establish a plurality of _, to avoid the computer device can not use the ship maximum network capacity system Split capacity. ^Details of the details of the relevant _ characteristics and implementation, together with the diagram for the best real; see below. [Embodiment] As shown in the "Fig. 2", it is a schematic diagram of the system architecture of the present invention. In the present invention, a computer device 2ig and at least a physical storage device 220 are included. The computer device 21 has processing units 211, v communication bus 212 and configuration read only memory 213 (〇pti〇n R〇M). The communication buffer 212 is used to connect to the physical storage device 22, and the communication bus 212 is of the type IDE, SATA, SCSI, eSATA, USB, or IEEE 1394. Actual 201104419 The physical storage device 22 may be a single hard disk or a disk device composed of a Redundant Array of Independem Disks (Calette). The configuration read-only memory is stored in the capacity planning program 2 〖4. The configuration memory 213 can be set in the external interface card. For example, the external interface card can be a redundant disk array interface card or a SATA expansion card. In addition, the configuration read-only memory 213 can also be called in the motherboard, so that during the bribe (P0ST) process of the computer device 21, the processing unit 211 can be pre-configured only from the configuration.

項6己憶體213中存取容量規劃程序叫,藉以對實體儲存裝置 220進行磁碟的規劃作業。 承前述所言 本發明可以應用於單一的實體儲存裝置22〇 外’也可以在多個實體儲存裝置22()中實現。以下先以單一匯产 =與=的實體儲存裝置22G進行容量規劃程序214之運行触 具有财㈣者雜應胁多個倾儲存裝置 置之運作,-^圖」所7F ’其料本發單鱗體儲存裝 連作,係包括以下步驟: 步驟S3H)·判斷所選出的實體儲存裝置中之總容量是否大於 最大磁碟容量; 步驟幻2(^所勒的㈣儲存裝置之總容量大於最大磁碟 容量時’則向此一實體儲存袭置進行容量規副程 序;以及 ,所選_實體齡裝置之總容量小於最大磁碟 谷量時,則向此-實體儲存裝置進行習知的磁碟 參數W程序(請參考習知的磁碟參數設定程序係 201104419 為:步驟S131〜步驟S134)。The access capacity planning program in the item 6 memory 213 is called to perform the disk planning operation on the physical storage device 220. The foregoing invention may be applied to a single physical storage device 22 or may be implemented in a plurality of physical storage devices 22(). In the following, the operation of the capacity planning program 214 is performed by the physical storage device 22G of the single remittance===, and the operation of the multi-pour storage device is performed. The squama storage installation has the following steps: Step S3H) · Determine whether the total capacity in the selected physical storage device is greater than the maximum disk capacity; Step 2 (the total capacity of the storage device is greater than the maximum magnetic In the case of the disc capacity, the capacity regulation subroutine is performed to the physical storage device; and when the total capacity of the selected physical entity device is less than the maximum disk volume, the conventional physical disk is applied to the physical storage device. The parameter W program (refer to the conventional disk parameter setting program 201104419 is: step S131 to step S134).

首先,處理單元211會對該實體儲存裝置22〇判斷其中之未 分割容量是否大於最大磁碟容量(對應步驟S31〇)。在本發明中最 大磁碟容量值係為2 Terabytes。由於實體儲存裝置22〇中劃分出 至少一個以上的磁碟,在此將剩餘未被劃分的空間定義為未分割 容量。換句話說,在本發明中實體儲存裝置22〇中之未分割容量 (△)係指的是將實_存裝置22G之總容量(施LSize)扣掉所有磁 碟的總容量(Disk—Size)後之差值(△= Total_Size_ Disk一別的,其 中η係為磁碟的數量)。 ' 舉例來說’當-個容量5 Terabytes的實體儲存裝置中尚 未切割有任何磁碟時,則該實體儲存裝置220的未分割容量係為 5 。若在該實體儲存裝置220中具有兩個2 Terabytes的 磁碟時,則該實體儲存裝置22_未分割容量係為丨Te卿⑶(1First, the processing unit 211 determines whether the undivided capacity of the physical storage device 22 is greater than the maximum disk capacity (corresponding to step S31). In the present invention, the maximum disk capacity value is 2 Terabytes. Since at least one or more disks are divided in the physical storage device 22, the remaining undivided space is defined herein as the undivided capacity. In other words, the undivided capacity (?) in the physical storage device 22 in the present invention means that the total capacity of the real storage device 22G is deducted from the total capacity of all the disks (Disk-Size). After the difference (△ = Total_Size_ Disk, where η is the number of disks). For example, when there is no disk cut in a physical storage device having a capacity of 5 Terabytes, the undivided capacity of the physical storage device 220 is 5 . If there are two 2 Terabytes disks in the physical storage device 220, then the physical storage device 22_unsegmented capacity is 丨Teqing (3) (1)

、5 2 2)、同時§&合「第4圖」所示,其縣實體儲存裝置中 Ί、未刀1#不思圖。在「第4圖」中係為—個實體儲存裝 置220 ’在實體儲存裝置22〇中另分割有兩個2 丁_卿的磁碟 41卜412 ’因此還剩有〗了⑽卿的未分割容量。5 2 2), at the same time § & "Figure 4", in the county physical storage device, 未, 未刀1# do not think. In the "figure 4", it is a physical storage device 220' in the physical storage device 22, which is further divided into two 2 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ capacity.

接著’判斷實體儲存裝置⑽之未分割容量是否大於最々 2量W應步驟S32G)。针體儲存裝置⑽之未分割容量大戈 量時,麟此―實體儲存裝請進行容量規細 @發种對進仃谷量規劃程序214的磁碟,將其定義J 序έ μ摊考第5圓」聯,其料本發明之容量規劃赛 序叫^辟意圖。容量規難序中更包括町步驟: 201104419 步驟S321.*實體儲存裝置之總容量大於最大 t實體儲純置之未分割空間的起始位址指派-疋位指標(pointer) ·, 步驟sm取得當前__躲量設定值; 步驟S323.^t體儲存農置的磁碟參數延料之内容複製到 當前磁碟的邏輯磁碟參數延伸表中; 步驟S324.修改_參_申表中的_編號,並以修改後 的磁碟參數延伸表的磁碟編號覆寫邏輯磁碟參數 延伸表中的磁碟編號; 步驟S325.修改計算機裝置中的臟之資料區域的磁碟數 量值; 步驟瓶執行__程序,肋在龍儲魏置中規劃 出一個大小為磁碟容量設定值的當前磁碟; 步驟S327判斷實體储存裝置之未分割空間是否仍大於最大 磁碟容量; 步驟咖.當實體儲存裝置之剩餘容量小於最大磁碟容量 時,則重複執行步驟S330 ;以及 步驟S斑當實體儲存裝置之剩餘容量大於最大磁碟容量 時’則將定位指標移至當前磁碟的結束位址之 後’再重複步驟S321至步驟S329。 =在實體儲存裝置挪中並未有任何磁碟時,财位指標直 ^體錯存裝置22〇的起始位址做為基準(定位指標的移動方 K文會有詳述)。同理,在實體儲存裝置220中已存在分割 201104419 的磁碟時’則以未分割空間的起始位址為基準。 接著’處理單it 211會取得當前磁碟欲分割的磁碟容量設定 值。在本發明中磁碟容量設定值的決定可以由使用者自行輸入, 以為-系統預設值。舉例來說,若是由使用者自行輸入磁碟 谷篁設定值時’可以在容量規劃程序214執行前,在螢幕的晝面 上可以呈現-具有輸入攔位的顯示介面,藉以接收使用者所輸入 的磁碟今量设定值。若是以固定的磁碟容量設定值為例,則運行 容=劃程序214時,處理單元211會自動將當前磁碟的切割容 量設定為_容量設定值,換句話說,就是將磁碟容量設定值設_ 為 2 Terabytes ° 接著’處理單元211創建出當前磁碟所屬的邏輯磁碟參數延 伸表。處理單元211再將實體儲存裝置22〇的磁碟參數延伸表之 各欄位内容逐-的複製到邏輯_參數延伸表中,使得磁碟參數 延伸表的内容與邏輯磁碟參數延伸表得以一致。磁碟參數延伸表 的主要目的在於記錄實體儲存裝置22〇的相關硬體參數。其中, 硬體參數包括有:輸入/輸出埠的位址(1/〇 _ _ ad—)、控# 制埠位址(control port address)、中斷向量(IRQ)、磁區數量(败二 count)直接5己憶體存取資訊(dma information)、程式輸入/輸出 資訊(PIO information)、磁碟數量(driver c〇unt)、與硬體規格選項 (Hardware specific option) ° 在步驟S324中主要係針對磁碟數量的欄位進行修改。假設 每-次執行容量規劃程序214時就會新增一個磁碟,因此對磁碟 數量的攔位值進行加總(意即每次累加個數係為”丨”)。同理,若一' 12 201104419 次增加的磁碟數量為n _,縣次會累加n .延伸表中磁碟數量後,會以新的磁碑數|=磁碟參數 .參數延伸表的磁碟數量覆寫。碟數謂當别磁碟的邏輯磁碟 在完成複製邏輯磁碟參數延伸表後,處理單元211 ΒΙ=!Γ域的磁碟數量值進行修改。就_的角度而言, 卻未實體儲存裝置220,對於新規劃的磁碟 ==mos所辨識。所以為了能讓邮s可崎 =ΓΙΓ規劃出的磁碟’因此需要更改邮§的儲存裝 置數i。在本發明中根據磁碟參數延伸表的磁碟數量(係由 產生的磁碟數量)再加”1’’後’把累加值寫入臓之資料 =磁f敝咖物嫩巾輯數量係 =,則寫入刪之資料區域的磁碟數量值係為,,n+1,,。 中所ίΓί,由處理單元211執行磁碟辨識程序。根據步驟S322 2取^前磁碟的磁碟容量設定值,在實體儲存裝置22〇中規 ^中^ _量設定值的#前_。射,磁碟辨識程 關磁區數量、磁頭數量、磁柱數量與硬碟序號等相 ^移_當前磁碟的結尾位址後,藉 乂作為下一個磁碟的容量規劃之起點。 時,存裝置220中的未分割空間仍大於最大磁碟容量 裝置220 μ未分割空間進行步驟⑽〜步 ==s的#前顯,直至軸存裝置則未 刀割二間小於最大磁碟容量為止。 對應步驟S33〇 ··乡是實體儲存裝置22〇之未分割空間小於 13 201104419 碟容量時,則對實體儲存裝置⑽進行習知_碟參數設 在有的容量規劃程序214後,對於實體儲存裝置 220的子^ |進行與磁碟起始位址的修正程序。請參 6A圖」所不’其係為容量查詢修正程序之流程示意圖,該容量 查詢修正程序包括以下步驟: 步驟S610.判斷實體儲存裝置中是否具有磁碟; 步驟驗當實體儲存裝置中具有剌時,軸m號 中斷向量的函數48之[l〇h : 17h];以及 步驟隱執曰行容量查詢程序,透過已修改的第η號中斷向 量取得欲查詢的磁碟之容量。 因為縣實體儲存裝置22()中的刺參數延伸表已被修改 。所以若要對該實體儲存裝置22G查詢其容量因此 進查行修正。若在未修正_下對實體健存裝 θ 订查询,BI0S會_到有與實體儲存裝置220相同容 =的多個_。_述的5 Terabytes實體儲存裝置22g(其係包括 兩個2 Terabytes與-個! Terabytes的磁碟)為例請來考「第 _圖」所示。當以未修正的容量查詢程序對該實體儲存裝置22〇 =篁查詢時’BI0S會根據實體儲存裝置22()的磁碟參數延 所儲存的磁碟數量,並且把「第6B圖」中的第—磁碟6ιι 開始了辦612的起始位址都是從實體儲存裝置220的起始位址 如此-來,臓會把實體儲存裝置22〇中的磁碟誤判成兩 201104419 個谷量為5 Terabytes的第一磁碟611、第二磁碟612,與一個5 Terabytes的未使用空間’凊參考「第6C圖」。因此,當處理單 元211偵測到所欲存取的貫體儲存裝置220中具有經過前述處理 的磁碟611、612時,則處理單元211就會修改第13號中斷向量 (以下簡稱 INT 13)的函數(fUnction)48 之[l〇h : I7h]。INT 13 的函 數48係用以讀取磁區數里的偏移量計算。對此一偏移量的計算 係依據磁碟容量設定值。在INT 13的函數48中另外還有下述存 φ 取參數的描述,請參考表1與表2,其係分別為JNT 13的函數 48之參數與其偏移量之物理意義。 暫存器 AH """----- 48h = function number for extended_read_drive_parameters DL : ------------_ drive index (e.g. 1st HDD = 80h) DS:SI segment:offset pointer to Result Buffer, see below 表1. INT 13的函數48之參數 緩衝區(Result Buffer) offset range size —-—------ Description 00h..01h 2 bytes --------------· size of Result Buffer = 30 = 1 Eh 02h"03h 2 bytes --------—---------- information flags —--^ 15 201104419 04h..07h 4 bytes physical number of cylinders = last index + 1 (because index starts with 0) 08h..0Bh 4 bytes physical number of heads = last index + 1 (because index starts with 0) 0Ch..0Fh 4 bytes physical number of sectors per track = last index (because index starts with 1) 10h..l7h 8 bytes absolute number of sectors = last index + 1 (because index starts with 0) 18h..l9h 2 bytes bytes per sector lAh..lDh 4 bytes optional pointer to Enhanced Disk Drive (EDD) configuration parameters which may be used for subsequent interrupt 13h Extension calls (if supported) 表2. ΙΝΤ 13的函數48中各偏移量 在完成修正的容量查詢程序後,處理單元211對各磁碟查詢 時才會依照各磁碟在實體儲存裝置220中的起始位址開始查詢, 凊參考「第6D圖」。如此一來,才能正確的判斷為兩個2 Terabytes的磁碟6η、612與1 Terabytes的未使用空間。 除了要修正前述的磁碟容量的辨識外,另外還需要對存取位 址進行修正。若以習知的存取方式對磁碟進行存取時,則都是以 實體儲存裝置22G的起始位址做為基準,而不是以每一個磁碟 爪、m的起始位址做為基準(如「第7A圖」所示)。該磁碟起 201104419 始位址修正程序包括以下步驟,並請參考「第7B圖」所示: 步驟S710.判斷實體儲存裝置中是否具有磁碟; 步驟sm當實體儲存裝置中具有磁碟時,則根據磁碟容量 設定值修改INT 13的函數42、函數43、函數44 與函數47 ;以及 步驟S730.執行容量讀取程序,透過已修改的_ 13的取得 欲存取的磁碟之起始位址。 暫存器 ^ AH .一 _ 42h = function number for extended read DL drive index (e.g. 1st HDD = 80h) DS:SI segment: offset pointer to the DAP, see below 表3. INT 13的函數42之參數 磁碟位址封裝(DAP : Disk Address Packet) offset range size Description OOh 1 byte size of DAP = 16 = lOh Olh 1 byte unused, should be zero 02h 1 byte number of sectors to be read, 0..127 (= 7Fh) 17 201104419 03h 1 byte unused, should be zero 04h..07h 4 bytes segment: offset pointer to the memory buffer to which sectors will be transferred 08h..0Fh 8 bytes absolute number of the start of the sectors to be read (1st sector of drive has number 〇) 表4. ΙΝΤ 13的函數42中各偏移量 在經過對存取位址進行修正後,處理單元211就會根據「第Next, it is judged whether or not the undivided capacity of the physical storage device (10) is greater than the maximum amount W (step S32G). When the undivided capacity of the needle storage device (10) is large, the volume of the physical storage is required to be volume-sized. The disk of the seeding plan 214 is defined, and the definition is J. 5 round", it is expected that the capacity planning of the present invention is called the intention. The capacity rule is more difficult to include the town step: 201104419 Step S321. * The total capacity of the physical storage device is greater than the initial address assignment of the undivided space of the maximum t entity storage - the pointer (pointer) ·, step sm The current __ escaping set value; step S323. The contents of the disk storage extension of the storage medium are copied to the logical disk parameter extension table of the current disk; Step S324. Modify _ _ number, and overwrite the disk number in the logical disk parameter extension table with the disk number of the modified disk parameter extension table; Step S325. Modify the disk number value of the dirty data area in the computer device; The bottle executes the __ program, and the rib plans a current disk whose size is the disk capacity setting value in the dragon storage device; step S327 determines whether the undivided space of the physical storage device is still greater than the maximum disk capacity; When the remaining capacity of the physical storage device is less than the maximum disk capacity, step S330 is repeatedly performed; and step S is when the remaining capacity of the physical storage device is greater than the maximum disk capacity, then the positioning indicator is moved to when After the end address of the disk apos step S321 to repeat step S329. = When there is no disk in the physical storage device, the starting address of the financial position indicator is used as the reference (the moving K of the positioning indicator will be detailed). Similarly, when the disk of the partition 201104419 already exists in the physical storage device 220, the start address of the undivided space is used as a reference. Then the processing unit one 211 will obtain the disk capacity setting value to be divided by the current disk. In the present invention, the determination of the disk capacity setting value can be input by the user to be - the system preset value. For example, if the user inputs the disk valley setting value by himself, 'can be presented on the screen surface before the capacity planning program 214 is executed--the display interface with the input block is received, so as to receive the input by the user. The disk volume setting. If the fixed disk capacity setting value is used as an example, when the operation volume=program 214 is executed, the processing unit 211 automatically sets the cutting capacity of the current disk to the _ capacity setting value, in other words, the disk capacity setting. The value _ is 2 Terabytes ° Then the 'processing unit 211 creates a logical disk parameter extension table to which the current disk belongs. The processing unit 211 then copies the contents of each field of the disk parameter extension table of the physical storage device 22 to the logical_parameter extension table, so that the content of the disk parameter extension table is consistent with the logical disk parameter extension table. . The main purpose of the disk parameter extension table is to record the relevant hardware parameters of the physical storage device 22〇. Among them, the hardware parameters include: input/output address (1/〇_ _ ad-), control port address (control port address), interrupt vector (IRQ), number of magnetic regions (failed count Directly 5 Dma information, PIO information, driver c〇unt, and Hardware specific option ° Mainly in step S324 The field is modified for the number of disks. Assume that a new disk is added every time the capacity planning program 214 is executed, so the block value of the number of disks is added (that is, the number of accumulated each time is "丨"). Similarly, if a '12 201104419 times increase the number of disks is n _, the county will accumulate n. After extending the number of disks in the table, the number of new magnetic monuments will be ||disk parameters. The number of discs is overwritten. The number of disks is the logical disk of the disk. After the copy of the logical disk parameter extension table is completed, the value of the disk number of the processing unit 211 ΒΙ=! In terms of _, there is no physical storage device 220 that is recognized for the newly planned disk == mos. Therefore, in order to allow the mail to be ordered, it is necessary to change the number of storage devices i. In the present invention, according to the disk parameter extension table, the number of disks (by the number of disks generated) plus "1" 'after' the accumulated value is written into the data = the number of magnetic f敝 coffee towels =, the value of the number of disks written in the deleted data area is ,, n+1, . . . , the disk discriminating program is executed by the processing unit 211. The disk of the pre-disk is taken according to step S322 2 The capacity setting value is in the physical storage device 22〇, the number of the magnetic field, the number of magnetic heads, the number of magnetic cylinders, the number of magnetic cylinders, and the number of the hard disk. After the end address of the current disk, the borrowing is used as the starting point of the capacity planning of the next disk. When the undivided space in the storage device 220 is still greater than the maximum disk capacity device 220 μ undivided space, step (10) ~ step = = s # 前前, until the axis storage device is not cut, the two rooms are smaller than the maximum disk capacity. Corresponding to step S33 〇 · · 乡 is the physical storage device 22 未 undivided space is less than 13 201104419 disk capacity, then The physical storage device (10) performs the conventional _ disc parameter set in the existing capacity planning program 2 After 14th, the program for correcting the disk start address is performed for the child storage device 220. Please refer to FIG. 6A for the flow chart of the capacity query correction program, and the capacity query correction program includes the following Steps: Step S610. Determining whether the physical storage device has a disk; Step 1 when the physical storage device has 剌, the function of the axis m interrupt vector is 48 [l〇h : 17h]; and the step stealing capacity The query program obtains the capacity of the disk to be queried through the modified nth interrupt vector. Because the thorn parameter extension table in the county entity storage device 22() has been modified. Therefore, if the physical storage device 22G is to be queried for its capacity, it is checked for correction. If the query is made to the physical storage device θ under uncorrected_, the BI0S will be _ to have multiple _s of the same capacity as the physical storage device 220. For example, the 5 Terabytes physical storage device 22g (which includes two 2 Terabytes and one! Terabytes disk) is shown in the example of "Diagram". When the entity storage device 22 〇=篁 queries with the uncorrected capacity query program, the BIOS will extend the number of disks stored according to the disk parameters of the physical storage device 22(), and the "Block 6B" The first disk - the starting address of the 612 is 612 from the starting address of the physical storage device 220. 5 Terabytes' first disk 611, second disk 612, and a 5 Terabytes of unused space '凊 reference to Figure 6C. Therefore, when the processing unit 211 detects the disk 611, 612 having the foregoing processing in the storage device 220 to be accessed, the processing unit 211 modifies the 13th interrupt vector (hereinafter referred to as INT 13). [function] 48 of [l〇h : I7h]. The function 48 of INT 13 is used to read the offset calculation in the number of sectors. The calculation of this offset is based on the disk capacity setting. In the function 48 of INT 13, there is also a description of the following parameters: cf. Tables 1 and 2 are the physical meanings of the parameters of the function 48 of JNT 13 and their offsets, respectively. Register AH """----- 48h = function number for extended_read_drive_parameters DL : ------------_ drive index (eg 1st HDD = 80h) DS:SI segment: Offset pointer to Result Buffer, see below Table 1. Parameter Buffer of function 48 of INT 13 offset range size —-—------ Description 00h..01h 2 bytes ------- -------· size of Result Buffer = 30 = 1 Eh 02h"03h 2 bytes ------------------- information flags —--^ 15 201104419 04h ..07h 4 bytes physical number of cylinders = last index + 1 (because index starts with 0) 08h..0Bh 4 bytes physical number of heads = last index + 1 (because index starts with 0) 0Ch..0Fh 4 bytes physical Number of sectors per track = last index (because index starts with 1) 10h..l7h 8 bytes absolute number of sectors = last index + 1 (because index starts with 0) 18h..l9h 2 bytes bytes per sector lAh..lDh 4 bytes optional pointer to Enhanced Disk Drive (EDD) configuration parameters which may be used for the after interrupt 13h Extension calls (if supported) Table 2. Each offset in function 48 of ΙΝΤ 13 After completing the modified capacity query procedure, processing unit 211 will query each disk in accordance with each disk in physical storage device 220. The start address begins to be queried, see "6D". In this way, it can be correctly judged as the unused space of the two 2 Terabytes disks 6n, 612 and 1 Terabytes. In addition to correcting the aforementioned identification of the disk capacity, it is also necessary to correct the access address. If the disk is accessed by a conventional access method, the starting address of the physical storage device 22G is used as a reference instead of the starting address of each disk claw and m. Benchmark (as shown in Figure 7A). The disk starting from the 201104419 initial address correction procedure includes the following steps, and please refer to "FIG. 7B": Step S710. Determine whether the physical storage device has a disk; Step sm when the physical storage device has a disk, Modifying the function 42, function 43, function 44 and function 47 of the INT 13 according to the disk capacity setting value; and executing the capacity reading program in step S730, obtaining the start of the disk to be accessed through the modified _13 Address. Scratchpad ^ AH . A _ 42h = function number for extended read DL drive index (eg 1st HDD = 80h) DS: SI segment: offset pointer to the DAP, see below Table 3. Parameter disk of function 42 of INT 13 DAP (Disk Address Packet) offset range size Description OOh 1 byte size of DAP = 16 = lOh Olh 1 byte unused, should be zero 02h 1 byte number of sectors to be read, 0..127 (= 7Fh) 17 201104419 03h 1 byte unused, should be zero 04h..07h 4 bytes segment: offset pointer to the memory buffer to which sectors will be transferred 08h..0Fh 8 bytes absolute number of the start of the sectors to be read (1st sector Of drive has number 〇) Table 4. Each offset in function 42 of ΙΝΤ 13 is corrected by the access address, and processing unit 211 is based on

7C圖」向各磁碟711、712的正確的起始位址進行資料的存取。7C" accesses data to the correct start address of each of the disks 711, 712.

請配合「第8Α圖」、「第8Β圖」、「第9Α圖」、「第 9Β圖」、「第9C圖」與「第9D圖」所示,以下係對兩個實體 儲存裝置220將其定義為第一實體儲存裝置921 (其容量為5 Terabytes)與第一實體儲存裝置922 (其容量為3 Terabytes))進行磁 碟的谷量規劃作為解說。其中’在計算機裝置210中具有第一通 訊匯机排91卜第二通訊匯流排912與第三通訊匯流排。第 -通訊匯流排911連接第一實體儲存裝置92卜第二通訊匯流排 912連接有第二實體儲存裝置奶’而第三通訊匯流排阳則無 連接任何實_存裝置22Q,且最大轉容量係為 2 Terabytes, 而磁碟=量設定值也固定為2Terabyt^ 楚說明多個實體儲存裳置22〇之運作流程所以另以 程作為解說’並請配合「第Μ圖」,在辣實體儲存裝 之運作流程包括以下步驟: 18 201104419 步驟S810.判斷是否為最後的通訊匯流排; 步驟S820.若不是最後的通訊匯流排時,則對*、= 所連接的每-實體儲存裝置進行選取此通訊匯流排 步驟S830.判斷所選出的實體儲存裝置 , 最大磁碟容量; 〜容量是否大於 步驟测—當所選出的實體儲存裝置之總容量大於最大 量規劃程 谷量時,則向此一實體儲存裴置進疒六 ’、 參 序;以及 ^ 步驟所選出的實體儲存裝置之總容量小於最大磁碟 谷I時,則向此一實體儲在驻 參數設定程序。嫩一知的磁碟 首先,計异機裝置210在P0ST進行 911中债測出連接有第一實體儲存裝置921=排 實體儲存裝請的總容量超過最大磁碟容量二此 ⑴會對第-實體儲存裝置921進 二因處=早1 個實體储存設備而言,以程懷多 下步驟· 其机程响參考「第8B圖」,其係包括以 步驟S841.當實體儲存裝置之總容量大於最大磁碟容量時, 於實體儲存裝置之未分割空間的起始位址指派一 定位指標; 前磁碟的剌容量分割值; 步驟S843=實體錯存裝置的磁碟參數延伸表之内容複製到 S前磁碟#雜麟參觀伸表中; 201104419 步驟祖修改磁碟參數延伸表中的磁碟編號,並以修改後 的磁碟參數延伸表的磁碟編號覆寫邏輯磁碟參數 延伸表中的磁碟編號; 步驟S845.修改計算機裝置中的BI〇S之資料區域的磁碟數 量值; 步驟S846.執行磁碟辨識程序,用以在實體儲存|置中規劃 出一個大小為磁碟容量分割值的當前磁碟; 步驟S847·躺實_存裝置之未分枝仙大於最大 磁碟容量; 步驟S848.當實體儲存裝置之剩餘容量小於最大磁碟容量 時,則執行步驟S820〜步驟S850 ;以及 步驟S849.當實體儲存裝置之剩餘容量大於最大磁碟容量 時,則將定位指標移至當前磁碟的結束位址之 後’再重複步驟S841至步驟S849。 請配合「第9A圖」,其係為各實體儲存裝置進行容量規劃 運作示意圖。第-實體儲存裝置921在第一次進行容量規劃程序 2M時,係將定位指標指派於實體儲存裝置之未分割空間的起始 位址’並’進行磁碟的容量賴。為方便各磁碟的不同, 因此將此一磁碟定義為第一磁碟931。 再把第-實體儲存裝置奶的磁碟參數延伸表之内容複製到 第磁碟931的邏輯磁碟參數延伸表中,並修改磁碟參數延伸表 中的磁碟編號。在此峰改後_碟參數延伸表_碟編號覆寫 邏輯磁碟參數延伸表中的磁碟編號。接著,修改BI〇s之資料區 20 201104419 域的磁碟數I值。執行磁碟辨識程序,在第一實體儲存裝置奶 中規」出個大小為磁碟容量設定值的第一磁碟州 步驟後,則完成第-磁碟931的設置過程,請參考「成第^ 圖」’其係為第—磁碟示意圖。Please refer to the "8th drawing", "8th drawing", "9th drawing", "9th drawing", "9C" and "9D", the following two pairs of physical storage devices 220 will be It is defined as a description of the volume planning of the disk by the first physical storage device 921 (having a capacity of 5 Terabytes) and the first physical storage device 922 (having a capacity of 3 Terabytes). Wherein 'the computer device 210 has a first communication gateway 91 and a second communication bus 912 and a third communication bus. The first communication bus 911 is connected to the first physical storage device 92, the second communication bus 912 is connected to the second physical storage device milk, and the third communication bus is not connected to any real storage device 22Q, and the maximum transfer capacity is It is 2 Terabytes, and the disk=quantity setting is also fixed to 2Terabyt^. It means that the operation flow of multiple entities is stored in 22〇, so the other is to explain it as a comment and please cooperate with the “Dragonfly” to store in the spicy entity. The operation process of the installation includes the following steps: 18 201104419 Step S810. Determine whether it is the last communication bus; Step S820. If it is not the last communication bus, select each of the connected physical storage devices of *, = The communication busting step S830 determines the selected physical storage device, the maximum disk capacity; whether the capacity is greater than the step measurement - when the total capacity of the selected physical storage device is greater than the maximum amount of the planning process, the storage is performed to the entity When the total capacity of the physical storage device selected by the step 6 is less than the maximum disk valley I, the entity is stored in the resident The number of setup. First, the disk of the first device, the metering device 210 performs the 911 in the P0ST, and the first physical storage device is connected. 921=The total capacity of the physical storage device exceeds the maximum disk capacity. (1) will be - The physical storage device 921 is in the second place=the first one physical storage device, and the process is referred to the “8B”, which includes the total capacity of the physical storage device in step S841. When the maximum disk capacity is greater than the initial address of the undivided space of the physical storage device, a positioning index is assigned; the capacity of the front disk is divided; and step S843=copying the content of the disk parameter extension table of the physical error device To the front of the S disk #杂麟 visit extension table; 201104419 step ancestor modify the disk number in the disk parameter extension table, and overwrite the logical disk parameter extension table with the disk number of the modified disk parameter extension table The disk number in the step; step S845. Modifying the disk number value of the data area of the BI〇S in the computer device; Step S846. Performing a disk discriminating process for planning a size of the disk in the physical storage|centering Capacity The current disk of the value; step S847 · the real device - the unbranched device is greater than the maximum disk capacity; step S848. When the remaining capacity of the physical storage device is less than the maximum disk capacity, then step S820 to step S850; And step S849. When the remaining capacity of the physical storage device is greater than the maximum disk capacity, then moving the positioning indicator to the end address of the current disk, and then repeating steps S841 to S849. Please refer to Figure 9A, which is a schematic diagram of capacity planning for each physical storage device. When the capacity storage program 2M is first performed, the first entity storage device 921 assigns the positioning index to the start address of the undivided space of the physical storage device and performs the capacity of the disk. To facilitate the difference of the respective disks, this disk is defined as the first disk 931. Then, the contents of the disk parameter extension table of the first physical storage device milk are copied to the logical disk parameter extension table of the first disk 931, and the disk number in the disk parameter extension table is modified. After this peak change, the disk parameter extension table_disc number overrides the disk number in the logical disk parameter extension table. Next, modify the disk number I value of the BI〇s data area 20 201104419 domain. Executing the disk discriminating program, after the first disk state step of the first physical storage device milk is set to the disk capacity setting value, the setting process of the first disk 931 is completed, please refer to "Chengdu" ^图"' is the first-disc schematic.

因為在第-實體儲存裝置921中仍有3 Terabytes的容量尚未 規劃里單元2U會持續的對第—實體儲存裝i 921再進 行一= 容量規軸序214,產生容量為2 卿的第二磁碟 93^ β參考「第9C圖」,其係為第二磁碟示意圖。由於,在第 實體儲存襞置921中僅剩1 Terabytes的空間。因此’處理單元 211就會停止對第一實體儲存裝置921的處理。關於第一實體儲 存設備所嶋的1 Terabytes較間,因為計算機裝置21()可以對 其辨。因此,所剩下的1 Terabytes的空間就不需要再進行上述 程序。 接下來,處理單元211會偵測第二通訊匯流排912上的第二 實體儲存裝置922。相同的,在第二實體儲存裝置922中之未使 用谷量大於最大磁碟容量。因此處理單元211會對第二實體儲存 裝置922進行容量規劃程序214,並產生相應的第三磁碟933。 在第二實體儲存装置922中的未使用空間已小於最大磁碟容量, 所以對於第二實體儲存裝置922的容量規劃程序214就此結束, 請參考「第9D圖」’其係為第三磁碟示意圖。 最後’處理單元211向第三通訊匯流排913進行偵測有無連 接實體儲存裝置。因為,第三通訊匯流排913上並無連接任何實 體儲存装置220 ’所以處理單元211將會結束容量規劃程序。 21 201104419 存裝置220 本毛明提供了-種儲存裝置的容量規劃方法,可以在超過最 大磁碟容量_存裝置中建立複數個_,藉以職計算機裝置 210無法使用超過最大_容量_餘容量。這樣可以在不須變 ί硬體的前提下,使得_與作鮮、_能正確的存取實體儲 雖然本發明以前述之較佳實_揭露如上,然其並非用以限 定本發明,任何熟習相像技藝者,在不_本發明之精神和範圍 當可作些許之更動無飾,因此本發明之專娜護範圍須視 本說明書所社申請專利範騎界定者為準。 【圖式簡單說明】 第1圖係為習知技術之磁碟參數設定流程示意圖。 第2圖係為本發明之系統架構示意圖。 第3圖係為本發明於單個實體儲存裝置之運作流程示意圖。 第4圖係為本發明之實體儲存裝置中磁碟與未分割容量示意 圖。 ^ 第5圖係為本發明之容量規難序細概程示意圖。 第6A圖係為本發明之容量查詢修正程序之流程示意圖。 第6B圖係為本發明之具有磁碟的實體儲存裝置之示意圖。 第6C圖係為本發明之錯誤的磁碟容量之示意圖。 第6D圖係為本發明之修正後的磁碟容量之示意圖。 第7A圖係為本發明之磁碟起始位址未修正程序之示意圖。 第7B圖係為本發明之磁魏始位址修正程序之流程示竟 圖。 22 201104419 圆係為本㈣之磁碟起純址已修正料 圖第。认圖係為本發明於多個實體館存裝置之運作Γ程示意 系為本發明之容量規劃程序細項流程示意圖。 圖係為本發明之各實體儲存裝置示意圖。 第9Β圖係為本發明之第一磁碟示意圖。 第9C圖係為本發明之第二磁碟示意圖。 第圖係為本發明之第三磁碟示意圖。 【主要元件符號說明】 210 計算機裝置 211 處理單元 212 通訊匯流排 213 組態唯讀記憶體 214 容量規劃程序 220 實體儲存裝置 411 、 412 磁碟 611 第一磁碟 612 第二磁碟 711 第一磁碟 712 第二磁碟 911 第一通訊匯流排 912 第二通訊匯流排 913 第三通訊匯流排 23 201104419 921 922 931 932 933 第一實體儲存裝置 第二實體儲存裝置 第一磁碟 第二磁碟 第三磁碟Because there is still 3 Terabytes of capacity in the first physical storage device 921, the second physical storage capacity of 2 qing is generated for the first physical storage device 921. Disc 93^β refers to "9C", which is a schematic diagram of the second disk. Since, there is only 1 Terabytes of space left in the first physical storage unit 921. Therefore, the processing unit 211 stops the processing of the first physical storage device 921. Regarding the 1 Terabytes of the first physical storage device, the computer device 21() can distinguish it. Therefore, the remaining 1 Terabytes of space does not require the above procedure. Next, the processing unit 211 detects the second physical storage device 922 on the second communication bus 912. Similarly, the unused volume in the second physical storage device 922 is greater than the maximum disk capacity. The processing unit 211 therefore performs a capacity planning procedure 214 on the second physical storage device 922 and generates a corresponding third disk 933. The unused space in the second physical storage device 922 is already less than the maximum disk capacity, so the capacity planning program 214 for the second physical storage device 922 ends. Please refer to the "9D map", which is the third disk. schematic diagram. Finally, the processing unit 211 detects the presence or absence of the connected physical storage device to the third communication bus 913. Since no physical storage device 220 is connected to the third communication bus 913, the processing unit 211 will end the capacity planning procedure. 21 201104419 Storage device 220 The present invention provides a capacity planning method for a storage device, which can establish a plurality of _ in the maximum disk capacity storage device, and the borrowing computer device 210 cannot use the maximum _ capacity _ remaining capacity. In this way, without having to change the hardware, the _ and the _ can be correctly accessed. Although the present invention is disclosed above, it is not intended to limit the present invention. Those skilled in the art will be able to make some changes without the scope and scope of the present invention. Therefore, the scope of the invention must be determined according to the definition of the patent application. [Simple Description of the Drawing] Fig. 1 is a schematic diagram showing the process of setting the disk parameters of the prior art. Figure 2 is a schematic diagram of the system architecture of the present invention. Figure 3 is a schematic diagram showing the operation of the present invention in a single physical storage device. Figure 4 is a schematic illustration of the magnetic disk and undivided capacity in the physical storage device of the present invention. ^ Figure 5 is a schematic diagram of the capacity schedule of the present invention. Fig. 6A is a schematic flow chart of the capacity inquiry correction program of the present invention. Figure 6B is a schematic diagram of a physical storage device with a disk of the present invention. Figure 6C is a schematic diagram of the erroneous disk capacity of the present invention. Fig. 6D is a schematic diagram of the corrected disk capacity of the present invention. Figure 7A is a schematic diagram of the unmodified program of the disk start address of the present invention. Fig. 7B is a flow chart showing the procedure of the magnetic start address correction procedure of the present invention. 22 201104419 The circular system is the (4) disk from the pure address corrected material. The figure is the schematic diagram of the operation process of the invention in the capacity planning device of the present invention. The drawings are schematic diagrams of various physical storage devices of the present invention. Figure 9 is a schematic view of the first disk of the present invention. Figure 9C is a schematic view of the second disk of the present invention. The figure is a schematic view of a third disk of the present invention. [Description of main component symbols] 210 Computer device 211 Processing unit 212 Communication bus 213 Configuration read-only memory 214 Capacity planning program 220 Physical storage device 411, 412 Disk 611 First disk 612 Second disk 711 First magnetic Disk 712 second disk 911 first communication bus 912 second communication bus 913 third communication bus 23 201104419 921 922 931 932 933 first physical storage device second physical storage device first disk second disk Three disks

24twenty four

Claims (1)

201104419 七、申請專利範圍: 1.韻存裝置的容量軸方法,在—計算機裝置啟紳⑽㈣ , 時對κ贿存裝置進行-磁碟的容量賴,該容量規劃方 法包括有: a•判斷該實體儲存I置之總容量是否大於-最大磁碟容 量; b. 田該只體儲存裝置之總容量大於該最大磁碟容量時,則 • &定位沾指向該實體儲存裝置之未使用空間的-起始位 址; c. 取彳于一當前磁碟的一磁碟容量設定值; d. 將該實_縣置的_郷參數延料(FDPT extension table)之内谷複製_當前磁碟的—邏輯磁碟參數延伸表 (logical FDPTextensiontable)中; :、e·修改該磁碟參數延伸表中的磁碟編號,並根據修改後的 • 該磁碟參數延伸表的磁碟編號覆寫該邏輯磁碟參數延伸表中 的磁碟編號; 、f.修改料算機裝置巾的—基本輸人/輸出祕之資料區 Data Area)的-磁碟數量值; g·執行一磁碟辨識程序(Identify Driver Command),決定 該當前磁碟的該磁碟容量設定值;以及 h.自該實軸存裝置之未分割空間大於該最大磁碟容量 時’則將該定位指標移至該當前磁碟的結束位址後並重複步 驟a至步驟h。 25 201104419 驟 2.如請求項丨所狀鱗裝置量_ 前另包括·· 在步 偵測是否為最後的一通訊匯流排; 播曰最後的該通訊匯流排時,則_每—該通訊匯 排疋否連接該實體儲存裝置;以及 氓 執行步驟a至轉h,直至完成該通籠流排連^二 則 當所選出的該通訊匯流排中存在該實體儲存裝置時, 體儲存裝置為止。 刪該實 其中該最大磁 3.如請求項1所述之儲雜置的容量規劃方法, 碟容量係為2 Terabytes。 ""磁區數量。 請求項丨所述之儲純置的容量規劃方法其中該磁碑參 數延伸表餘含有-_容量、—雜數量、—磁頭數量與 5. 如請求項丨所述之儲存裝置的容量賴方法,其中在步驟e 的修改該磁碟參數延伸表中的磁碟編號中另包括. 對該磁碟參數延伸表的磁碟編號進行累加,並以累加結 果修改該該磁碟參數延伸表中的磁碟編號。 6. -種用於讀取崎求項丨所述之儲存裝置的修正方法,可以 修正對該完祕量關之實_錢置的容量之讀取 該讀取修正方法包括: 满該實體儲存裝置中是否具有該磁碟;以及 當該實,置中具有該些磁碟時、,則以該磁碟容量 設定值修改第13號中斷向量的—函數4k[1Qh:17h]。 26 201104419 種用以存取如請求項1所述之儲存裝置的修正方法,其係 用=修正該完成容量規劃之實體儲存裝置之存取方式,藉以 =儲存設備中取得正確位_資料,該存取修正方法包 判斷該實體儲存裝置中是否具有魏碟;以及 當該實體儲存裝置中具__201104419 VII. Patent application scope: 1. The capacity axis method of the rhyme storage device, when the computer device starts (10) (4), the capacity of the disk is performed on the κ briber device, and the capacity planning method includes: a • judging the Whether the total capacity of the physical storage I is greater than - the maximum disk capacity; b. when the total capacity of the physical storage device is greater than the maximum disk capacity, then & positioning points to the unused space of the physical storage device - starting address; c. taking a disk capacity setting value of a current disk; d. copying the real_counter _ _ parameter parameter extension (FDPT extension table) within the valley copy _ current disk - logical disk parameter extension table (logical FDPTextensiontable); :, e · modify the disk number in the disk parameter extension table, and overwrite the disk number according to the modified disk disk extension table The disk number in the logical disk parameter extension table; f. modify the number of disks in the data area of the basic input/output secret data area; g. execute a disk identification program (Identify Driver Command) Determining the disk capacity setting value of the current disk; and h. when the undivided space of the real axis device is greater than the maximum disk capacity, then moving the positioning indicator to the end address of the current disk And repeat steps a through h. 25 201104419 Step 2. If the request item is in the scale of the scale device _ before the other ·· In the step detection is the last communication bus; when broadcasting the last communication bus, then _ per-the communication疋 连接 连接 连接 连接 连接 连接 连接 连接 连接 连接 连接 连接 连接 连接 连接 连接 连接 连接 连接 连接 连接 连接 连接 连接 连接 连接 连接 连接 连接 连接 连接 连接 连接 连接 连接 连接 连接 连接 连接 连接 连接 连接 连接 连接 连接 连接 连接 连接 连接 连接 连接 连接Delete the real one of the maximum magnetics. 3. The capacity planning method of the miscellaneous storage described in claim 1 has a disc capacity of 2 Terabytes. ""Number of magnetic zones. The capacity planning method of the storage device described in the claim item, wherein the magnetic word parameter extension table includes -_ capacity, - the number of impurities, - the number of heads, and 5. the capacity of the storage device according to the request item, The disk number in the disk parameter extension table is additionally included in the modification of the step e. The disk number of the disk parameter extension table is accumulated, and the magnetic quantity in the disk parameter extension table is modified by the accumulated result. Disc number. 6. A correction method for reading the storage device described in the item , , , , , , , , 读取 读取 读取 读取 读取 读取 读取 读取 读取 读取 读取 读取 读取 读取 读取 读取 读取 读取 读取 读取 读取 读取 读取 读取 读取 读取 读取Whether the device has the disk; and when the disk has the disk, the function 4k[1Qh: 17h] of the 13th interrupt vector is modified with the disk capacity setting value. 26 201104419 A method for modifying a storage device as claimed in claim 1, which uses the method of correcting the access mode of the physical storage device that completes the capacity planning, so that the correct bit_data is obtained in the storage device. The access correction method package determines whether the physical storage device has a Wei disc; and when the physical storage device has __ 量設定值錢第13射斷向#_^顺據細碟谷 與函數47。 心斷心的函數仏函數43、函數44The amount set value is 13th shot to #_^ according to the thin disc valley and function 47. Heart-breaking function 仏 function 43, function 44 2727
TW98124332A 2009-07-17 2009-07-17 A method of capacity planning, a method of reading and a method of accessing revision of physical storage device therefore TW201104419A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW98124332A TW201104419A (en) 2009-07-17 2009-07-17 A method of capacity planning, a method of reading and a method of accessing revision of physical storage device therefore

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW98124332A TW201104419A (en) 2009-07-17 2009-07-17 A method of capacity planning, a method of reading and a method of accessing revision of physical storage device therefore

Publications (1)

Publication Number Publication Date
TW201104419A true TW201104419A (en) 2011-02-01

Family

ID=44813628

Family Applications (1)

Application Number Title Priority Date Filing Date
TW98124332A TW201104419A (en) 2009-07-17 2009-07-17 A method of capacity planning, a method of reading and a method of accessing revision of physical storage device therefore

Country Status (1)

Country Link
TW (1) TW201104419A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI607339B (en) * 2016-12-22 2017-12-01 捷鼎國際股份有限公司 Data storage system?with file locking and unlocking function and method thereof

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI607339B (en) * 2016-12-22 2017-12-01 捷鼎國際股份有限公司 Data storage system?with file locking and unlocking function and method thereof

Similar Documents

Publication Publication Date Title
US10248362B2 (en) Data management for a data storage device
KR101903817B1 (en) Virtual disk storage techniques
US8312554B2 (en) Method of hiding file at data protecting mode for non-volatile memory module, memory controller and portable memory storage apparatus
US9104329B2 (en) Mount-time reconciliation of data availability
US8447915B2 (en) Flash memory device for allocating physical blocks to logical blocks based on an erase count
US8037279B2 (en) Method and system for cross-domain data sharing
TWI351605B (en) Managing bad blocks in flash memory for electronic
US20080172397A1 (en) File management method and information processing device
CN105808163B (en) Method for accessing shingled magnetic recording SMR hard disk and server
US7730358B2 (en) Stress testing method of file system
EP2754052A1 (en) Pooled partition layout and representation
US20130036256A1 (en) Method and apparatus of sanitizing storage device
TW201145022A (en) Virtualization of storage devices
US8015376B2 (en) Methods and systems for management of copies of a mapped storage volume
JPWO2009153982A1 (en) Multiple-partitioned nonvolatile storage device and system
US8255656B2 (en) Storage device, memory controller, and data protection method
US20180004454A1 (en) Implementing scattered atomic i/o writes
US8433847B2 (en) Memory drive that can be operated like optical disk drive and method for virtualizing memory drive as optical disk drive
US20120117367A1 (en) Electronic apparatus and booting method thereof
CN110780807A (en) Controlling performance of solid state drives
JP5962140B2 (en) Program, control method, control apparatus and system
CN109445691B (en) Method and device for improving FTL algorithm development and verification efficiency
US20170344475A1 (en) Efficient pointer swizzling for persistent objects
CN104133640B (en) From the fast quick-recovery of dormancy
US20110153674A1 (en) Data storage including storing of page identity and logical relationships between pages