JP4577300B2 - Storage device, storage device access control method, and storage device access control program - Google Patents

Storage device, storage device access control method, and storage device access control program Download PDF

Info

Publication number
JP4577300B2
JP4577300B2 JP2006311977A JP2006311977A JP4577300B2 JP 4577300 B2 JP4577300 B2 JP 4577300B2 JP 2006311977 A JP2006311977 A JP 2006311977A JP 2006311977 A JP2006311977 A JP 2006311977A JP 4577300 B2 JP4577300 B2 JP 4577300B2
Authority
JP
Japan
Prior art keywords
logical storage
storage device
access restriction
logical
management table
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2006311977A
Other languages
Japanese (ja)
Other versions
JP2008129722A (en
Inventor
寛之 大谷
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Corp
Original Assignee
NEC 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 NEC Corp filed Critical NEC Corp
Priority to JP2006311977A priority Critical patent/JP4577300B2/en
Publication of JP2008129722A publication Critical patent/JP2008129722A/en
Application granted granted Critical
Publication of JP4577300B2 publication Critical patent/JP4577300B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Storage Device Security (AREA)

Description

本発明は、物理記憶領域を割り当てて構成した論理記憶装置に対してデータの入出力を行うストレージ装置に関し、特に論理記憶装置に対するアクセス制限機能を実装したストレージ装置に関する。   The present invention relates to a storage apparatus that inputs / outputs data to / from a logical storage apparatus configured by allocating physical storage areas, and more particularly to a storage apparatus that implements an access restriction function for a logical storage apparatus.

従来、RAID(Redundant Arrays of Inexpensive/Independent Disks)に代表されるディスクアレイ装置のように、複数の物理記憶装置の集合から論理記憶装置を構成するストレージ装置が存在する。ストレージ装置上の論理記憶装置に対して格納するデータは、複数の物理記憶装置上の記憶領域に分散格納する。ストレージ装置では、論理記憶装置の論理記憶領域と物理記憶装置の物理記憶領域との対応付けを行うテーブルを保持し、ストレージ装置に格納するデータ配置の対応関係を管理する。また、高可用性を維持するため、格納するデータを冗長化して物理記憶装置に記録する。   2. Description of the Related Art Conventionally, there are storage devices that constitute a logical storage device from a set of a plurality of physical storage devices, such as a disk array device represented by RAID (Redundant Arrays of Inexpensive / Independent Disks). Data stored in the logical storage device on the storage device is distributedly stored in storage areas on a plurality of physical storage devices. The storage apparatus holds a table for associating the logical storage area of the logical storage apparatus with the physical storage area of the physical storage apparatus, and manages the correspondence relationship of the data arrangement stored in the storage apparatus. In order to maintain high availability, the data to be stored is made redundant and recorded in the physical storage device.

このようなストレージ装置において、論理記憶装置に記録されたデータを正確にかつ長期間保持するために、論理記憶装置に対して読み書き可能、書き込み不可、読み書き不可のアクセスモードを設定可能とし、アクセスモードに従ってホスト計算機からのI/Oを許可あるいは拒否をするものもある。これにより論理記憶装置に対してホスト計算機からの誤った操作によるデータ破壊や不正なアクセスを防止する従来技術が存在する。
この論理記憶装置の保護技術を利用すると、論理記憶装置に記録したデータが一杯になるかあるいは保護が必要となったタイミングにおいて、論理記憶装置のアクセスモードを読み書き可能から書き込み不可に設定し、以降の論理記憶装置に対する一切の書き込み
I/Oを抑止するような運用を行うことができる。
In such a storage device, in order to hold the data recorded in the logical storage device accurately and for a long period of time, it is possible to set an access mode in which the logical storage device can be read / written, cannot be written, and cannot be read / written. Some allow or deny I / O from the host computer. Thus, there is a conventional technique for preventing data destruction and unauthorized access to the logical storage device due to an erroneous operation from a host computer.
When this logical storage device protection technology is used, the access mode of the logical storage device is set from read / write to non-writeable when the data recorded in the logical storage device is full or protection is required. Write to any logical storage device
Operations that suppress I / O can be performed.

特許文献1に記載のストレージ装置では、論理記憶装置上の領域毎に、物理ブロックが割り当てられているか又は所定のデータ配置パターンから生成されるデータに従うかを示す識別情報を記録する論理記憶管理テーブルを備え、論理記憶装置の領域に対するデータの書き込み要求があった場合、書き込み要求データのデータ配置パターンが予め登録されたデータ配置パターンと一致する場合に、一致するデータ配置パターンの識別情報を、論理記憶管理テーブルの書き込み要求のあった領域に対応させて記録し、書き込み要求データを破棄することによって物理記憶装置の割り当て効率を改善している。   In the storage device described in Patent Document 1, for each area on the logical storage device, a logical storage management table that records identification information indicating whether a physical block is allocated or data is generated from a predetermined data arrangement pattern If there is a data write request to the area of the logical storage device, and if the data arrangement pattern of the write request data matches a pre-registered data arrangement pattern, the identification information of the matching data arrangement pattern is logically The allocation efficiency of the physical storage device is improved by recording corresponding to the area where the write request is made in the storage management table and discarding the write request data.

特開2005−135116号公報JP 2005-135116 A

しかし、上記の従来技術には以下の課題がある。論理記憶装置に格納したデータを保護するために、論理記憶装置のアクセスモードを書き込み禁止に設定するとその論理記憶装置に対する以降の書き込みは一切不可となる。
このため、対象となる論理記憶装置に空き領域がある場合は、使用不可能な領域となり、ストレージの物理記憶領域を有効に利用できない。
However, the above prior art has the following problems. In order to protect the data stored in the logical storage device, if the access mode of the logical storage device is set to write prohibition, subsequent writing to the logical storage device is completely disabled.
For this reason, if there is a free area in the target logical storage device, it becomes an unusable area and the physical storage area of the storage cannot be used effectively.

本発明は、このような従来技術の問題点を顧みて為されたものであり、論理記憶装置に対してアクセスモードを設定し、データの保護を目的とするストレージにおいて、物理記憶領域の利用効率を高めるストレージを提供する。   The present invention has been made in view of the above-mentioned problems of the prior art, and sets the access mode for the logical storage device and uses the physical storage area in the storage for the purpose of data protection. Provide storage that enhances.

本発明の、ストレージ装置は、論理記憶装置に設定されているアクセス制限モードとこのアクセス制限モードの変更の可否を示す変更フラグと論理記憶装置に格納されている情報の保管期限とを論理記憶装置の識別情報に対応付けて記憶する論理記憶アクセス制限管理テーブルと、論理記憶装置に物理記憶装置の物理ブロックを割り当てる論理記憶割り当て登録手段と、ホスト計算機から識別情報とアクセス制限モードと保管期間とを含む変更要求を受信したときに、論理記憶アクセス制限管理テーブルを参照し、変更要求の対象となっている論理記憶装置の変更フラグが変更可能であること示している場合または現在時刻が保管期限を経過している場合に変更要求に含まれる情報で論理記憶アクセス制限管理テーブルを更新する論理記憶アクセス制限管理手段と、論理記憶アクセス制限管理テーブルに記憶された情報に従って命令の実行をするとともに、命令が論理記憶装置の物理ブロックが割り当てられていない未割り当て領域に対する書き込み命令である場合は論理記憶割り当て登録手段を作動させ未割り当て領域に物理ブロックを割り当てる機能と、命令が未割り当て領域に対する読み出し命令である場合はホスト計算機にゼロデータを返却する論理記憶アクセス制御手段と、を備えている(請求項1および請求項2)。   The storage device according to the present invention includes an access restriction mode set in the logical storage device, a change flag indicating whether or not the access restriction mode can be changed, and a storage expiration date of information stored in the logical storage device. A logical storage access restriction management table stored in association with the identification information, logical storage allocation registration means for assigning physical blocks of the physical storage device to the logical storage device, identification information, access restriction mode and storage period from the host computer. When a change request is received, the logical storage access restriction management table is referenced to indicate that the change flag of the logical storage device subject to the change request can be changed, or the current time indicates the storage deadline. A logical storage application that updates the logical storage access restriction management table with the information included in the change request if it has elapsed. Access restriction management means and execute instructions according to the information stored in the logical storage access restriction management table, and if the instruction is a write instruction to an unallocated area to which no physical block of the logical storage device is assigned, logical storage A function for allocating a physical block to an unallocated area by operating the allocation registering means, and a logical storage access control means for returning zero data to the host computer when the instruction is a read command for the unallocated area (claim) Claims 1 and 2).

上記ストレージ装置によれば、論理記憶アクセス制限管理テーブルには、各論理記憶装置に設定されているアクセス制限モード、変更フラグ、保管期限が記憶されていて、論理記憶アクセス制限管理手段は、ホスト計算機の変更要求に応じてこれらの情報を随時更新する。
論理記憶アクセス制御手段は、論理記憶アクセス制限管理テーブルを参照してアクセス制限モードにしたがってホスト計算機が発行した命令を実行する。このとき、書き込み命令の対象となっている論理記憶装置の領域に物理ブロックが割り当てられていなければ、割り当てを行い、読み出し命令の対象となっている論理記憶装置の領域に物理ブロックが割り当てられていなければ、ホスト計算機にゼロデータを返却する。
そのため、論理記憶装置のアクセス制限を実装した場合でも論理記憶装置に最初から物理ブロックを割り当てておく必要がなくなり、物理記憶領域の利用効率を高めることが出来る。
According to the storage apparatus, the logical storage access restriction management table stores the access restriction mode, change flag, and storage time limit set for each logical storage apparatus. The information is updated as needed in response to the change request.
The logical storage access control means executes an instruction issued by the host computer according to the access restriction mode with reference to the logical storage access restriction management table. At this time, if the physical block is not allocated to the area of the logical storage device that is the target of the write command, the allocation is performed, and the physical block is allocated to the area of the logical storage device that is the target of the read command. Otherwise, return zero data to the host computer.
Therefore, even when the access restriction of the logical storage device is implemented, it is not necessary to allocate a physical block to the logical storage device from the beginning, and the utilization efficiency of the physical storage area can be improved.

上記ストレージ装置において、論理記憶装置に割り当てられた物理ブロックの割り当てを解除する論理記憶割り当て解除手段を備え、論理記憶アクセス制限管理手段は、変更要求に初期化指示が含まれる場合に論理記憶割り当て解除手段を作動させて変更要求に含まれる識別情報に対応する論理記憶装置に対する物理ブロックの割り当てをすべて解除する機能を備えるようにしてもよい(請求項2)。
このようにすれば、保管期限が経過し論理記憶装置に記憶されているデータを保持する必要がなくなったときには、その論理記憶装置に割り当てられていた物理ブロックを即座に開放し、有効に利用することが出来る。
The storage device includes logical storage deallocating means for deallocating a physical block allocated to the logical storage device, and the logical storage access restriction management means deallocates the logical storage when the change request includes an initialization instruction. The function may be provided so as to release all physical block assignments to the logical storage device corresponding to the identification information included in the change request (claim 2).
In this way, when it is no longer necessary to retain the data stored in the logical storage device after the expiration date, the physical block assigned to the logical storage device is immediately released and used effectively. I can do it.

本発明のストレージ装置のアクセス制御方法は、論理記憶装置に設定されているアクセス制限モードとこのアクセス制限モードの変更の可否を示す変更フラグと論理記憶装置に格納されている情報の保管期限とを論理記憶装置の識別情報に対応付けて記憶する論理記憶アクセス制限管理テーブルを記憶装置に記憶する工程と、ホスト計算機から識別情報とアクセス制限モードと保管期間とを含む変更要求を受信したときに、論理記憶アクセス制限管理テーブルを参照し、変更要求の対象となっている論理記憶装置の変更フラグが変更可能であること示している場合または現在時刻が保管期限を経過している場合に変更要求に含まれる情報で論理記憶アクセス制限管理テーブルを更新する論理記憶アクセス制限管理工程と、論理記憶アクセス制限管理テーブルに記憶された情報に従って命令の実行をするとともに、命令が論理記憶装置の物理ブロックが割り当てられていない未割り当て領域に対する書き込み命令である場合は未割り当て領域に物理ブロックを割り当て、命令が未割り当て領域に対する読み出し命令である場合はホスト計算機にゼロデータを返却する論理記憶アクセス制御工程と、によりアクセス制御を行う(請求項3および請求項4)。   An access control method for a storage apparatus according to the present invention includes an access restriction mode set in a logical storage apparatus, a change flag indicating whether or not the access restriction mode can be changed, and an expiration date of information stored in the logical storage apparatus. When receiving a change request including a step of storing a logical storage access restriction management table stored in association with the identification information of the logical storage device in the storage device, and the identification information, the access restriction mode, and the storage period from the host computer, Refer to the logical storage access restriction management table, and if the change flag of the logical storage device that is the target of the change request indicates that it can be changed, or if the current time has passed the storage deadline, A logical storage access restriction management step for updating the logical storage access restriction management table with the contained information; The instruction is executed according to the information stored in the management table. If the instruction is a write instruction for an unallocated area to which no physical block of the logical storage device is allocated, a physical block is allocated to the unallocated area and the instruction is not In the case of a read command for the allocation area, access control is performed by a logical storage access control step of returning zero data to the host computer (claims 3 and 4).

上記ストレージ装置のアクセス制御方法によれば、論理記憶アクセス制限管理テーブルには、各論理記憶装置に設定されているアクセス制限モード、変更フラグ、保管期限が記憶されていて、論理記憶アクセス制限管理工程では、ホスト計算機の変更要求に応じてこれらの情報を随時更新する。
論理記憶アクセス制御工程では、論理記憶アクセス制限管理テーブルを参照してアクセス制限モードにしたがってホスト計算機が発行した命令を実行する。このとき、書き込み命令の対象となっている論理記憶装置の領域に物理ブロックが割り当てられていなければ、割り当てを行い、読み出し命令の対象となっている論理記憶装置の領域に物理ブロックが割り当てられていなければ、ホスト計算機にゼロデータを返却する。
そのため、論理記憶装置のアクセス制限を実装した場合でも論理記憶装置に最初から物理ブロックを割り当てておく必要がなくなり、物理記憶領域の利用効率を高めることが出来る。
According to the storage device access control method, the logical storage access restriction management table stores an access restriction mode, a change flag, and a storage time limit set for each logical storage device. Then, in response to a change request from the host computer, these pieces of information are updated as needed.
In the logical storage access control step, an instruction issued by the host computer is executed according to the access restriction mode with reference to the logical storage access restriction management table. At this time, if the physical block is not allocated to the area of the logical storage device that is the target of the write command, the allocation is performed, and the physical block is allocated to the area of the logical storage device that is the target of the read command. Otherwise, return zero data to the host computer.
Therefore, even when the access restriction of the logical storage device is implemented, it is not necessary to allocate a physical block to the logical storage device from the beginning, and the utilization efficiency of the physical storage area can be improved.

上記ストレージ装置のアクセス制御方法において、論理記憶アクセス制限管理工程では、変更要求に初期化指示が含まれる場合に変更要求に含まれる識別情報に対応する論理記憶装置に対する物理ブロックの割り当てをすべて解除するようにしても良い(請求項4)。
このようにすれば、保管期限が経過し論理記憶装置に記憶されているデータを保持する必要がなくなったときには、その論理記憶装置に割り当てられていた物理ブロックを即座に開放し、有効に利用することが出来る。
In the storage device access control method, in the logical storage access restriction management step, when an initialization instruction is included in the change request, all physical block assignments to the logical storage device corresponding to the identification information included in the change request are released. You may make it (Claim 4).
In this way, when it is no longer necessary to retain the data stored in the logical storage device after the expiration date, the physical block assigned to the logical storage device is immediately released and used effectively. I can do it.

本発明のストレージ装置のアクセス制御プログラムは、ストレージ装置に内蔵されたコンピュータに、論理記憶装置に設定されているアクセス制限モードとこのアクセス制限モードの変更の可否を示す変更フラグと論理記憶装置に格納されている情報の保管期限とを論理記憶装置の識別情報に対応付けて記憶する論理記憶アクセス制限管理テーブルを記憶装置に記憶する機能と、ホスト計算機から識別情報とアクセス制限モードと保管期間とを含む変更要求を受信したときに、論理記憶アクセス制限管理テーブルを参照し、変更要求の対象となっている論理記憶装置の変更フラグが変更可能であること示している場合または現在時刻が保管期限を経過している場合に変更要求に含まれる情報で論理記憶アクセス制限管理テーブルを更新する論理記憶アクセス制限管理機能と、論理記憶アクセス制限管理テーブルに記憶された情報に従って命令の実行をするとともに、命令が論理記憶装置の物理ブロックが割り当てられていない未割り当て領域に対する書き込み命令である場合は未割り当て領域に物理ブロックを割り当て、命令が未割り当て領域に対する読み出し命令である場合はホスト計算機にゼロデータを返却する論理記憶アクセス制御機能と、を実行させることによりストレージ装置のアクセス制御を行う(請求項5および請求項6)。   The storage device access control program of the present invention is stored in a logical storage device in a computer built in the storage device, an access restriction mode set in the logical storage device, a change flag indicating whether or not the access restriction mode can be changed, and the logical storage device. A function for storing a logical storage access restriction management table in the storage device for storing the storage expiration date of the stored information in association with the identification information of the logical storage device, and the identification information, the access restriction mode, and the storage period from the host computer. When a change request is received, the logical storage access restriction management table is referenced to indicate that the change flag of the logical storage device subject to the change request can be changed, or the current time indicates the storage deadline. The theory of updating the logical storage access restriction management table with the information included in the change request when it has elapsed The instruction is executed according to the storage access restriction management function and the information stored in the logical storage access restriction management table, and if the instruction is a write instruction to an unallocated area to which no physical block of the logical storage device is assigned, the instruction is not executed. The storage device is controlled by allocating a physical block to the allocation area and executing a logical storage access control function that returns zero data to the host computer if the instruction is a read instruction for an unallocated area. 5 and claim 6).

上記ストレージ装置のアクセス制御プログラムによれば、論理記憶アクセス制限管理テーブルには、各論理記憶装置に設定されているアクセス制限モード、変更フラグ、保管期限が記憶されていて、論理記憶アクセス制限管理機能では、ホスト計算機の変更要求に応じてこれらの情報を随時更新する。
論理記憶アクセス制御機能は、論理記憶アクセス制限管理テーブルを参照してアクセス制限モードにしたがってホスト計算機が発行した命令を実行する。このとき、書き込み命令の対象となっている論理記憶装置の領域に物理ブロックが割り当てられていなければ、割り当てを行い、読み出し命令の対象となっている論理記憶装置の領域に物理ブロックが割り当てられていなければ、ホスト計算機にゼロデータを返却する。
そのため、論理記憶装置のアクセス制限を実装した場合でも論理記憶装置に最初から物理ブロックを割り当てておく必要がなくなり、物理記憶領域の利用効率を高めることが出来る。
According to the storage device access control program, the logical storage access restriction management table stores the access restriction mode, change flag, and storage time limit set for each logical storage device. Then, in response to a change request from the host computer, these pieces of information are updated as needed.
The logical storage access control function executes instructions issued by the host computer in accordance with the access restriction mode with reference to the logical storage access restriction management table. At this time, if the physical block is not allocated to the area of the logical storage device that is the target of the write command, the allocation is performed, and the physical block is allocated to the area of the logical storage device that is the target of the read command. Otherwise, return zero data to the host computer.
Therefore, even when the access restriction of the logical storage device is implemented, it is not necessary to allocate a physical block to the logical storage device from the beginning, and the utilization efficiency of the physical storage area can be improved.

上記ストレージ装置のアクセス制限プログラムにおいて、論理記憶アクセス制限管理機能は、変更要求に初期化指示が含まれる場合に変更要求に含まれる識別情報に対応する論理記憶装置に対する物理ブロックの割り当てをすべて解除するものとしても良い(請求項6)。
このようにすれば、保管期限が経過し論理記憶装置に記憶されているデータを保持する必要がなくなったときには、その論理記憶装置に割り当てられていた物理ブロックを即座に開放し、有効に利用することが出来る。
In the storage device access restriction program, the logical storage access restriction management function releases all physical block assignments to the logical storage device corresponding to the identification information included in the change request when the initialization request is included in the change request. It is good also as a thing (Claim 6).
In this way, when it is no longer necessary to retain the data stored in the logical storage device after the expiration date, the physical block assigned to the logical storage device is immediately released and used effectively. I can do it.

本発明によれば、論理記憶アクセス制限管理テーブルには、各論理記憶装置に設定されているアクセス制限モード、変更フラグ、保管期限が記憶されていて、論理記憶アクセス制限管理工程では、ホスト計算機の変更要求に応じてこれらの情報を随時更新する。
そして、論理記憶アクセス制限管理テーブルを参照してアクセス制限モードにしたがってホスト計算機が発行した命令を実行する。このとき、書き込み命令の対象となっている論理記憶装置の領域に物理ブロックが割り当てられていなければ、割り当てを行い、読み出し命令の対象となっている論理記憶装置の領域に物理ブロックが割り当てられていなければ、ホスト計算機にゼロデータを返却する。
そのため、論理記憶装置のアクセス制限を実装した場合でも論理記憶装置に最初から物理ブロックを割り当てておく必要がなくなり、物理記憶領域の利用効率を高めることが出来る。
According to the present invention, the logical storage access restriction management table stores the access restriction mode, change flag, and storage time limit set for each logical storage device. In the logical storage access restriction management process, the host computer This information is updated as needed in response to change requests.
Then, the instruction issued by the host computer is executed according to the access restriction mode with reference to the logical storage access restriction management table. At this time, if the physical block is not allocated to the area of the logical storage device that is the target of the write command, the allocation is performed, and the physical block is allocated to the area of the logical storage device that is the target of the read command. Otherwise, return zero data to the host computer.
Therefore, even when the access restriction of the logical storage device is implemented, it is not necessary to allocate a physical block to the logical storage device from the beginning, and the utilization efficiency of the physical storage area can be improved.

以下、図を参照しながら本発明の一実施形態であるストレージ装置100の構成と動作について説明する。
図1は、ストレージ装置100の構成を示すブロック図である。
ストレージ装置100は、一つ以上の物理記憶装置101、一つ以上の物理記憶装置101の集合から仮想的な物理記憶空間を構成する物理記憶スペース102、論理記憶アクセス制御手段201、論理記憶アクセス制限管理手段202、論理記憶割り当て解除手段204、論理記憶割り当て登録手段203を備えている。また、物理記憶割り当て管理テーブル301、論理記憶割り当て管理テーブル302、論理記憶アクセス制限管理テーブル303を記憶している。
Hereinafter, the configuration and operation of the storage apparatus 100 according to an embodiment of the present invention will be described with reference to the drawings.
FIG. 1 is a block diagram showing the configuration of the storage apparatus 100.
The storage apparatus 100 includes one or more physical storage devices 101, a physical storage space 102 that constitutes a virtual physical storage space from a set of one or more physical storage devices 101, a logical storage access control unit 201, and a logical storage access restriction. A management unit 202, a logical storage allocation cancellation unit 204, and a logical storage allocation registration unit 203 are provided. In addition, a physical storage allocation management table 301, a logical storage allocation management table 302, and a logical storage access restriction management table 303 are stored.

物理記憶スペース102上の領域は、一定の単位長を持つ物理ブロック103に区分され、物理ブロック103の集合としてストレージ装置100上に論理的な記憶装置である論理記憶装置104が構成されている。
ストレージ装置100は、たとえばファイバーチャネルにより接続されたホスト計算機110の要求に応じて論理記憶装置104に対してデータの書き込み及び読み出し、アクセス制限変更要求を実行する。ホスト計算機110では、ストレージ装置100を利用する業務アプリケーション120およびストレージ装置100を操作するストレージ管理アプリケーション130が動作している。
An area on the physical storage space 102 is divided into physical blocks 103 having a certain unit length, and a logical storage device 104 that is a logical storage device is configured on the storage device 100 as a set of physical blocks 103.
For example, the storage apparatus 100 executes data write and read requests to the logical storage apparatus 104 and an access restriction change request in response to a request from the host computer 110 connected by a fiber channel. In the host computer 110, a business application 120 that uses the storage apparatus 100 and a storage management application 130 that operates the storage apparatus 100 are operating.

論理記憶アクセス制御手段201は、ホスト計算機110から書き込み要求を受け、論理記憶装置104のアクセス制限モードを確認し、書き込み不可な状態であれば書き込み要求を拒否する。さらに、書き込む論理記憶装置104上の領域に対して、物理記憶スペース102の領域が未割り当てであれば、物理ブロック103を割り当てた後に書き込むデータを記録する。
また、ホスト計算機110からの読み出し要求を受け、論理記憶装置104のアクセス制限モードを確認し、読み出し不可な状態であれば読み出し要求を拒否する。さらに、物理記憶スペース102の領域からデータを読み出す際、物理記憶スペース102が未割り当てであれば0データをホスト計算機に返却する。
また、論理記憶装置104の読み書き可能・書き込み禁止・読み書き禁止のアクセス制限モードと、記録されたデータの保管期限を示す保管期限と、アクセス制限の変更可否を示すフラグを管理し、ホスト計算機110からアクセス制限変更要求を受けたとき、当該論理記憶装置104のアクセス制限変更が可能と判断すればアクセス制限を変更する。
The logical storage access control unit 201 receives a write request from the host computer 110, confirms the access restriction mode of the logical storage device 104, and rejects the write request if the write is impossible. Further, if the area of the physical storage space 102 is not assigned to the area on the logical storage device 104 to be written, the data to be written is recorded after the physical block 103 is assigned.
Further, upon receiving a read request from the host computer 110, the access restriction mode of the logical storage device 104 is confirmed, and if the read is impossible, the read request is rejected. Further, when data is read from the area of the physical storage space 102, 0 data is returned to the host computer if the physical storage space 102 is not allocated.
Further, it manages an access restriction mode of read / write / write prohibition / read / write prohibition of the logical storage device 104, a storage deadline indicating the storage deadline of recorded data, and a flag indicating whether or not the access restriction can be changed. When an access restriction change request is received, if it is determined that the access restriction of the logical storage device 104 can be changed, the access restriction is changed.

論理記憶アクセス制限管理手段202は、アクセス制限変更と同時に論理記憶装置104上のデータの初期化および物理記憶スペース102の割り当て解除を実施する。   The logical storage access restriction management unit 202 initializes data on the logical storage device 104 and deallocates the physical storage space 102 simultaneously with changing the access restriction.

論理記憶割り当て登録手段204は、論理記憶アクセス制御手段201からの登録要求を受け、論理記憶装置104上の論理記憶領域に対応する物理ブロック103を割り当てる。   The logical storage allocation registration unit 204 receives the registration request from the logical storage access control unit 201 and allocates the physical block 103 corresponding to the logical storage area on the logical storage device 104.

論理記憶割り当て解除手段204は、論理記憶アクセス制限管理手段202からの解除要求を受け、論理記憶装置104上の論理記憶領域に対応する物理ブロック103の割り当てを解除し、論理記憶装置104に記録されたデータをクリアする。   The logical storage allocation cancellation unit 204 receives a cancellation request from the logical storage access restriction management unit 202, cancels the allocation of the physical block 103 corresponding to the logical storage area on the logical storage device 104, and is recorded in the logical storage device 104. Clear the data.

図2は、物理記憶割り当て管理テーブル301の一例を示した図である。
物理記憶割り当て管理テーブル301は、物理ブロック103を識別する情報である物理ブロックIDと、当該物理ブロックに対応する物理記憶スペース102上のアドレスを示す物理記憶スペースアドレスと、当該物理ブロックが論理記憶装置を構成する領域として割り当て済みか否かを示す割り当てフラグの対から構成される。割り当てフラグが割り当て済を示していれば、当該物理ブロックはいずれかの論理記憶装置104の論理記憶領域として使用されていることを表す。
FIG. 2 is a diagram showing an example of the physical storage allocation management table 301.
The physical storage allocation management table 301 includes a physical block ID which is information for identifying the physical block 103, a physical storage space address indicating an address on the physical storage space 102 corresponding to the physical block, and the physical block is a logical storage device. It is comprised from the pair of the allocation flag which shows whether it has already been allocated as an area | region which comprises. If the assignment flag indicates assigned, it indicates that the physical block is used as a logical storage area of any logical storage device 104.

図3は、論理記憶割り当て管理テーブル302の一例を示した図である。
論理記憶割り当て管理テーブル302は、論理記憶装置104を識別する論理記憶装置IDと、当該論理記憶装置の論理記憶領域上のアドレスを示す論理記憶アドレスと、当該論理記憶アドレスに対して物理ブロックが割り当て済か否か、また割り当て済であればどの物理ブロックが割り当てられているかを示す割り当て物理ブロックIDの対から構成される。
FIG. 3 is a diagram showing an example of the logical storage allocation management table 302.
The logical storage allocation management table 302 includes a logical storage device ID for identifying the logical storage device 104, a logical storage address indicating an address on the logical storage area of the logical storage device, and a physical block assigned to the logical storage address. It is composed of a pair of assigned physical block IDs indicating whether or not, and if assigned, which physical block is assigned.

図4は、論理記憶アクセス制限管理テーブル303の一例を示した図である。
論理記憶アクセス制限管理テーブル303は、論理記憶装置104を識別する論理記憶装置IDと、当該論理記憶装置のホスト計算機からのI/O要求に対する動作を定義するアクセス制限と、当該論理記憶装置に格納されたデータの保管期限と、アクセス制限の変更可否を示す変更フラグの対から構成される。
アクセス制限は、「書き込み禁止」「読み書き禁止」「読み書き可能」の三種類のモードを定義する。通常の論理記憶装置は読み書き可能であり、アクセス制限は読み書き可能に設定される。ホスト計算機110からの要求により、論理記憶装置104に記録したデータを変更不可能な形式で長期間保持するような用途を想定する場合は、アクセス制限を読み書き可能から書き込み禁止または読み書き禁止に設定することで論理記憶装置104は保護された状態となる。
FIG. 4 is a diagram showing an example of the logical storage access restriction management table 303.
The logical storage access restriction management table 303 stores the logical storage device ID for identifying the logical storage device 104, the access restriction that defines the operation for the I / O request from the host computer of the logical storage device, and the logical storage device. This is composed of a pair of change flags indicating whether or not to change the access restriction and the storage limit of the stored data.
The access restriction defines three types of modes: “write prohibited”, “read / write prohibited”, and “read / write enabled”. A normal logical storage device is readable and writable, and the access restriction is set to be readable and writable. When it is assumed that the data recorded in the logical storage device 104 is retained in an unchangeable format for a long time in response to a request from the host computer 110, the access restriction is set from read / write to write prohibition or read / write prohibition. As a result, the logical storage device 104 is protected.

保管期限は、論理記憶装置104に記録したデータの保管期限を示す日付であり、例えば年月日を記録する。論理記憶装置104に保管期限が設定された場合、保管期限が経過するまで論理記憶装置104に対するアクセス制限の状態について、読み書き可能に変更する動作を禁止することで、保管期限までの間、論理記憶装置104は保護された状態となり、記録されたデータに対して一切の変更を抑止することが可能となる。
保管期限を経過した後、アクセス制限を書き込み禁止または読み書き禁止から読み書き可能に設定することで、論理記憶装置は保護された状態から解除される。
The storage deadline is a date indicating the storage deadline of the data recorded in the logical storage device 104, and for example, the date is recorded. When a storage deadline is set in the logical storage device 104, the operation of changing the state of access restriction to the logical storage device 104 to read / write is prohibited until the storage deadline elapses. The device 104 is in a protected state and can prevent any changes to the recorded data.
After the storage period elapses, the logical storage device is released from the protected state by setting the access restriction to read / write from write prohibition or read / write prohibition.

変更フラグは、論理記憶装置104に対するアクセス制限の変更可否の設定状態を保持する。論理記憶装置104に対して一度設定したアクセス制限に対して再設定可能とするならば可、再設定不可能とするならば不可の値を保持する。再設定可能であれば、一度設定した保管期限の変更あるいはアクセス制限を読み書き禁止から書き込み禁止にアクセス制限のモードを変更可能とする。アクセス制限の状態が不可であればこれらの操作は禁止する。変更フラグは保管期限の期間内で有効であり、保管期限を過ぎた論理記憶装置に対してはアクセス制限の変更を許可する。   The change flag holds the setting state of whether or not the access restriction for the logical storage device 104 can be changed. If the access restriction once set for the logical storage device 104 can be reset, a possible value is held. If resetting is possible, the access restriction mode can be changed from changing the storage period once set or changing the access restriction from reading / writing prohibition to writing prohibition. If the access restriction status is not possible, these operations are prohibited. The change flag is valid within the storage deadline period, and a change in access restriction is permitted for a logical storage device that has passed the storage deadline.

次に、ストレージ装置100の詳細な動作を図に基づいて説明する。
図5は、論理記憶アクセス制御手段201の動作を示すフローチャートである。
論理記憶アクセス制御手段201は、ホスト計算機110からデータの書き込みまたは読み出しのI/O要求を受けることによって動作する。まず、論理記憶アクセス制御手段201は、ホスト計算機110からのI/O要求が読み出し要求であるかどうか判断する(ステップS11)。あるいは書き込み要求であるかどうか判断する(ステップS12)。
Next, detailed operations of the storage apparatus 100 will be described with reference to the drawings.
FIG. 5 is a flowchart showing the operation of the logical storage access control unit 201.
The logical storage access control unit 201 operates by receiving an I / O request for writing or reading data from the host computer 110. First, the logical storage access control means 201 determines whether the I / O request from the host computer 110 is a read request (step S11). Alternatively, it is determined whether it is a write request (step S12).

当該要求が書き込み要求である場合(ステップS11の判定がノー、ステップS12の判定がイエスの場合)、論理記憶アクセス制限管理テーブル303を参照し、要求された論理記憶装置IDのエントリに該当する論理記憶装置に対するアクセス制限状態を取得する(ステップS13)。
次に、論理記憶装置104に対する書き込み要求が受け付け可能であるかどうか調査する。アクセス制限が書き込み禁止状態または読み書き禁止状態であれば書き込みは拒否しエラー処理を行う(ステップS25)。アクセス制限が読み書き可能状態であれば書き込み可能と判断して処理を継続する(ステップS14)。
When the request is a write request (when the determination in step S11 is no and the determination in step S12 is yes), the logical storage access restriction management table 303 is referred to, and the logical corresponding to the requested logical storage device ID entry is referred to. An access restriction state for the storage device is acquired (step S13).
Next, it is investigated whether a write request to the logical storage device 104 can be accepted. If the access restriction is in a write prohibited state or a read / write prohibited state, writing is rejected and error processing is performed (step S25). If the access restriction is in a readable / writable state, it is determined that writing is possible and processing is continued (step S14).

次に、論理記憶装置104に対応する論理記憶装置IDと、論理記憶アドレスと、データサイズを元に当該データ書き込み要求が論理記憶装置上のいずれの領域に対応する要求であるか判断し、論理記憶割り当て管理テーブル302を参照して、当該書き込み要求に対応する論理記憶アドレスに対応する割り当て物理ブロックIDを取得する(ステップS15)。
次に、割り当て物理ブロックIDを参照し、当該論理記憶装置のアドレスに対して物理ブロックが割り当て済であるかどうかを判断する(ステップS16)。未割り当てであれば、論理記憶割り当て登録手段203を呼び出して当該論理記憶装置のアドレスに対して物理ブロックを割り当てる(ステップS17)。
次に、当該論理記憶装置のアドレスに対応する物理ブロックIDが示す物理記憶スペースに対して要求されたデータを書き込み正常応答を返却する(ステップS18)。
Next, based on the logical storage device ID corresponding to the logical storage device 104, the logical storage address, and the data size, it is determined which area on the logical storage device the data write request corresponds to. With reference to the storage allocation management table 302, an allocation physical block ID corresponding to the logical storage address corresponding to the write request is acquired (step S15).
Next, with reference to the assigned physical block ID, it is determined whether or not a physical block has been assigned to the address of the logical storage device (step S16). If not allocated, the logical storage allocation registration unit 203 is called to allocate a physical block to the address of the logical storage device (step S17).
Next, the requested data is written to the physical storage space indicated by the physical block ID corresponding to the address of the logical storage device, and a normal response is returned (step S18).

一方、ホスト計算機110からのI/O要求が読み出し要求であった場合(ステップS11の判定がイエスの場合)、ステップS13と同様に論理記憶アクセス制限管理テーブル303を参照し、要求された論理記憶装置IDのエントリに該当する論理記憶装置に対するアクセス制限状態を取得する(ステップS19)。
次に、論理記憶装置104に対する読み出し要求が受け付け可能であるかどうか調査する。アクセス制限が読み書き禁止状態であれば読み出しは拒否しエラー処理を行う(ステップS25)。アクセス制限が書き込み禁止状態または読み書き可能状態であれば読み出し可能と判断して処理を継続する(ステップS20)。
On the other hand, if the I / O request from the host computer 110 is a read request (when the determination in step S11 is yes), the logical storage access restriction management table 303 is referred to in the same manner as in step S13, and the requested logical storage is The access restriction state for the logical storage device corresponding to the device ID entry is acquired (step S19).
Next, it is investigated whether a read request for the logical storage device 104 can be accepted. If the access restriction is in a read / write prohibited state, the read is rejected and error processing is performed (step S25). If the access restriction is in a write-inhibited state or a readable / writable state, it is determined that reading is possible and the processing is continued (step S20).

次に、論理記憶装置104に対応する論理記憶装置IDと、論理記憶アドレスと、データサイズを元に当該データ読み出し要求が論理記憶装置上のいずれの領域に対応する要求であるか判断し、論理記憶割り当て管理テーブル302を参照して、当該読み出し要求に対応する論理記憶アドレスに対応する割り当て物理ブロックIDを取得する(ステップS21)。
次に、割り当て物理ブロックIDを参照し、当該論理記憶装置のアドレスに対して既に物理ブロックが割り当て済であるかどうかを判断する(ステップS22)。物理ブロックが割り当て済であれば、物理ブロックIDが示す物理記憶スペースからデータの読み出し処理を行ない正常応答を返却する(ステップS23)。物理ブロックが未割り当てであれば、当該領域は有効な書き込みデータを記録していないと判断し、0データを生成して読み出し処理の結果として応答を返却する(ステップS24)。
Next, based on the logical storage device ID corresponding to the logical storage device 104, the logical storage address, and the data size, it is determined which area on the logical storage device the data read request corresponds to. With reference to the storage allocation management table 302, an allocation physical block ID corresponding to the logical storage address corresponding to the read request is acquired (step S21).
Next, with reference to the assigned physical block ID, it is determined whether a physical block has already been assigned to the address of the logical storage device (step S22). If the physical block has been allocated, data is read from the physical storage space indicated by the physical block ID, and a normal response is returned (step S23). If the physical block is not allocated, it is determined that the area does not record valid write data, 0 data is generated, and a response is returned as a result of the read process (step S24).

図6は、論理記憶アクセス制限管理手段202の動作を示すフローチャートである。
論理記憶アクセス制限管理手段202は、ストレージ管理アプリケーション130から論理記憶装置ID、アクセス制限モード(読み書き可能、書き込み不可、読み書き不可)、保管期限(年月日)、変更モード(可/不可)、初期化モード(有効/無効)を指定されてアクセス制限変更要求を受けることにより動作する。
まず、論理記憶アクセス制限管理手段202は、論理記憶アクセス制限管理テーブル303を参照し、要求された論理記憶装置IDのエントリに該当する保管期限と変更フラグを取得する(ステップS31)。
FIG. 6 is a flowchart showing the operation of the logical storage access restriction management unit 202.
The logical storage access restriction management unit 202 receives the logical storage device ID, access restriction mode (read / write, write impossible, read / write impossible), storage deadline (year / month / day), change mode (possible / impossible), initial from the storage management application 130 It operates by receiving an access restriction change request with the activation mode (enabled / disabled) specified.
First, the logical storage access restriction management unit 202 refers to the logical storage access restriction management table 303, and obtains a storage time limit and a change flag corresponding to the requested logical storage device ID entry (step S31).

次に、論理記憶装置IDに該当する論理記憶装置のアクセス制限の変更可否を調査する。変更フラグが可能を示す場合、または現在時刻が保管期限を経過している場合は、アクセス制限変更が変更と判断する(ステップS32)。アクセス制限が変更可能の場合、要求されたアクセス制限モード、保管期限、変更モードを用いて論理記憶アクセス制限管理テーブル303を更新する(ステップS33)。
次に、要求された初期化モードが有効であるかどうかを判断する(ステップS34)。初期化モードが有効であれば(変更要求に初期化指示が含まれる場合の一例)、論理記憶アクセス制限の設定解除と同時に論理記憶装置の初期化処理を行うことが要求されたと判断し、論理記憶割り当て解除手段204を呼び出して、論理記憶装置104の論理記憶領域上に割り当てられた物理ブロックを全て解放する(ステップS35)。
Next, it is investigated whether or not the access restriction of the logical storage device corresponding to the logical storage device ID can be changed. If the change flag indicates possible or if the current time has passed the storage deadline, it is determined that the access restriction change is a change (step S32). If the access restriction can be changed, the logical storage access restriction management table 303 is updated using the requested access restriction mode, storage time limit, and change mode (step S33).
Next, it is determined whether or not the requested initialization mode is valid (step S34). If the initialization mode is valid (an example in which an initialization instruction is included in the change request), it is determined that the initialization of the logical storage device is requested at the same time that the logical storage access restriction setting is released, and the logical The storage allocation cancellation unit 204 is called to release all physical blocks allocated on the logical storage area of the logical storage device 104 (step S35).

図7は、論理記憶割り当て登録手段203の動作を示すフローチャートである。
論理記憶割り当て登録手段203は、論理記憶アクセス制御手段201から割り当て対象とする論理記憶領域のアドレスを指定されて動作する。
まず、論理記憶割り当て登録手段203は、物理記憶割り当て管理テーブル301の割り当てフラグを参照し、割り当てフラグが済ではない空いている物理記憶スペースの領域を確認し、割り当て可能な物理ブロックIDを取得する。同時に、取得した割り当て可能な物理ブロックIDを示すエントリの割り当てフラグには割り当て済であることを示す情報を記録し、物理記憶割り当て管理テーブル301を更新する(ステップS41)。
次に、論理記憶割り当て管理テーブル302を参照し、要求された論理記憶領域のアドレスに該当するエントリの割り当てブロックIDに対し、前記ステップで取得した割り当て可能な物理ブロックIDを値として記録し、論理記憶割り当て管理テーブル302を更新する(ステップS42)。
FIG. 7 is a flowchart showing the operation of the logical storage allocation registration unit 203.
The logical storage allocation registration unit 203 operates by specifying the address of the logical storage area to be allocated from the logical storage access control unit 201.
First, the logical storage allocation registration unit 203 refers to an allocation flag in the physical storage allocation management table 301, confirms an area of an empty physical storage space that has not been allocated, and acquires an assignable physical block ID. . At the same time, information indicating that allocation has been performed is recorded in the allocation flag of the entry indicating the acquired allocatable physical block ID, and the physical storage allocation management table 301 is updated (step S41).
Next, referring to the logical storage allocation management table 302, the assignable physical block ID obtained in the above step is recorded as a value for the allocation block ID of the entry corresponding to the requested logical storage area address, The storage allocation management table 302 is updated (step S42).

図8は、論理記憶割り当て解除手段204の動作を示すフローチャートである。
論理記憶割り当て解除手段204は、論理記憶アクセス制限管理手段202から解除対象とする一つ以上の論理記憶領域のアドレスを指定されて動作する。
まず、論理記憶割り当て解除手段204は、論理記憶割り当て管理テーブル302を参照し、要求された論理記憶領域のアドレスに該当するエントリの割り当てブロックIDを取得し、当該エントリの割り当てブロックIDに対して未割り当て状態であることを記録して論理記憶割り当て管理テーブル302を更新する。これにより、論理記憶装置に対して割り当てられた物理ブロックは解除される(ステップS51)。
次に、物理記憶割り当て管理テーブル301を参照し、前記ステップにおいて解除した物理ブロックIDについてそれぞれ該当するエントリの割り当てフラグを未割り当て状態として物理記憶割り当て管理テーブル301を更新する。これにより、解除した物理ブロックは空きブロックとなり他の論理記憶装置の領域として再利用可能となる(ステップS52)。
FIG. 8 is a flowchart showing the operation of the logical storage allocation cancellation unit 204.
The logical storage allocation cancellation unit 204 operates by specifying addresses of one or more logical storage areas to be canceled from the logical storage access restriction management unit 202.
First, the logical storage allocation release unit 204 refers to the logical storage allocation management table 302, obtains the allocation block ID of the entry corresponding to the address of the requested logical storage area, and does not execute the allocation block ID of the entry. The allocation state is recorded and the logical storage allocation management table 302 is updated. Thereby, the physical block assigned to the logical storage device is released (step S51).
Next, the physical storage allocation management table 301 is updated with reference to the physical storage allocation management table 301 with the allocation flag of the entry corresponding to the physical block ID released in the above step set to an unallocated state. As a result, the released physical block becomes an empty block and can be reused as an area of another logical storage device (step S52).

ストレージ装置100によれば、論理記憶アクセス制限管理テーブル303には、各論理記憶装置104に設定されているアクセス制限モード、変更フラグ、保管期限が記憶されていて、論理記憶アクセス制限管理手段202は、ホスト計算機110の変更要求に応じてこれらの情報を随時更新する。
論理記憶アクセス制御手段201は、論理記憶アクセス制限管理テーブル303を参照してアクセス制限モードにしたがってホスト計算機110が発行した命令を実行する。このとき、書き込み命令の対象となっている論理記憶装置104の領域に物理ブロック103が割り当てられていなければ、論理記憶割り当て登録手段203を作動させて割り当てを行い、読み出し命令の対象となっている論理記憶装置104の領域に物理ブロック103が割り当てられていなければ、ホスト計算機110にゼロデータを返却する。
そのため、論理記憶装置104のアクセス制限を実装した場合でも論理記憶装置104に最初から物理ブロック103を割り当てておく必要がなくなり、物理記憶スペース102の利用効率を高めることが出来る。すなわち、物理記憶領域を無駄にすることなく有効活用でき、ストレージにかかるコストを低減することができる。
According to the storage apparatus 100, the logical storage access restriction management table 303 stores the access restriction mode, the change flag, and the storage time limit set for each logical storage apparatus 104. In response to a change request from the host computer 110, the information is updated as needed.
The logical storage access control unit 201 executes an instruction issued by the host computer 110 according to the access restriction mode with reference to the logical storage access restriction management table 303. At this time, if the physical block 103 is not allocated to the area of the logical storage device 104 that is the target of the write command, the logical storage allocation registration unit 203 is operated to perform the allocation, and is the target of the read command. If the physical block 103 is not allocated to the area of the logical storage device 104, zero data is returned to the host computer 110.
Therefore, even when the access restriction of the logical storage device 104 is implemented, it is not necessary to assign the physical block 103 to the logical storage device 104 from the beginning, and the utilization efficiency of the physical storage space 102 can be improved. That is, the physical storage area can be effectively used without wasting it, and the cost for storage can be reduced.

また、ストレージ装置100によれば、論理記憶アクセス制限管理手段202は、変更要求の初期化モードが有効である場合には、論理記憶割り当て解除手段204を作動させて変更要求に含まれる識別情報に対応する論理記憶装置104に対する物理ブロック103の割り当てをすべて解除する。
そのため、保管期限が経過し論理記憶装置104に記憶されているデータを保持する必要がなくなったときには、その論理記憶装置104に割り当てられていた物理ブロック103を即座に開放し、有効に利用することが出来る。
Further, according to the storage apparatus 100, when the change request initialization mode is valid, the logical storage access restriction management unit 202 operates the logical storage allocation release unit 204 to identify information included in the change request. All assignments of the physical block 103 to the corresponding logical storage device 104 are released.
Therefore, when it is no longer necessary to hold the data stored in the logical storage device 104 after the expiration date, the physical block 103 assigned to the logical storage device 104 is immediately released and used effectively. I can do it.

本発明の一実施形態であるストレージ装置のブロック図である。1 is a block diagram of a storage apparatus according to an embodiment of the present invention. 物理記憶割り当て管理テーブルの一例を示した図である。It is the figure which showed an example of the physical storage allocation management table. 論理記憶割り当て管理テーブルの一例を示した図である。It is the figure which showed an example of the logical storage allocation management table. 論理記憶アクセス制限管理テーブルの一例を示した図である。It is the figure which showed an example of the logical storage access restriction management table. 論理記憶アクセス制御手段の動作を示すフローチャートである。It is a flowchart which shows operation | movement of a logical memory access control means. 論理記憶アクセス制限管理手段の動作を示すフローチャートである。It is a flowchart which shows operation | movement of a logical memory access restriction management means. 論理記憶割り当て登録手段の動作を示すフローチャートである。It is a flowchart which shows operation | movement of a logical memory allocation registration means. 論理記憶割り当て解除手段の動作を示すフローチャートである。It is a flowchart which shows operation | movement of a logical memory allocation cancellation means.

符号の説明Explanation of symbols

100 ストレージ装置
101 物理記憶装置
102 物理記憶スペース
103 物理ブロック
104 論理記憶装置
110 ホスト計算機
120 業務アプリケーション
130 ストレージ管理アプリケーション
201 論理記憶アクセス制御手段
202 論理記憶アクセス制限管理手段
203 論理記憶割り当て登録手段
204 論理記憶割り当て解除手段
301 物理記憶割り当て管理テーブル
302 論理記憶割り当て管理テーブル
303 物理記憶アクセス制限管理テーブル
DESCRIPTION OF SYMBOLS 100 Storage apparatus 101 Physical storage apparatus 102 Physical storage space 103 Physical block 104 Logical storage apparatus 110 Host computer 120 Business application 130 Storage management application 201 Logical storage access control means 202 Logical storage access restriction management means 203 Logical storage allocation registration means 204 Logical storage Allocation release means 301 Physical storage allocation management table 302 Logical storage allocation management table 303 Physical storage access restriction management table

Claims (6)

ホスト計算機からの命令に応じて論理記憶装置に対する書き込みおよび読み出しを行うストレージ装置において、
前記論理記憶装置に設定されているアクセス制限モードとこのアクセス制限モードの変更の可否を示す変更フラグと前記論理記憶装置に格納されている情報の保管期限とを前記論理記憶装置の識別情報に対応付けて記憶する論理記憶アクセス制限管理テーブルと、
前記論理記憶装置に物理記憶装置の物理ブロックを割り当てる論理記憶割り当て登録手段と、
前記ホスト計算機から前記識別情報と前記アクセス制限モードと前記保管期間とを含む変更要求を受信したときに、前記論理記憶アクセス制限管理テーブルを参照し、前記変更要求の対象となっている前記論理記憶装置の前記変更フラグが変更可能であること示している場合または現在時刻が前記保管期限を経過している場合に前記変更要求に含まれる情報で前記論理記憶アクセス制限管理テーブルを更新する論理記憶アクセス制限管理手段と、
前記論理記憶アクセス制限管理テーブルに記憶された情報に従って前記命令の実行をするとともに、前記命令が前記論理記憶装置の前記物理ブロックが割り当てられていない未割り当て領域に対する書き込み命令である場合は前記論理記憶割り当て登録手段を作動させ前記未割り当て領域に前記物理ブロックを割り当てる機能と、前記命令が前記未割り当て領域に対する読み出し命令である場合は前記ホスト計算機にゼロデータを返却する論理記憶アクセス制御手段と、を備えたことを特徴としたストレージ装置。
In a storage device that writes to and reads from a logical storage device in response to a command from a host computer,
Corresponding the access restriction mode set in the logical storage device, the change flag indicating whether or not the access restriction mode can be changed, and the storage expiration date of the information stored in the logical storage device to the identification information of the logical storage device Logical storage access restriction management table to store with,
Logical storage allocation registration means for allocating physical blocks of physical storage devices to the logical storage devices;
When the change request including the identification information, the access restriction mode, and the storage period is received from the host computer, the logical storage that is the target of the change request is referred to the logical storage access restriction management table. Logical storage access that updates the logical storage access restriction management table with information included in the change request when the change flag of the device indicates that it can be changed or when the current time has passed the storage deadline Limit management means,
The instruction is executed according to the information stored in the logical storage access restriction management table, and the logical storage if the instruction is a write instruction to an unallocated area to which the physical block of the logical storage device is not allocated. A function for allocating the physical block to the unallocated area by operating an allocation registration unit, and a logical storage access control unit for returning zero data to the host computer if the instruction is a read command for the unallocated area. A storage device characterized by comprising.
前記論理記憶装置に割り当てられた前記物理ブロックの割り当てを解除する論理記憶割り当て解除手段を備え、
前記論理記憶アクセス制限管理手段は、前記変更要求に初期化指示が含まれる場合に前記論理記憶割り当て解除手段を作動させて前記変更要求に含まれる前記識別情報に対応する前記論理記憶装置に対する前記物理ブロックの割り当てをすべて解除する機能を備えたことを特徴とした請求項1に記載のストレージ装置。
Logical storage deallocating means for deallocating the physical block allocated to the logical storage device;
The logical storage access restriction management means activates the logical storage deallocation means when the change request includes an initialization instruction, and performs the physical storage for the logical storage device corresponding to the identification information included in the change request. The storage apparatus according to claim 1, further comprising a function of canceling all block assignments.
ホスト計算機からの命令に応じて論理記憶装置に対する書き込みおよび読み出しを行うストレージ装置の制御方法において、
前記論理記憶装置に設定されているアクセス制限モードとこのアクセス制限モードの変更の可否を示す変更フラグと前記論理記憶装置に格納されている情報の保管期限とを前記論理記憶装置の識別情報に対応付けて記憶する論理記憶アクセス制限管理テーブルを記憶装置に記憶する工程と、
前記ホスト計算機から前記識別情報と前記アクセス制限モードと前記保管期間とを含む変更要求を受信したときに、前記論理記憶アクセス制限管理テーブルを参照し、前記変更要求の対象となっている前記論理記憶装置の前記変更フラグが変更可能であること示している場合または現在時刻が前記保管期限を経過している場合に前記変更要求に含まれる情報で前記論理記憶アクセス制限管理テーブルを更新する論理記憶アクセス制限管理工程と、
前記論理記憶アクセス制限管理テーブルに記憶された情報に従って前記命令の実行をするとともに、前記命令が前記論理記憶装置の前記物理ブロックが割り当てられていない未割り当て領域に対する書き込み命令である場合は前記未割り当て領域に前記物理ブロックを割り当て、前記命令が前記未割り当て領域に対する読み出し命令である場合は前記ホスト計算機にゼロデータを返却する論理記憶アクセス制御工程と、を備えたことを特徴としたストレージ装置のアクセス制御方法。
In a control method of a storage device that performs writing and reading to a logical storage device in response to a command from a host computer,
Corresponding the access restriction mode set in the logical storage device, the change flag indicating whether or not the access restriction mode can be changed, and the storage expiration date of the information stored in the logical storage device to the identification information of the logical storage device Storing a logical storage access restriction management table to be stored in a storage device;
When the change request including the identification information, the access restriction mode, and the storage period is received from the host computer, the logical storage that is the target of the change request is referred to the logical storage access restriction management table. Logical storage access that updates the logical storage access restriction management table with information included in the change request when the change flag of the device indicates that it can be changed or when the current time has passed the storage deadline Restriction management process;
The instruction is executed in accordance with the information stored in the logical storage access restriction management table, and the unassigned when the instruction is a write instruction to an unassigned area to which the physical block of the logical storage device is not assigned. And a logical storage access control step for allocating the physical block to an area and returning zero data to the host computer when the instruction is a read instruction for the unallocated area. Control method.
前記論理記憶アクセス制限管理工程では、前記変更要求に初期化指示が含まれる場合に前記変更要求に含まれる前記識別情報に対応する前記論理記憶装置に対する前記物理ブロックの割り当てをすべて解除することを特徴とした請求項3に記載のストレージ装置のアクセス制御方法。   In the logical storage access restriction management step, when an initialization instruction is included in the change request, all allocation of the physical block to the logical storage device corresponding to the identification information included in the change request is canceled. The storage device access control method according to claim 3. ホスト計算機からの命令に応じて論理記憶装置に対する書き込みおよび読み出しを行うストレージ装置の制御プログラムにおいて、
前記ストレージ装置に内蔵されたコンピュータに、
前記論理記憶装置に設定されているアクセス制限モードとこのアクセス制限モードの変更の可否を示す変更フラグと前記論理記憶装置に格納されている情報の保管期限とを前記論理記憶装置の識別情報に対応付けて記憶する論理記憶アクセス制限管理テーブルを記憶装置に記憶する機能と、
前記ホスト計算機から前記識別情報と前記アクセス制限モードと前記保管期間とを含む変更要求を受信したときに、前記論理記憶アクセス制限管理テーブルを参照し、前記変更要求の対象となっている前記論理記憶装置の前記変更フラグが変更可能であること示している場合または現在時刻が前記保管期限を経過している場合に前記変更要求に含まれる情報で前記論理記憶アクセス制限管理テーブルを更新する論理記憶アクセス制限管理機能と、
前記論理記憶アクセス制限管理テーブルに記憶された情報に従って前記命令の実行をするとともに、前記命令が前記論理記憶装置の前記物理ブロックが割り当てられていない未割り当て領域に対する書き込み命令である場合は前記未割り当て領域に前記物理ブロックを割り当て、前記命令が前記未割り当て領域に対する読み出し命令である場合は前記ホスト計算機にゼロデータを返却する論理記憶アクセス制御機能と、を実行させることを特徴としたストレージ装置のアクセス制御プログラム。
In a control program for a storage device that writes to and reads from a logical storage device in response to a command from a host computer,
In the computer built in the storage device,
Corresponding the access restriction mode set in the logical storage device, the change flag indicating whether or not the access restriction mode can be changed, and the storage expiration date of the information stored in the logical storage device to the identification information of the logical storage device A function of storing a logical storage access restriction management table to be stored in a storage device;
When the change request including the identification information, the access restriction mode, and the storage period is received from the host computer, the logical storage that is the target of the change request is referred to the logical storage access restriction management table. Logical storage access that updates the logical storage access restriction management table with information included in the change request when the change flag of the device indicates that it can be changed or when the current time has passed the storage deadline Limit management function,
The instruction is executed according to the information stored in the logical storage access restriction management table, and the unassigned when the instruction is a write instruction to an unassigned area to which the physical block of the logical storage device is not assigned. A storage device access characterized by allocating the physical block to an area and executing a logical storage access control function for returning zero data to the host computer when the instruction is a read instruction for the unallocated area Control program.
前記論理記憶アクセス制限管理機能は、前記変更要求に初期化指示が含まれる場合に前記変更要求に含まれる前記識別情報に対応する前記論理記憶装置に対する前記物理ブロックの割り当てをすべて解除するものであることを特徴とした請求項5に記載のストレージ装置のアクセス制御プログラム。   The logical storage access restriction management function is for canceling all allocation of the physical block to the logical storage device corresponding to the identification information included in the change request when an initialization instruction is included in the change request. The storage device access control program according to claim 5, wherein the storage device access control program is a storage device access control program.
JP2006311977A 2006-11-17 2006-11-17 Storage device, storage device access control method, and storage device access control program Expired - Fee Related JP4577300B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2006311977A JP4577300B2 (en) 2006-11-17 2006-11-17 Storage device, storage device access control method, and storage device access control program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2006311977A JP4577300B2 (en) 2006-11-17 2006-11-17 Storage device, storage device access control method, and storage device access control program

Publications (2)

Publication Number Publication Date
JP2008129722A JP2008129722A (en) 2008-06-05
JP4577300B2 true JP4577300B2 (en) 2010-11-10

Family

ID=39555490

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2006311977A Expired - Fee Related JP4577300B2 (en) 2006-11-17 2006-11-17 Storage device, storage device access control method, and storage device access control program

Country Status (1)

Country Link
JP (1) JP4577300B2 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002108714A (en) * 2000-09-29 2002-04-12 Sony Corp Memory device and access limiting method
JP2005135116A (en) * 2003-10-29 2005-05-26 Nec Corp Storage device and access control method thereof
JP2006065446A (en) * 2004-08-25 2006-03-09 Konica Minolta Business Technologies Inc File management apparatus
JP2007264897A (en) * 2006-03-28 2007-10-11 Nec Corp Information processing apparatus, data management method and program

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002108714A (en) * 2000-09-29 2002-04-12 Sony Corp Memory device and access limiting method
JP2005135116A (en) * 2003-10-29 2005-05-26 Nec Corp Storage device and access control method thereof
JP2006065446A (en) * 2004-08-25 2006-03-09 Konica Minolta Business Technologies Inc File management apparatus
JP2007264897A (en) * 2006-03-28 2007-10-11 Nec Corp Information processing apparatus, data management method and program

Also Published As

Publication number Publication date
JP2008129722A (en) 2008-06-05

Similar Documents

Publication Publication Date Title
US8019930B2 (en) Storage system and storage management method for controlling off-line mode and on-line mode of flash memory
US8782327B1 (en) System and method for managing execution of internal commands and host commands in a solid-state memory
JP4688584B2 (en) Storage device
US20080201544A1 (en) Storage system
CN106104502B (en) System, method and medium for storage system affairs
JP2006338341A5 (en)
US20120260025A1 (en) Method for controlling memory system, information processing apparatus, and storage medium
JP7326430B2 (en) Method and Apparatus for Use in Sanitizing Networks of Non-Volatile Memory Express Devices
JP2010020431A (en) Storage system and method for changing storage capacity related to device designated by host device
JP2002358165A5 (en)
CN111695163B (en) Storage device and control method
JP2009093571A (en) Storage control apparatus, data archive method for storage control apparatus, and storage system
EP1771862A1 (en) Method and device to improve usb flash write performance
JP4630734B2 (en) Logical volume management device, logical volume management method and program
JP5612681B2 (en) Virtual computer system, area management method, and program
JP2005135116A (en) Storage device and access control method thereof
JP2007133807A (en) Data processing system, storage device, and management unit
US9547450B2 (en) Method and apparatus to change tiers
JP4577300B2 (en) Storage device, storage device access control method, and storage device access control program
EP2921965A1 (en) Information processing device and shared memory management method
EP2672390B1 (en) Memory controller
JP4211385B2 (en) Semiconductor memory card and management information updating method
JP6175566B2 (en) Storage system and storage control method
JP5768118B2 (en) Storage system having multiple flash packages
JP4972410B2 (en) Method for controlling access in flash memory and system for implementation of such method

Legal Events

Date Code Title Description
TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20100727

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20100809

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130903

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Ref document number: 4577300

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees