Nova Patents
JP2005293774A

Control method of disk unit

Abstract

[Subject] In HDD which has only one storage device and does not have huge cache memory, either, data writing of the postscript system by the conversion to a physical block address from a logic block address is realized. [Solution means] It is inspected whether the size of the address mapping table on cache memory is over the threshold value by Step 303. The entry which chose the entry for several appointed minutes by the LRU system by Step 304 when it was over the threshold value, and was chosen at Step 305 is added to a WRITE buffer, and an address mapping table is evacuated on HDD by performing WRITE at Step 309. [Effect] There is an effect which negotiates for WRITE performance by reducing the seek time of the head at the time of WRITE by the present invention. Moreover, it is effective in the ability to build the snapshot which can access the volume of the snapshot which is in the state of the past HDD with access to the volume of the usual HDD allowed. Moreover, the state of HDD at the arbitrary times has an effect which can carry out a rollback by cancelling writing, after performing the writing to HDD. [Selection figure] Fig. 3

Term

No projected expiry on record.

  1. Priority and filed
  2. Published
  3. Today

27 claims: 12 independent, 15 dependent

  1. 1
    In a control method of a disk device including a control unit that transmits and receives commands and data between a storage medium and a host and performs write or read control to the storage medium, the control unit issues a write command from the host. The storage medium so that data can be written by a write-once method when the step of receiving, the step of reading the logical block address included in the write command, and the step of converting the read logical block address to the physical block address of the storage medium. The step of converting the unused area of the physical block address to the next physical block address of the most recently written physical block address, the step of writing the data specified by the host to the converted physical block address, and the converted physical block. A method for controlling a disk device, which comprises executing a step of writing the value of the logical block address specified by the host in a management area corresponding to the address. 記憶媒体と、ホストとの間でコマンドやデータの送受信を行い前記記憶媒体に対して書き込み又は読み出し制御を行う制御部とを備えるディスク装置の制御方法において 前記制御部は、 ホストからの書き込みコマンドを受信するステップ、 前記書き込みコマンドに含まれる論理ブロックアドレスを読み出すステップ、 前記読み出した論理ブロックアドレスを前記記憶媒体の物理ブロックアドレスに変換する際に、追記方式でデータ書き込みができるように、前記記憶媒体の未使用領域であり最も最近書き込みを行った物理ブロックアドレスの次の物理ブロックアドレスに変換するステップ、 前記変換した物理ブロックアドレスに対して前記ホストが指定したデータを書き込むステップ、 前記変換した物理ブロックアドレスに対応した管理領域に、前記ホストが指定した前記論理ブロックアドレスの値を書き込むステップ、 を実行することを特徴とするディスク装置の制御方法。
  2. 9
    In a control method of a disk device including a control unit that transmits and receives commands and data between a storage medium and a host and performs write or read control to the storage medium, the control unit issues a read command from the host. The step of receiving, the step of reading the logical block address included in the read command, and the corresponding logical block address from the address conversion table on the temporary storage area that stores the correspondence between the logical block address and the physical block address as one entry. It is characterized by executing a step of reading an entry, a step of reading a physical block address from the read entry, a step of reading data from the physical block address of the storage medium, and a step of transmitting the read data to the host. How to control the disk device. 記憶媒体と、ホストとの間でコマンドやデータの送受信を行い前記記憶媒体に対して書き込み又は読み出し制御を行う制御部とを備えるディスク装置の制御方法において 前記制御部は、 ホストからの読み出しコマンドを受信するステップ、 前記読み出しコマンドに含まれる論理ブロックアドレスを読み出すステップ、 論理ブロックアドレスと物理ブロックアドレスとの対応を一つのエントリとして保存する一時記憶領域上のアドレス変換テーブルから前記論理ブロックアドレスに対応するエントリを読み出すステップ、 前記読み出したエントリから物理ブロックアドレスを読み出すステップ、 前記記憶媒体の前記物理ブロックアドレスからデータを読み出すステップ、 前記読み出したデータを前記ホストに送信するステップ、 を実行することを特徴とするディスク装置の制御方法。
  3. 11
    In a control method of a disk device including a control unit that transmits and receives commands and data between a storage medium and a host and performs write or read control to the storage medium, the control unit issues a read command from the host. The step of receiving, the step of reading the logical block address included in the read command, and the correspondence between all the logical block addresses that can be specified by the host and the physical block addresses on the specific area on the storage medium can be maintained. A step of reading an entry corresponding to the logical block address from an address conversion table, a step of reading a physical block address from the read entry, a step of reading data from the physical block address of the storage medium, and a step of reading the read data from the host. A method of controlling a disk device, characterized by performing a step of sending to. 記憶媒体と、ホストとの間でコマンドやデータの送受信を行い前記記憶媒体に対して書き込み又は読み出し制御を行う制御部とを備えるディスク装置の制御方法において 前記制御部は、 ホストからの読み出しコマンドを受信するステップ、 前記読み出しコマンドに含まれる論理ブロックアドレスを読み出すステップ、 前記記憶媒体上の特定の領域上にある、ホストが指定可能な全ての論理ブロックアドレスと物理ブロックアドレスとの対応を保持可能なアドレス変換テーブルから、前記論理ブロックアドレスに対応するエントリを読み出すステップ、 前記読み出したエントリから物理ブロックアドレスを読み出すステップ、 前記記憶媒体の前記物理ブロックアドレスからデータを読み出すステップ、 前記読み出したデータを前記ホストに送信するステップ、 を実行することを特徴とするディスク装置の制御方法。
  4. 12
    In a control method of a disk device including a storage medium and a control unit that sends and receives commands and data between the storage medium and performs write or read control to the storage medium, the control unit includes a logical block address and a physical block. The step of initializing the address translation table on the temporary storage area that stores the correspondence with the address as one entry, starting from the most recently written physical block address, and moving the address translation table toward the smaller physical block address. Next to the step of searching the saved block of the storage medium, the step of reading the saved block of the address conversion table found by the search step and restoring it on the address conversion table on the temporary storage area, and the step of recovering to the saved block. The physical block address of the block and the management area corresponding to the physical block address are specified by the host when writing to the physical block address toward the most recently written physical block address starting from the physical block address of. Step to read the logical block address A method for controlling a disk device, which comprises executing a step of making the correspondence between the physical block address and the logical block address into one entry and saving the correspondence in the address translation table on the temporary storage area. 記憶媒体と、ホストとの間でコマンドやデータの送受信を行い前記記憶媒体に対して書き込み又は読み出し制御を行う制御部とを備えるディスク装置の制御方法において 前記制御部は、 論理ブロックアドレスと物理ブロックアドレスとの対応を一つのエントリとして保存する一時記憶領域上のアドレス変換テーブルを初期化するステップ、 最も最近書き込みを行った物理ブロックアドレスを起点に、より小さな物理ブロックアドレス方向に前記アドレス変換テーブルを退避した前記記憶媒体のブロックを検索するステップ、 前記検索ステップにより発見したアドレス変換テーブルを退避したブロックを読み出して前記一時記憶領域上の前記アドレス変換テーブル上に復旧するステップ、 前記退避したブロックの次の物理ブロックアドレスを起点に前記最も最近書き込みを行った物理ブロックアドレスに向かって、ブロックの物理ブロックアドレスと、前記物理ブロックアドレスに対応した管理領域から前記物理ブロックアドレスに書き込んだ際にホストが指定した論理ブロックアドレスとを読み出すステップ、 前記物理ブロックアドレスと前記論理ブロックアドレスとの対応を一つのエントリにして、前記一時記憶領域上の前記アドレス変換テーブルに保存するステップ、 を実行することを特徴とするディスク装置の制御方法。
  5. 13
    In a control method of a disk device including a storage medium and a control unit that sends and receives commands and data between the storage medium and performs write or read control to the storage medium, the control unit includes a logical block address and a physical block. The step of initializing the address conversion table on the temporary storage area that stores the correspondence with the address as one entry, starting from the smallest physical block address of the storage medium and heading toward the most recently written physical block address. , The step of reading the physical block address of the block and the logical block address specified by the host when writing to the physical block address from the management area corresponding to the physical block address, the physical block address and the logical block address. A method of controlling a disk device, which comprises executing a step of making a correspondence into one entry and saving it in the address translation table. 記憶媒体と、ホストとの間でコマンドやデータの送受信を行い前記記憶媒体に対して書き込み又は読み出し制御を行う制御部とを備えるディスク装置の制御方法において 前記制御部は、 論理ブロックアドレスと物理ブロックアドレスとの対応を一つのエントリとして保存する一時記憶領域上のアドレス変換テーブルを初期化するステップ、 前記記憶媒体の最も小さな物理ブロックアドレスを起点に、最も最近書き込みを行った物理ブロックアドレスに向かって、ブロックの物理ブロックアドレスと、前記物理ブロックアドレスに対応した管理領域から前記物理ブロックアドレスに書き込んだ際にホストが指定した論理ブロックアドレスとを読み出すステップ、 前記物理ブロックアドレスと前記論理ブロックアドレスとの対応を一つのエントリにして、前記アドレス変換テーブルに保存するステップ、 を実行することを特徴とするディスク装置の制御方法。
  6. 14
    In a control method of a disk device including a storage medium and a control unit that sends and receives commands and data between the storage medium and performs write or read control to the storage medium, the control unit includes a logical block address and a physical block. The step of initializing the address translation table on the temporary storage area that stores the correspondence with the address as one entry, starting from the smallest physical block address of the storage medium and heading toward the most recently written physical block address. , A step of searching the block in which the address translation table is saved, a step of reading the block in which the address translation table found in the search step is saved and adding it to the address translation table on the temporary storage area, the address translation table. Steps to compare the number of entries saved in with the number of allowed entries specified separately, as a result of the comparison, if the number of saved entries exceeds the number of allowed entries, only the number of deleted entries specified separately is used most recently. A step of selecting entries in order from an entry that has not been performed, a step of deleting the selected entry from the address translation table, Starting from the physical block address next to the saved block that was read last, the physical block address of the block and the physical block address corresponding to the physical block address are directed toward the most recently written physical block address. The step of reading the logical block address specified by the host when writing to the block address, the correspondence between the physical block address and the logical block address is made into one entry and stored in the address conversion table on the temporary storage area. A method of controlling a disk unit, characterized in that the steps to be performed are performed. 記憶媒体と、ホストとの間でコマンドやデータの送受信を行い前記記憶媒体に対して書き込み又は読み出し制御を行う制御部とを備えるディスク装置の制御方法において 前記制御部は、 論理ブロックアドレスと物理ブロックアドレスとの対応を一つのエントリとして保存する一時記憶領域上のアドレス変換テーブルを初期化するステップ、 前記記憶媒体の最も小さな物理ブロックアドレスを起点に、最も最近書き込みを行った物理ブロックアドレスに向かって、前記アドレス変換テーブルを退避したブロックを検索するステップ、 前記検索ステップにより発見したアドレス変換テーブルを退避したブロックを読み出して前記一時記憶領域上の前記アドレス変換テーブル上に追加するステップ、 前記アドレス変換テーブルに保存されたエントリ数を別途定める許容エントリ数と比較するステップ、 前記比較の結果、前記保存されたエントリ数が前記許容エントリ数を越えている場合に、別途定める削除数分だけ、最も最近使用していないエントリから順番にエントリを選択するステップ、 前記選択したエントリを前記アドレス変換テーブルから削除するステップ、 最も最後に読み込んだ退避したブロックの次の物理ブロックアドレスを起点に前記最も最近書き込みを行った物理ブロックアドレスに向かって、ブロックの物理ブロックアドレスと、前記物理ブロックアドレスに対応した管理領域から前記物理ブロックアドレスに書き込んだ際にホストが指定した論理ブロックアドレスとを読み出すステップ、 前記物理ブロックアドレスと前記論理ブロックアドレスとの対応を一つのエントリにして、前記一時記憶領域上の前記アドレス変換テーブルに保存するステップ、 を実行することを特徴とするディスク装置の制御方法。
  7. 17
    In a control method of a disk device including a control unit that transmits and receives commands and data between a storage medium and a host and performs writing or reading control on the storage medium, the control unit processes the storage medium. Step to set the value of the upper limit physical block address, starting from the smallest physical block address, for each block toward the processing upper limit physical block address, the logic specified by the host when writing to the block's physical block address A step to check whether the host is writing at a physical block address higher than the physical block address for the same logical block address as the block address value, when the host is writing at a physical block address higher than the physical block address. A step of writing a dirty flag indicating that writing to the same logical block address is overwritten by a higher physical block address to the management area corresponding to the block. Starting from the smallest physical block address and moving toward the most recently written physical block address, for each block, the blocks without the dirty flag are subordinated so that the blocks with the dirty flag are overwritten. A method of controlling a disk unit, characterized by performing a step that moves in the direction of an address. 記憶媒体と、ホストとの間でコマンドやデータの送受信を行い前記記憶媒体に対して書き込み又は読み出し制御を行う制御部とを備えるディスク装置の制御方法において 前記制御部は、 前記記憶媒体の処理する上限の物理ブロックアドレスの値を設定するステップ、 最も小さな物理ブロックアドレスを起点に、前記処理上限の物理ブロックアドレスに向かって各ブロックについて、ブロックの物理ブロックアドレスに書き込んだ際にホストが指定した論理ブロックアドレスの値と同一の論理ブロックアドレスに対して、前記物理ブロックアドレスよりも上位の物理ブロックアドレスにおいてホストが書き込んでいないか検査するステップ、 上位の物理ブロックアドレスにおいてホストが書き込んでいる場合に、同一の論理ブロックアドレスへの書き込みが、より上位の物理ブロックアドレスにより上書きされていることを示すダーティ・フラグを前記ブロックに対応した管理領域に書き込むステップ、 最も小さな物理ブロックアドレスを起点に、最も最近書き込まれた物理ブロックアドレスに向かって各ブロックについて、ダーティ・フラグの付いたブロックを上書きするように、ダーティ・フラグの付いていないブロックを下位の物理ブロックアドレスの方向に移動するステップ、 を実行することを特徴とするディスク装置の制御方法。
  8. 18
    In a control method of a disk device including a control unit that transmits and receives commands and data between a storage medium and a host and performs writing or reading control on the storage medium, the control unit processes the storage medium. Step to set the value of the upper physical block address, step to initialize the second address translation table on the temporary storage area that stores the correspondence between the logical block address and the physical block address as one entry, the smallest physical block Starting from the address, toward the physical block address of the processing upper limit, the physical block address of the block and the logical block address specified by the host when writing to the physical block address from the management area corresponding to the physical block address. Step of reading, the step of making the correspondence between the physical block address and the logical block address into one entry and storing it in the second address conversion table, the second address when receiving a request from the host. A step of enabling access means to the storage medium that converts a physical block address and a logical block address by a conversion table, A method of controlling a disk unit, which comprises executing. 記憶媒体と、ホストとの間でコマンドやデータの送受信を行い前記記憶媒体に対して書き込み又は読み出し制御を行う制御部とを備えるディスク装置の制御方法において 前記制御部は、 前記記憶媒体の処理する上限の物理ブロックアドレスの値を設定するステップ、 論理ブロックアドレスと物理ブロックアドレスとの対応を一つのエントリとして保存する一時記憶領域上の第二のアドレス変換テーブルを初期化するステップ、 最も小さな物理ブロックアドレスを起点に、前記処理上限の物理ブロックアドレスに向かって、ブロックの物理ブロックアドレスと、前記物理ブロックアドレスに対応した管理領域から前記物理ブロックアドレスに書き込んだ際にホストが指定した論理ブロックアドレスとを読み出すステップ、 前記物理ブロックアドレスと前記論理ブロックアドレスとの対応を一つのエントリにして、前記第二のアドレス変換テーブルに保存するステップ、 ホストからの要求を受信する際に、前記第二のアドレス変換テーブルにより物理ブロックアドレスと論理ブロックアドレスとの変換を行う前記記憶媒体へのアクセス手段を有効化するステップ、 を実行することを特徴とするディスク装置の制御方法。
  9. 19
    In a control method of a disk device including a control unit that transmits and receives commands and data between a storage medium and a host and performs writing or reading control on the storage medium, the control unit processes the storage medium. Step to set the value of the lower limit physical block address, step to invalidate and initialize the written block toward the most recently written physical block address starting from the processing lower limit physical block address, logical block address The step of initializing the address conversion table on the temporary storage area that stores the correspondence between the physical block address and the physical block address as one entry. A step of reading the physical block address and the logical block address specified by the host when writing to the physical block address from the management area corresponding to the physical block address, and the correspondence between the physical block address and the logical block address. A method of controlling a disk device, which comprises performing a step of making one entry and saving it in the address translation table. 記憶媒体と、ホストとの間でコマンドやデータの送受信を行い前記記憶媒体に対して書き込み又は読み出し制御を行う制御部とを備えるディスク装置の制御方法において 前記制御部は、 前記記憶媒体の処理する下限の物理ブロックアドレスの値を設定するステップ、 前記処理下限の物理ブロックアドレスを起点に、最も最近書き込んだ物理ブロックアドレスに向かって、書き込み済みのブロックを無効化して初期化するステップ、 論理ブロックアドレスと物理ブロックアドレスとの対応を一つのエントリとして保存する一時記憶領域上のアドレス変換テーブルを初期化するステップ、 最も小さな物理ブロックアドレスを起点に、前記処理下限の物理ブロックアドレスに向かって、ブロックの物理ブロックアドレスと、前記物理ブロックアドレスに対応した管理領域から前記物理ブロックアドレスに書き込んだ際にホストが指定した論理ブロックアドレスとを読み出すステップ、 前記物理ブロックアドレスと前記論理ブロックアドレスとの対応を一つのエントリにして、前記アドレス変換テーブルに保存するステップ、 を実行することを特徴とするディスク装置の制御方法。
  10. 22
    The control unit exists on the storage medium in a control method of a disk device including a control unit that transmits and receives commands and data between the storage medium and a host and performs write or read control to the storage medium. A step of receiving a write command or a read command from a host to a logical block address, a step of checking whether the logical block address is an address for receiving a control command, a step of receiving a control command, and the received command. Is a write command, a step of reading data in the data area of the write command, a step of checking whether the data is a control command of the disk device, and a step of executing the control command when is a control command. Step, and when the received command is a read command, the step of reading the management information of the storage medium corresponding to the received logical block address, the read management. A method of controlling a disk device, which comprises executing a step of transmitting information to the host. 記憶媒体と、ホストとの間でコマンドやデータの送受信を行い前記記憶媒体に対して書き込み又は読み出し制御を行う制御部とを備えるディスク装置の制御方法において 前記制御部は、 前記記憶媒体上に存在しない論理ブロックアドレスへのホストからの書き込みコマンドもしくは読み出しコマンドを受信するステップ、 前記論理ブロックアドレスが制御コマンド受信用のアドレスかどうかを検査するステップ、 制御コマンド受信用アドレスであり、かつ前記受信したコマンドが書き込みコマンドである場合に、 前記書き込みコマンドのデータ領域中のデータを読み出すステップ、 前記データを当該ディスク装置の制御コマンドかどうかを検査するステップ、 制御コマンドである場合に、前記制御コマンドを実行するステップ、を実行し、 制御コマンド受信用アドレスであり、かつ前記受信したコマンドが読み出しコマンドである場合に、 前記受信した論理ブロックアドレスに対応した前記記憶媒体の管理情報を読み出すステップ、 前記読み出した管理情報を前記ホストに送信するステップ、 を実行することを特徴とするディスク装置の制御方法。
  11. 23
    In the control method of a disk device including a control unit that transmits / receives commands and data between the storage medium and the host and performs write / read control to the storage medium, the control unit receives commands from the host. The address specified by the host as the logical block address is specified as the logical block address when the step of checking whether the read command requests a direct reference to the internal data structure of the storage medium is executed and the read command requests a direct reference. A step of seeking as a physical block address inside the storage medium, a step of reading out the user data recorded in the block and the management data recorded in the management area corresponding to the block, and transmitting the user data and the management data to the host. A method of controlling a disk unit, characterized in that the steps to be performed are performed. 記憶媒体と、ホストとの間でコマンドやデータの送受信を行い前記記憶媒体に対して書き込み又は読み出し制御を行う制御部とを備えるディスク装置の制御方法において 前記制御部は、 ホストから受信したコマンドが前記記憶媒体の内部データ構造への直接参照を要求する読み出しコマンドかどうかを検査するステップを実行し、 直接参照を要求する読み出しコマンドである場合に、 前記ホストが論理ブロックアドレスとして指定したアドレスを前記記憶媒体内部の物理ブロックアドレスとしてシークするステップ、 ブロックに記録したユーザデータと、前記ブロックに対応した管理領域に記録した管理データとを読み出すステップ、 前記ユーザデータと前記管理データとを前記ホストに送信するステップ、 を実行することを特徴とするディスク装置の制御方法。
  12. 24
    In the control method of a disk device including a control unit that transmits and receives commands and data between the storage medium and the host and performs write or read control to the storage medium, the control unit receives commands from the host. The step of checking whether the command is for reading the management data recorded in the management area of the storage medium is executed, and when the command is for reading the management data, the address specified by the host as the logical block address is set inside the storage medium. A method for controlling a disk device, which comprises executing a step of reading management data recorded in a management area corresponding to a block and a step of transmitting the management data to the host as a physical block address. 記憶媒体と、ホストとの間でコマンドやデータの送受信を行い前記記憶媒体に対して書き込み又は読み出し制御を行う制御部とを備えるディスク装置の制御方法において 前記制御部は、 ホストから受信したコマンドが前記記憶媒体の管理領域に記録した管理データの読み出しコマンドかどうかを検査するステップを実行し、 管理データの読み出しコマンドである場合に、 前記ホストが論理ブロックアドレスとして指定したアドレスを前記記憶媒体内部の物理ブロックアドレスとして、ブロックに対応した管理領域に記録した管理データを読み出すステップ、 前記管理データを前記ホストに送信するステップ、 を実行することを特徴とするディスク装置の制御方法。