JP6600818B2 - Data erasure method - Google Patents

Data erasure method Download PDF

Info

Publication number
JP6600818B2
JP6600818B2 JP2016122291A JP2016122291A JP6600818B2 JP 6600818 B2 JP6600818 B2 JP 6600818B2 JP 2016122291 A JP2016122291 A JP 2016122291A JP 2016122291 A JP2016122291 A JP 2016122291A JP 6600818 B2 JP6600818 B2 JP 6600818B2
Authority
JP
Japan
Prior art keywords
data
replacement
recording
target
write
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.)
Active
Application number
JP2016122291A
Other languages
Japanese (ja)
Other versions
JP2017045500A (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.)
Panasonic Intellectual Property Management Co Ltd
Original Assignee
Panasonic Intellectual Property Management Co Ltd
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 Panasonic Intellectual Property Management Co Ltd filed Critical Panasonic Intellectual Property Management Co Ltd
Priority to US15/248,577 priority Critical patent/US10042582B2/en
Publication of JP2017045500A publication Critical patent/JP2017045500A/en
Application granted granted Critical
Publication of JP6600818B2 publication Critical patent/JP6600818B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本開示は、追記型光ディスクを複数使用したRAID(Redundant Arrays of Inexpensive Disks)システムに記録されたデータを消去する方法に関する。   The present disclosure relates to a method of erasing data recorded in a RAID (Redundant Arrays of Inexpensive Disks) system using a plurality of write-once optical discs.

DVD−RやBD−R等の追記型光ディスクは、一旦記録した記録マークを書き換えることができない記録媒体である。特許文献1は、追記型光ディスクに記録したデータを消去する光ディスクデータ消去装置を開示する。   A write-once optical disc such as a DVD-R or a BD-R is a recording medium in which a recording mark once recorded cannot be rewritten. Patent Document 1 discloses an optical disc data erasing apparatus that erases data recorded on a write-once optical disc.

特許文献1の光ディスクデータ消去装置は、記録時の記録パワーでレーザービームを照射して上書きを行い、記録データを消去することを可能としている。これにより消去した箇所は再生不能となる。   The optical disk data erasing apparatus of Patent Document 1 is capable of erasing recorded data by irradiating a laser beam with a recording power at the time of recording to perform overwriting. As a result, the erased portion cannot be reproduced.

一方、光ディスクは交換可能な記録媒体であるため、埃や傷などによってその記録面に欠陥が存在し得る。そのため光ディスクへの記録再生を行う光ディスクドライブ装置では、記録再生データの信頼性保証のために欠陥管理を行うのが一般的である(例えば特許文献2参照)。   On the other hand, since an optical disk is a replaceable recording medium, a defect may exist on the recording surface due to dust or scratches. For this reason, in an optical disc drive apparatus that performs recording / reproduction on an optical disc, defect management is generally performed to guarantee the reliability of the recording / reproduction data (see, for example, Patent Document 2).

またさらに信頼性向上のために、複数の光ディスクを使用してRAIDシステムを構成することも可能である。特許文献3の記録装置は、複数の記録媒体をマガジンに格納し、記録装置内の複数のドライブユニットにマガジン内の記録媒体を搬送し、複数の記録媒体へ並列に記録するRAID制御部を設けることにより、マガジン単位でRAIDを構成することを可能としている。   In order to further improve the reliability, it is possible to configure a RAID system using a plurality of optical disks. The recording apparatus disclosed in Patent Document 3 includes a RAID control unit that stores a plurality of recording media in a magazine, conveys the recording medium in the magazine to a plurality of drive units in the recording apparatus, and records in parallel on the plurality of recording media. Thus, it is possible to configure a RAID for each magazine.

特開2002−245635号公報JP 2002-245635 A 特開2011−154777号公報JP 2011-154777 A 国際公開第2013/005418号International Publication No. 2013/005418

本開示は、RAIDを構成する複数の追記型光ディスクにストライプ記録されたデータを消去するデータ消去方法を提供する。   The present disclosure provides a data erasing method for erasing data recorded in stripes on a plurality of write-once optical disks constituting a RAID.

本開示におけるデータ消去方法は、RAIDを構成する、複数のデータ記録用ブロックと誤り検出用ブロックとを有する、複数の追記型光ディスクにストライプ記録されたデータを消去するデータ消去方法である。データ消去方法は、消去対象のデータである対象データが記録されたデータ記録用ブロックである少なくとも1つの対象ブロックおよび誤り検出用ブロックを所定の交替領域に交替記録する。また、対象ブロックを、対象データが正しく読み出せなくなるように上書きする。   The data erasing method according to the present disclosure is a data erasing method for erasing data recorded in stripes on a plurality of write-once optical discs, which includes a plurality of data recording blocks and error detection blocks, which constitute a RAID. In the data erasing method, at least one target block that is a data recording block in which target data that is data to be erased is recorded and an error detection block are alternately recorded in a predetermined replacement area. The target block is overwritten so that the target data cannot be read correctly.

本開示におけるデータ消去方法は、追記型光ディスクを複数使用したRAIDシステムに記録されたデータを消去するのに有効である。   The data erasing method according to the present disclosure is effective for erasing data recorded in a RAID system using a plurality of write-once optical discs.

実施の形態1のシステム構成図System configuration diagram of Embodiment 1 実施の形態1の光ディスクRAIDの構成を示す図The figure which shows the structure of the optical disk RAID of Embodiment 1. FIG. 実施の形態1のファイルシステム管理情報を示す図The figure which shows the file system management information of Embodiment 1 実施の形態1の交替管理情報を示す図The figure which shows the replacement management information of Embodiment 1. 実施の形態1の交替管理情報を示す図The figure which shows the replacement management information of Embodiment 1. 実施の形態1のアプリケーションのファイル消去処理を示すフローチャートFlowchart showing the file erasing process of the application of the first embodiment 実施の形態1の光ディスクRAIDシステムのセクタ消去処理を示すフローチャート6 is a flowchart showing sector erasure processing of the optical disk RAID system according to the first embodiment. 実施の形態2のアプリケーションのファイル消去処理を示すフローチャートFlowchart showing the file erasure process of the application of the second embodiment 実施の形態2の複数ファイルの消去を行った場合の交替管理情報を示す図The figure which shows replacement management information at the time of deleting the several file of Embodiment 2. 実施の形態2の複数ファイルの消去を行った場合の交替管理情報を示す図The figure which shows replacement management information at the time of deleting the several file of Embodiment 2. 実施の形態2の複数ファイルの消去を行った場合の交替管理情報を示す図The figure which shows replacement management information at the time of deleting the several file of Embodiment 2. 実施の形態2の複数ファイルの消去を行った場合の交替管理情報を示す図The figure which shows replacement management information at the time of deleting the several file of Embodiment 2. 光ディスクRAIDシステムにおけるデータ消去の概要を説明する図The figure explaining the outline | summary of the data deletion in an optical disk RAID system

以下、適宜図面を参照しながら、実施の形態を詳細に説明する。但し、必要以上に詳細な説明は省略する場合がある。例えば、既によく知られた事項の詳細説明や実質的に同一の構成に対する重複説明を省略する場合がある。これは、以下の説明が不必要に冗長になるのを避け、当業者の理解を容易にするためである。   Hereinafter, embodiments will be described in detail with reference to the drawings as appropriate. However, more detailed description than necessary may be omitted. For example, detailed descriptions of already well-known matters and repeated descriptions for substantially the same configuration may be omitted. This is to avoid the following description from becoming unnecessarily redundant and to facilitate understanding by those skilled in the art.

なお、発明者(ら)は、当業者が本開示を十分に理解するために添付図面および以下の説明を提供するのであって、これらによって特許請求の範囲に記載の主題を限定することを意図するものではない。   The inventor (s) provides the accompanying drawings and the following description in order for those skilled in the art to fully understand the present disclosure, and is intended to limit the subject matter described in the claims. Not what you want.

(本開示に係る一形態に至った経緯)
図9は、追記型光ディスクを複数使用したRAIDシステム(以下、光ディスクRAIDシステム)における、データ消去の概要を説明する図である。追記型光ディスク901、902、903、904を使用してRAID5のシステムを構成している。追記型光ディスク上にはセクタが配置されている。例えば光ディスク901にはアドレスD10、D11、D12、D13のセクタが配置されている。RAIDシステムとしてはアドレスA1〜A12が割り当てられている。アドレスP1、P2、P3、P4はパリティを保存するためのセクタである。ファイル1がセクタ群905に、ファイル2がセクタ群906に記録されている。
(Background to the form related to the present disclosure)
FIG. 9 is a diagram for explaining the outline of data erasure in a RAID system using a plurality of write-once optical disks (hereinafter, optical disk RAID system). A RAID 5 system is configured by using write-once optical disks 901, 902, 903, and 904. Sectors are arranged on the write-once optical disc. For example, sectors of addresses D10, D11, D12, and D13 are arranged on the optical disc 901. Addresses A1 to A12 are assigned as the RAID system. Addresses P1, P2, P3, and P4 are sectors for storing parity. File 1 is recorded in sector group 905 and file 2 is recorded in sector group 906.

RAIDシステムよりファイル1を読み出す場合、RAIDシステムのアドレスA1、A2、A3、A4のセクタ内容を読み出せばよい。これは光ディスク901のアドレスD10、D11、光ディスク902のアドレスD20、光ディスク903のアドレスD30を読み出すことに相当する。ここで、アドレスA2が再生できない場合、RAIDシステムはアドレスA1、A3、およびパリティP1の内容から、アドレスA2の内容を復元して再生する。すなわち、一つの光ディスクから読み出しが不可能でも、RAIDシステムとしては読み出しが可能となる冗長性を確保している。   When reading the file 1 from the RAID system, the sector contents of the addresses A1, A2, A3 and A4 of the RAID system may be read. This corresponds to reading the addresses D10 and D11 of the optical disc 901, the address D20 of the optical disc 902, and the address D30 of the optical disc 903. Here, when the address A2 cannot be reproduced, the RAID system restores and reproduces the contents of the address A2 from the contents of the addresses A1, A3 and the parity P1. That is, even if reading from one optical disk is impossible, the RAID system ensures redundancy that enables reading.

ファイル1を消去する場合は、ファイル1が保存されているアドレスA1〜A4を消去する。しかしながら、アドレスA4については消去を行ったとしても、アドレスA5,A6及びパリティP2から復元が可能であるためファイル1は完全に消去されていないことになる。   When erasing file 1, addresses A1 to A4 where file 1 is stored are erased. However, even if the address A4 is erased, the file 1 is not completely erased because it can be restored from the addresses A5 and A6 and the parity P2.

また、ファイル1の消去後のファイル2の再生時に、例えばアドレスA5が読み出し不可能であった場合、アドレスA4、A6、パリティP2を再生してアドレスA5の内容を復元しようとしても、すでにアドレスA4は消去されていて再生不能のため、読み出しがエラーになり復元が不可能になってしまう。すなわち冗長度が低下した状態になる。   Further, when the file A after the deletion of the file 1 is reproduced, for example, when the address A5 cannot be read, even if the addresses A4, A6 and the parity P2 are reproduced to restore the contents of the address A5, the address A4 is already restored. Since is erased and cannot be reproduced, reading will result in an error, making restoration impossible. That is, the redundancy is lowered.

そこで本開示は、追記型光ディスクを複数使用したRAIDシステムの冗長性を確保しながら記録されたデータを消去する方法を提供する。   Therefore, the present disclosure provides a method for erasing recorded data while ensuring redundancy of a RAID system using a plurality of write-once optical disks.

(実施の形態1)
図1は、光ディスクRAIDシステムのデータ消去方法における実施の形態の構成を示した図である。図1において、サーバー107は、アプリケーション110、SCSI(Small Computer System Interface)ライブラリ108、およびUDF(Universal Disk Format)ドライバー109として動作する。より具体的には、サーバー107は、CPUと、メモリと、HDD(Hard Disk Drive)とを備える。HDDは、各種プログラムを記憶している。CPUは、HDDから各種プログラムをメモリに読み出して実行することにより、アプリケーション110、SCSIライブラリ108、およびUDFドライバー109として動作する。
(Embodiment 1)
FIG. 1 is a diagram showing a configuration of an embodiment of a data erasing method of an optical disk RAID system. In FIG. 1, a server 107 operates as an application 110, a SCSI (Small Computer System Interface) library 108, and a UDF (Universal Disk Format) driver 109. More specifically, the server 107 includes a CPU, a memory, and an HDD (Hard Disk Drive). The HDD stores various programs. The CPU operates as the application 110, the SCSI library 108, and the UDF driver 109 by reading various programs from the HDD into the memory and executing them.

サーバー107は、光ディスクRAIDシステム111と接続されている。アプリケーション110は、SCSIライブラリ108もしくはUDFドライバー109を通じて、SCSIコマンドを使用して光ディスクRAIDシステム111を制御する。   The server 107 is connected to the optical disk RAID system 111. The application 110 controls the optical disk RAID system 111 using a SCSI command through the SCSI library 108 or the UDF driver 109.

光ディスクRAIDシステム111は、コントローラー101、複数のドライブ102、マガジン104、複数の光ディスク105、マガジン搬送機構103、および光ディスク搬送機構106を備える。本実施の形態では、光ディスクRAIDシステム111は、4台のドライブ102を備えている。   The optical disk RAID system 111 includes a controller 101, a plurality of drives 102, a magazine 104, a plurality of optical disks 105, a magazine transport mechanism 103, and an optical disk transport mechanism 106. In the present embodiment, the optical disk RAID system 111 includes four drives 102.

アプリケーション110がマガジン104の光ディスク105にファイルを記録する場合、以下のように記録する。ここではファイル1、ファイル2を記録する場合を例に挙げて説明する。   When the application 110 records a file on the optical disk 105 of the magazine 104, it records as follows. Here, a case where the file 1 and the file 2 are recorded will be described as an example.

アプリケーション110は、SCSIライブラリ108を通じて、光ディスクRAIDシステム111のコントローラー101に対し、マガジン104内の光ディスク105をドライブ102に装填するように指示する。コントローラー101は、マガジン搬送機構103に対し、マガジン104を装填位置まで搬送するように指示する。マガジン搬送機構103は、マガジン104を搬送し、ドライブ102に光ディスク105を装填することが可能な位置である装填位置に移動する。次にコントローラー101は、光ディスク搬送機構106及びドライブ102に対し、マガジン104内の光ディスクをドライブ102に装填するように指示する。光ディスク搬送機構106は、光ディスク105をマガジン104内からドライブ102へと移動させる。ドライブ102は、光ディスク105をローディングし、記録再生可能な状態になるよう起動処理を行う。コントローラー101は、上記を繰り返し、マガジン104内の全ての光ディスク105をドライブ102に装填する。装填された複数の光ディスク105は、1つの光ディスクRAIDとみなされる。本実施の形態では、4台のドライブ102に装填された4枚の光ディスク105が、光ディスクRAIDを構成する。また、本実施の形態では、RAIDレベルはRAID5である。   The application 110 instructs the controller 101 of the optical disk RAID system 111 through the SCSI library 108 to load the optical disk 105 in the magazine 104 into the drive 102. The controller 101 instructs the magazine transport mechanism 103 to transport the magazine 104 to the loading position. The magazine transport mechanism 103 transports the magazine 104 and moves to a loading position where the optical disk 105 can be loaded into the drive 102. Next, the controller 101 instructs the optical disc transport mechanism 106 and the drive 102 to load the optical disc in the magazine 104 into the drive 102. The optical disk transport mechanism 106 moves the optical disk 105 from the magazine 104 to the drive 102. The drive 102 loads the optical disk 105 and performs a start-up process so as to be in a recordable / reproducible state. The controller 101 repeats the above and loads all the optical disks 105 in the magazine 104 into the drive 102. A plurality of loaded optical disks 105 are regarded as one optical disk RAID. In the present embodiment, the four optical disks 105 loaded in the four drives 102 constitute an optical disk RAID. In this embodiment, the RAID level is RAID5.

次にアプリケーション110は、UDFドライバー109に対し、ファイル1及びファイル2を記録するように指示する。UDFドライバー109は、UDF規格に従って、複数の光ディスク105で構成された光ディスクRAID上の空きセクタを探し、光ディスクRAID上にファイル1及びファイル2のデータを記録する。それと共に、UDFドライバー109は、光ディスクRAID上のファイルシステム管理情報にファイル1及びファイル2のファイル名と記録アドレスを記録する。このファイルシステム管理情報は、UDF規格に従って光ディスクRAID上に記録される。   Next, the application 110 instructs the UDF driver 109 to record file 1 and file 2. The UDF driver 109 searches for an empty sector on the optical disk RAID composed of a plurality of optical disks 105 according to the UDF standard, and records the data of the file 1 and the file 2 on the optical disk RAID. At the same time, the UDF driver 109 records the file names and recording addresses of the files 1 and 2 in the file system management information on the optical disk RAID. This file system management information is recorded on the optical disk RAID according to the UDF standard.

図3は、ファイルシステム管理情報の一例を示す図である。ファイル1のサイズが8kbyte、ファイル2のサイズが10kbyte、光ディスクRAIDシステムにおけるセクタ容量が2kbyteであるものとする。この場合、UDFドライバー109は、光ディスクRAID上の空きセクタを探し、ファイル1を光ディスクRAID上のアドレスA1〜A4、ファイル2を光ディスクRAID上のアドレスA5〜A9へ記録する。このときのファイルシステム管理情報は図3に示す通りとなる。   FIG. 3 is a diagram illustrating an example of file system management information. Assume that the size of file 1 is 8 kbytes, the size of file 2 is 10 kbytes, and the sector capacity in the optical disk RAID system is 2 kbytes. In this case, the UDF driver 109 searches for empty sectors on the optical disk RAID, and records the file 1 at addresses A1 to A4 on the optical disk RAID and the file 2 at addresses A5 to A9 on the optical disk RAID. The file system management information at this time is as shown in FIG.

UDFドライバー109は、ファイル1のデータ及びファイル2のデータを、光ディスクRAID上のアドレスA1〜A4及びアドレスA5〜A9に記録するように光ディスクRAIDシステム111のコントローラー101に指示する。   The UDF driver 109 instructs the controller 101 of the optical disk RAID system 111 to record the data of the file 1 and the data of the file 2 at addresses A1 to A4 and addresses A5 to A9 on the optical disk RAID.

図2を使用して、コントローラー101が光ディスクRAID上のアドレスA1〜A9にファイル1及びファイル2を記録する際の動作を説明する。なお、4台のドライブ102に装填された光ディスク105を、便宜上光ディスク201、202、203、204と呼ぶ。すなわち、光ディスクRAIDシステム111は、光ディスク201、202、203、204を使用してRAID5のシステムを構成している。各光ディスク上にはセクタが配置されている。例えば光ディスク201には、アドレスD10、D11、D12、D13のセクタが配置されている。また各光ディスクには、RAIDシステムとしてはアドレスA1〜A12及びアドレスP1〜P4が割り当てられている。アドレスP1、P2、P3、P4は、パリティを保存するためのセクタである。すなわち、アドレスP1、P2、P3、P4は、誤り検出用のセクタである。また、各光ディスク上には交替領域が確保されている。例えば光ディスク201には交替領域D1S0、D1S2、D1S2が確保されている。交替領域には、光ディスクRAIDのアドレスは割り振られていない。交替領域は、光ディスク上に欠陥があった場合や、後述する消去を行う際に使用される。   The operation when the controller 101 records the file 1 and the file 2 at the addresses A1 to A9 on the optical disk RAID will be described with reference to FIG. The optical disks 105 loaded in the four drives 102 are called optical disks 201, 202, 203, and 204 for convenience. That is, the optical disk RAID system 111 configures a RAID 5 system using the optical disks 201, 202, 203, and 204. A sector is arranged on each optical disc. For example, on the optical disc 201, sectors with addresses D10, D11, D12, and D13 are arranged. Each optical disk is assigned addresses A1 to A12 and addresses P1 to P4 as a RAID system. Addresses P1, P2, P3, and P4 are sectors for storing parity. That is, the addresses P1, P2, P3, and P4 are error detection sectors. In addition, a replacement area is secured on each optical disc. For example, replacement areas D1S0, D1S2, and D1S2 are secured on the optical disc 201. An optical disk RAID address is not allocated to the spare area. The spare area is used when there is a defect on the optical disk or when erasing described later is performed.

コントローラー101が光ディスクRAID上のアドレスA1〜A9に記録する場合、コントローラー101は、ドライブ102に指示を送り、光ディスク201のアドレスD10、光ディスク202のアドレスD20、光ディスク203のアドレスD30に対し、光ディスクRAIDのアドレスA1、A2、A3に記録するべきデータを記録する。それと共に、コントローラー101は、アドレスA1、A2、A3に記録したデータに基づいてRAID5のパリティを計算する。コントローラー101は、ドライブ102に指示を送り、光ディスク204のアドレスD40にパリティを記録する。光ディスクRAIDのアドレスA4〜A6、A7〜A9、P2、P3についても上記を繰り返し、光ディスク201、202、203、204にデータとパリティとを記録する。   When the controller 101 records to the addresses A1 to A9 on the optical disk RAID, the controller 101 sends an instruction to the drive 102, and the optical disk RAID is addressed to the address D10 of the optical disk 201, the address D20 of the optical disk 202, and the address D30 of the optical disk 203. Data to be recorded is recorded at addresses A1, A2, and A3. At the same time, the controller 101 calculates the parity of RAID 5 based on the data recorded at the addresses A1, A2, and A3. The controller 101 sends an instruction to the drive 102 and records the parity at the address D40 of the optical disc 204. The above is repeated for the addresses A4 to A6, A7 to A9, P2, and P3 of the optical disk RAID, and data and parity are recorded on the optical disks 201, 202, 203, and 204.

その後、UDFドライバー109は、ファイルシステム管理情報(図3)を記録するように光ディスクRAIDシステム111のコントローラー101に指示する。コントローラー101は、光ディスクRAID上にファイルシステム管理情報を記録する。   Thereafter, the UDF driver 109 instructs the controller 101 of the optical disk RAID system 111 to record the file system management information (FIG. 3). The controller 101 records file system management information on the optical disk RAID.

ファイル1を消去する方法を、図4A、図4B、図5、図6を使用して説明する。アプリケーション110は、ファイルを記録する場合と同様に、事前にマガジン104内の光ディスク105をドライブ102に装填する。図5は、アプリケーション110がファイルを消去する動作を示すフローチャートである。アプリケーション110がファイル1を消去する場合を例にとり説明する。ステップS51において、アプリケーション110は、SCSIライブラリ108を通じて光ディスクRAIDシステム111にコマンドを発行し、ファイル1のファイルシステム管理情報を読み取る。ステップS52において、アプリケーション110は、ファイルシステム管理情報からファイル1のデータの記録アドレスを取得する。ファイルシステム管理情報が図3に示す内容である場合、ファイル1のデータの記録アドレスは、A1〜A4となる。ステップS53において、アプリケーション110は、SCSIライブラリ108を通じて、ファイル1のデータが書き込こまれたアドレスA1〜A4の消去コマンドを光ディスクRAIDシステム111のコントローラー101へ発行し、ファイル1のデータを消去する。ステップS54において、全ての対象ファイルの消去が完了していれば、アプリケーション110は、消去動作を終了する。全ての対象ファイルを消去していない場合、ステップS51に戻り、アプリケーション110は、次のファイルを消去する。   A method for deleting the file 1 will be described with reference to FIGS. 4A, 4B, 5, and 6. FIG. The application 110 loads the optical disk 105 in the magazine 104 into the drive 102 in advance as in the case of recording a file. FIG. 5 is a flowchart showing an operation in which the application 110 deletes a file. A case where the application 110 deletes the file 1 will be described as an example. In step S51, the application 110 issues a command to the optical disk RAID system 111 through the SCSI library 108, and reads the file system management information of the file 1. In step S52, the application 110 acquires the recording address of the data of the file 1 from the file system management information. When the file system management information has the contents shown in FIG. 3, the recording addresses of the data of the file 1 are A1 to A4. In step S <b> 53, the application 110 issues an erase command of addresses A <b> 1 to A <b> 4 into which the file 1 data is written to the controller 101 of the optical disk RAID system 111 through the SCSI library 108 to erase the file 1 data. If all the target files have been erased in step S54, the application 110 ends the erasing operation. If all the target files have not been deleted, the process returns to step S51, and the application 110 deletes the next file.

図6は、コントローラー101が消去コマンドを実行する動作を示すフローチャートである。ステップS61において、コントローラー101は、アプリケーション110から消去コマンドを受領すると、消去コマンドに含まれる、消去すべきデータのアドレス範囲に、RAIDストライプの全範囲が含まれるかどうかを判断する。ここでRAIDストライプとは、RAIDを構成する光ディスクに対してストライプ記録を行う際の最小単位であり、パリティを演算するのに必要なアドレスの組み合わせである。RAIDストライプのアドレス範囲は、図2ではアドレスA1〜A3、アドレスA4〜A6、アドレスA7〜A9、アドレスA10〜A12のような範囲である。例えば、アプリケーションから指示されたアドレスの範囲がアドレスA1〜A4の場合、ステップS61において、コントローラー101は、1つのRAIDストライプを構成するアドレスA1〜A3の全体が含まれると判断する。すなわち、コントローラー101は、消去コマンドのアドレス範囲に、RAIDストライプ全範囲が含まれると判断する(ステップS61においてYes)。この場合、ステップS62において、コントローラー101は、ステップS61で抽出したアドレスA1〜A3を消去するため、ドライブ102に光ディスク201のアドレスD10、光ディスク202のアドレスD20、光ディスク203のアドレスD30の消去を指示する。そして、ドライブ102は、指示されたアドレスを消去する。消去コマンドのアドレス範囲に、RAIDストライプの全範囲が複数含まれる場合は、コントローラー101は、それらすべてのアドレスについて消去を行う。消去が完了するとステップS63へ進む。また、ステップS61において、コントローラー101が、RAIDストライプ全範囲を含むアドレス範囲が存在しないと判断する場合(ステップS61においてNo)は、ステップS63へ進む。   FIG. 6 is a flowchart showing an operation in which the controller 101 executes an erase command. In step S61, when the controller 101 receives an erase command from the application 110, the controller 101 determines whether the address range of the data to be erased included in the erase command includes the entire range of the RAID stripe. Here, the RAID stripe is a minimum unit for performing stripe recording on the optical disk constituting the RAID, and is a combination of addresses necessary for calculating the parity. The address range of the RAID stripe is a range such as addresses A1 to A3, addresses A4 to A6, addresses A7 to A9, and addresses A10 to A12 in FIG. For example, when the address range instructed by the application is the addresses A1 to A4, in step S61, the controller 101 determines that the entire addresses A1 to A3 constituting one RAID stripe are included. That is, the controller 101 determines that the address range of the erase command includes the entire RAID stripe range (Yes in step S61). In this case, in step S62, the controller 101 instructs the drive 102 to erase the address D10 of the optical disc 201, the address D20 of the optical disc 202, and the address D30 of the optical disc 203 in order to erase the addresses A1 to A3 extracted in step S61. . Then, the drive 102 erases the instructed address. When the address range of the erase command includes a plurality of the entire RAID stripe range, the controller 101 erases all the addresses. When the erasure is completed, the process proceeds to step S63. If the controller 101 determines in step S61 that there is no address range including the entire RAID stripe range (No in step S61), the process proceeds to step S63.

次にステップS63において、コントローラー101は、受領した消去コマンドのアドレス範囲に、RAIDストライプの一部の範囲のみが含まれるかどうかを判断する。コントローラー101は、消去コマンドのアドレス範囲に、RAIDストライプの一部の範囲のみが含まれないと判断する場合(ステップS63においてNo)、処理を終了する。一方、例えばアプリケーションから指示されたアドレスの範囲がアドレスA1〜A4の場合、ステップS63において、コントローラー101は、アドレスA4がRAIDストライプの一部のみに相当すると判断する。すなわち、コントローラー101は、消去コマンドのアドレス範囲に、RAIDストライプの一部の範囲のみが含まれると判断する(ステップS63においてYes)。この場合、ステップS64において、コントローラー101は、RAIDストライプの一部であるアドレスA4を消去する。さらに、ステップS65において、コントローラー101は、アドレスA4について、内容が0のデータで交替記録をする。具体的には、コントローラー101は、ドライブ102に対して光ディスク201のアドレスD11の消去を指示し、ドライブ102は指示されたアドレスを消去する。また、コントローラー101は、ドライブ102に対して、光ディスク201のアドレスD11を、全て0の内容で交替記録するように指示する。ドライブ102は、光ディスク201の交替領域の中から空いている交替領域D1S0を選択し、交替領域D1S0に対して全て0の内容で記録を行う。すなわち、ドライブ102は、交替領域D1S0に全てのビットが0のデータを記録する。そしてドライブ102は、光ディスク201の交替管理情報(図4A)に光ディスク201のアドレスD11が交替先D1S0に交替したことを示す情報を登録し、この交替管理情報も光ディスク201に記録する。ドライブ102は、これ以降アドレスD11にアクセスが来た場合は、交替管理情報に基づいてアドレスD11の代わりにアドレスD1S0に対してアクセスを行う。なお、ステップS65において、全て0の内容で交替記録することに代えて、全て1の内容で交替記録してもよいし、その他の所定のデータに置き換えて交替記録してもよい。   In step S63, the controller 101 determines whether only a partial range of the RAID stripe is included in the address range of the received erase command. If the controller 101 determines that the address range of the erase command does not include only a partial range of the RAID stripe (No in step S63), the controller 101 ends the process. On the other hand, for example, when the address range instructed by the application is the addresses A1 to A4, in step S63, the controller 101 determines that the address A4 corresponds to only a part of the RAID stripe. That is, the controller 101 determines that only a partial range of the RAID stripe is included in the address range of the erase command (Yes in step S63). In this case, in step S64, the controller 101 erases the address A4 that is a part of the RAID stripe. Further, in step S65, the controller 101 performs alternate recording with the data of 0 for the address A4. Specifically, the controller 101 instructs the drive 102 to erase the address D11 of the optical disc 201, and the drive 102 erases the instructed address. In addition, the controller 101 instructs the drive 102 to alternately record the address D11 of the optical disc 201 with all zero contents. The drive 102 selects a spare area D1S0 that is vacant from the spare areas of the optical disc 201, and performs recording with the content of all zeros in the spare area D1S0. That is, the drive 102 records data in which all the bits are 0 in the replacement area D1S0. Then, the drive 102 registers information indicating that the address D11 of the optical disk 201 has been replaced with the replacement destination D1S0 in the replacement management information (FIG. 4A) of the optical disk 201, and records this replacement management information also on the optical disk 201. When the drive 102 subsequently accesses the address D11, the drive 102 accesses the address D1S0 instead of the address D11 based on the replacement management information. In step S65, instead of the alternate recording with all the contents of 0, the alternate recording with the contents of all 1 may be performed, or the replacement recording may be performed by replacing with other predetermined data.

次に、コントローラー101は、ステップS66において、対象アドレスを含むRAIDストライプのパリティを再計算する。そして、コントローラー101は、ステップS67において、その再計算したパリティを交替記録する。ステップS64においてファイル1のアドレスA4を消去した場合、コントローラー101は、ドライブ102にアドレスA4を含むRAIDストライプのアドレスA4、A5、A6を読み出すように指示する。ドライブ102は、光ディスク201のアドレスD11、光ディスク202のアドレスD21、光ディスク204のアドレスD41の内容を読み出す。なお、光ディスク201のアドレスD11はアドレスD1S0に交替されている。ドライブ102は、アドレスD11を読み出そうとするときに、図4Aに示す交代管理情報を参照することにより、アドレスD11がアドレスD1S0に交替されていることを把握する。そしてドライブ102は、アドレスD11の代わりにアドレスD1S0の内容を読み出す。コントローラー101は、読み出された内容からパリティを再計算し、ドライブ102に対して、光ディスク203のアドレスD31を、再計算したパリティで交替記録するように指示する。ドライブ102は、光ディスク203の交替領域の中から空いている交替領域D3S0を選択し、交替領域D3S0に対して再計算したパリティの内容で記録を行う。そしてドライブ102は、光ディスク203の交替管理情報(図4B)に光ディスク203のアドレスD31が交替先D3S0に交替したことを示す情報を登録し、この交替管理情報も光ディスク203に記録する。ドライブ102は、これ以降アドレスD31にアクセスが来た場合は、アドレスD31の変わりにアドレスD3S0に対してアクセスを行う。さらに、コントローラー101は、ステップS68において、再計算する前のパリティを消去してもよい。具体的には、コントローラー101は、ドライブ102に対して光ディスク203のアドレスD31の消去を指示し、ドライブ102は指示されたアドレスを消去してもよい。なお、ステップS68の動作は省略してもよい。   Next, in step S66, the controller 101 recalculates the parity of the RAID stripe including the target address. In step S67, the controller 101 records the recalculated parity alternately. When the address A4 of the file 1 is deleted in step S64, the controller 101 instructs the drive 102 to read the addresses A4, A5, and A6 of the RAID stripe including the address A4. The drive 102 reads the contents of the address D11 of the optical disc 201, the address D21 of the optical disc 202, and the address D41 of the optical disc 204. Note that the address D11 of the optical disc 201 is replaced with the address D1S0. When the drive 102 tries to read the address D11, the drive 102 grasps that the address D11 is replaced with the address D1S0 by referring to the replacement management information shown in FIG. 4A. Then, the drive 102 reads the contents of the address D1S0 instead of the address D11. The controller 101 recalculates the parity from the read content, and instructs the drive 102 to alternately record the address D31 of the optical disc 203 with the recalculated parity. The drive 102 selects a spare area D3S0 that is free from the spare area of the optical disc 203, and performs recording with the recalculated parity contents in the spare area D3S0. Then, the drive 102 registers information indicating that the address D31 of the optical disk 203 has been replaced with the replacement destination D3S0 in the replacement management information (FIG. 4B) of the optical disk 203, and records this replacement management information also on the optical disk 203. When the drive 102 subsequently accesses the address D31, the drive 102 accesses the address D3S0 instead of the address D31. Furthermore, the controller 101 may delete the parity before recalculation in step S68. Specifically, the controller 101 may instruct the drive 102 to erase the address D31 of the optical disc 203, and the drive 102 may erase the instructed address. Note that the operation in step S68 may be omitted.

上記のように動作することにより、光ディスクRAIDのアドレスA1〜A4に記録されていたファイル1のデータを消去することができる。また光ディスクRAIDのアドレスA4については交替記録及び、パリティの再計算と記録も行っているため、アドレスA5、A6、及びパリティP2からアドレスA4の元のデータを復元することもできなくなる。すなわち、ファイル1の全てのデータが光ディスクRAID上から消去されたことになる。   By operating as described above, the data of the file 1 recorded at the addresses A1 to A4 of the optical disk RAID can be erased. Further, since the alternate recording and the recalculation and recording of the parity are performed for the address A4 of the optical disk RAID, the original data of the address A4 cannot be restored from the addresses A5, A6 and the parity P2. That is, all the data of the file 1 is deleted from the optical disk RAID.

上記のようにファイル1が消去された光ディスクRAIDにおいて、ファイル2のデータの一部が記録されているアドレスA5、A6については、アドレスA4が全て0の内容またはその他の所定のデータで交替記録された上で、パリティP2が再計算されて交替記録されているため、ファイル1の消去前と同じ冗長性を確保できている。すなわち、本実施の形態の、光ディスクRAIDにおけるデータ消去方法は、データの消去にあたり、消去しないデータの冗長性を確保したまま消去することができる。   In the optical disk RAID from which the file 1 is erased as described above, for the addresses A5 and A6 where a part of the data of the file 2 is recorded, the address A4 is replaced with the contents of all 0s or other predetermined data. In addition, since the parity P2 is recalculated and recorded alternately, the same redundancy as before the erasure of the file 1 can be secured. In other words, the data erasing method in the optical disk RAID according to the present embodiment can be erased while ensuring redundancy of data not to be erased.

なお、交替記録における交替元のパリティP2(アドレスD31)のデータについては、消去しても良い。この場合、コントローラー101は、パリティの再計算と交替記録(ステップS66、S67)に加えて、ドライブ102に光ディスク203のアドレスD31を消去するように指示し、ドライブ102はアドレスD31を消去する(ステップS68)。このように行えば、交替前のアドレスD31を読み出し、アドレスA5、A6の内容からアドレスA4の内容を復元することが不可能となり、より確実にファイル1を消去できる。   Note that the data of the parity P2 (address D31) of the replacement source in the replacement recording may be deleted. In this case, the controller 101 instructs the drive 102 to erase the address D31 of the optical disc 203 in addition to recalculation of parity and alternate recording (steps S66 and S67), and the drive 102 erases the address D31 (step S31). S68). By doing so, it becomes impossible to read the address D31 before the replacement and restore the contents of the address A4 from the contents of the addresses A5 and A6, and the file 1 can be erased more reliably.

(実施の形態2)
本発明の実施の形態2を図7、図8A〜図8Dを用いて説明する。実施の形態2において実施の形態1と同様の構成については、説明を省略する。
(Embodiment 2)
A second embodiment of the present invention will be described with reference to FIGS. 7 and 8A to 8D. In the second embodiment, the description of the same configuration as that of the first embodiment is omitted.

図7は、複数のファイルの消去を行う、本実施の形態の消去方法を示すアプリケーション110の動作を示すフローチャートである。本実施の形態では、光ディスクRAIDに記録されたファイル1、2を消去する場合を例に説明する。   FIG. 7 is a flowchart showing the operation of the application 110 showing the erasing method of the present embodiment for erasing a plurality of files. In the present embodiment, a case where files 1 and 2 recorded on the optical disk RAID are erased will be described as an example.

事前にアプリケーション110は、ファイルを記録する場合と同様に、マガジン104内の光ディスク105をドライブ102に装填する。   The application 110 loads the optical disk 105 in the magazine 104 into the drive 102 in the same way as when recording a file in advance.

ステップS71において、アプリケーション110は、SCSIライブラリ108を通じて、光ディスクRAIDシステム111にコマンドを送り、ファイル1、2のファイルシステム管理情報を読み取る。ステップS72において、アプリケーション110は、ファイルシステム管理情報からファイル1、2のデータの記録アドレスを取得し、取得した記録アドレスから連続したデータ書き込みアドレスを抽出する。ファイルシステム管理情報が図3に示す内容である場合、ファイル1のデータの記録アドレスは、A1〜A4、ファイル2のデータの記録アドレスは、A5〜A9となる。このため、抽出した連続データ書き込みアドレスは、A1〜A9となる。ステップS73において、アプリケーション110は、抽出した連続データ書き込みアドレスA1〜A9に対する消去コマンドを光ディスクRAIDシステム111のコントローラー101へ発行し、ファイル1、2のデータを消去する。ステップS74において、アプリケーション110は、抽出したすべての連続データ書き込みアドレスの消去が完了していれば(ステップS74においてYes)、消去動作を終了する。完了していない場合(ステップS74においてNo)、ステップS73に戻り、アプリケーション110は、次の連続したデータ書き込みアドレスを消去する。   In step S <b> 71, the application 110 sends a command to the optical disk RAID system 111 through the SCSI library 108 and reads the file system management information of the files 1 and 2. In step S72, the application 110 acquires the data recording addresses of the files 1 and 2 from the file system management information, and extracts continuous data write addresses from the acquired recording addresses. When the file system management information has the contents shown in FIG. 3, the recording addresses of the file 1 data are A1 to A4, and the recording addresses of the file 2 data are A5 to A9. Therefore, the extracted continuous data write addresses are A1 to A9. In step S73, the application 110 issues an erase command for the extracted continuous data write addresses A1 to A9 to the controller 101 of the optical disk RAID system 111, and erases the data in the files 1 and 2. In step S74, if the erasure of all the extracted continuous data write addresses has been completed (Yes in step S74), the application 110 ends the erasing operation. If not completed (No in step S74), the process returns to step S73, and the application 110 erases the next consecutive data write address.

コントローラー101は、図6に示す消去コマンドを実行するフローチャートに従い動作する。アプリケーションから指示されたアドレスがA1〜A9の場合、ステップS61において、コントローラー101は、アドレスA1〜A9にRAIDストライプの全範囲が含まれると判断する。具体的には、コントローラー101は、アドレスA1〜A9の範囲内に、RAIDストライプを構成するアドレスA1、A2、A3と、アドレスA4、A5、A6と、アドレスA7、A8、A9とが含まれると判断する。そしてステップS62において、コントローラー101は、ステップS61で抽出したアドレスA1〜A3、A4〜A6、A7〜A9を消去する。具体的には、コントローラー101は、ドライブ102に光ディスク201のアドレスD10、D11、D12の消去を指示する。また、コントローラー101は、ドライブ102に光ディスク202のアドレスD20、D21の消去を指示する。また、コントローラー101は、ドライブ102に光ディスク203のアドレスD30、D32の消去を指示する。また、コントローラー101は、ドライブ102に光ディスク204のアドレスD41、D42の消去を指示する。ドライブ102は、指示された各アドレスを消去する。   The controller 101 operates according to a flowchart for executing the erase command shown in FIG. If the addresses instructed by the application are A1 to A9, in step S61, the controller 101 determines that the addresses A1 to A9 include the entire range of the RAID stripe. Specifically, the controller 101 includes addresses A1, A2, and A3, addresses A4, A5, and A6, and addresses A7, A8, and A9 that form a RAID stripe within the range of addresses A1 to A9. to decide. In step S62, the controller 101 erases the addresses A1 to A3, A4 to A6, and A7 to A9 extracted in step S61. Specifically, the controller 101 instructs the drive 102 to erase the addresses D10, D11, and D12 of the optical disc 201. In addition, the controller 101 instructs the drive 102 to erase the addresses D20 and D21 of the optical disk 202. In addition, the controller 101 instructs the drive 102 to erase the addresses D30 and D32 of the optical disc 203. Further, the controller 101 instructs the drive 102 to erase the addresses D41 and D42 of the optical disc 204. The drive 102 erases each designated address.

次に、コントローラー101は、ステップS63において、受領した消去コマンドのアドレス範囲に、RAIDストライプの一部の範囲のみが含まれるかどうかを判断する。しかしながらアプリケーションから指示されたアドレス範囲がアドレスA1〜A9の場合、ステップS63において、コントローラー101は、RAIDストライプの一部のみを含むアドレス範囲は無い、と判断し、消去の動作を完了する。   Next, in step S63, the controller 101 determines whether the address range of the received erase command includes only a partial range of the RAID stripe. However, if the address range instructed by the application is the addresses A1 to A9, in step S63, the controller 101 determines that there is no address range including only a part of the RAID stripe, and completes the erase operation.

上記のように動作することにより、交替領域の消費を抑制しつつ、ファイルの消去を行うことが可能となる。例に挙げたファイル1、ファイル2の消去の場合は、交替領域の消費はない。それに対し、同じファイル1、ファイル2を実施の形態1に基づいて消去した場合、図8A〜図8Dに示す光ディスク201〜204の交替管理情報のように、ファイル1の消去のため光ディスクRAIDのアドレスA4すなわち光ディスク201のアドレスD11の交替記録、及びパリティP2すなわち光ディスク203のアドレスD31の交替記録が発生する。またファイル2の消去のため、光ディスクRAIDのアドレスA5、P2、A6、すなわち光ディスク202のアドレスD21、光ディスク203のアドレスD31、光ディスク204のアドレスD41の交替記録が発生する。   By operating as described above, it is possible to delete a file while suppressing consumption of a replacement area. In the case of erasing file 1 and file 2 given as an example, the replacement area is not consumed. On the other hand, when the same file 1 and file 2 are erased based on the first embodiment, the address of the optical disk RAID for erasing the file 1 as in the replacement management information of the optical disks 201 to 204 shown in FIGS. 8A to 8D. A4, that is, alternate recording of the address D11 of the optical disc 201 and parity P2, that is, alternate recording of the address D31 of the optical disc 203, occur. Further, since the file 2 is erased, alternate recording of the addresses A5, P2, and A6 of the optical disk RAID, that is, the address D21 of the optical disk 202, the address D31 of the optical disk 203, and the address D41 of the optical disk 204 occurs.

これに対し、本実施の形態では、コントローラー101が、複数のファイルを合わせて消去するように動作する。このため上記の例では、コントローラー101が、ファイル1のデータが記録されたアドレスA4と、ファイル2のデータが記録されたアドレスA5、A6とで構成されるRAIDストライプの全範囲が、消去コマンドのアドレス範囲に含まれると判断することができる。したがって、これらのアドレスA4、A5、A6について、交替記録をすることなく消去することが可能となる。   On the other hand, in the present embodiment, the controller 101 operates to delete a plurality of files together. Therefore, in the above example, the controller 101 determines that the entire range of the RAID stripe composed of the address A4 where the data of the file 1 is recorded and the addresses A5 and A6 where the data of the file 2 is recorded is the erase command. It can be determined that it is included in the address range. Therefore, these addresses A4, A5, and A6 can be erased without performing alternate recording.

このように本実施の形態の、光ディスクRAIDにおけるデータ消去方法は、データの消去にあたり、交替領域の消費を抑えることができるため、信頼性を確保したままデータの消去を行うことができる。   As described above, the data erasing method in the optical disk RAID according to the present embodiment can suppress the consumption of the spare area when erasing data, so that data can be erased while ensuring reliability.

(他の実施の形態)
以上のように、本出願において開示する技術の例示として、実施の形態1〜2を説明した。しかしながら、本開示における技術は、これに限定されず、変更、置き換え、付加、省略などを行った実施の形態にも適用できる。また、上記実施の形態1〜2で説明した各構成要素を組み合わせて、新たな実施の形態とすることも可能である。
(Other embodiments)
As described above, Embodiments 1 and 2 have been described as examples of the technology disclosed in the present application. However, the technology in the present disclosure is not limited to this, and can also be applied to embodiments that have been changed, replaced, added, omitted, and the like. Moreover, it is also possible to combine each component demonstrated in the said Embodiment 1-2 and it can also be set as a new embodiment.

そこで、以下、他の実施の形態を例示する。   Therefore, other embodiments will be exemplified below.

なお、実施の形態1〜2では、消去コマンドのアドレス範囲にRAIDストライプの一部のみが含まれる場合、データの消去・交替記録において、交替先のアドレスに全て0の内容を記録することで交替記録を行っていたが、交替先のアドレスへのデータの記録を行わず、交替管理情報の交替先アドレスとして、光ディスク上に存在しないアドレスを登録してもよい。この場合、ドライブ102は、光ディスク上に存在しないアドレスが交替先アドレスとして登録されているアドレスに再生要求が来た場合、再生結果として全て0の内容を返却するようにする。このようにすれば、交替領域を消費しなくてすむため、さらに消去するための交替領域を削減することが可能となる。上記では光ディスク上に存在しないアドレスを登録したが、交替管理情報に交替属性の項目を追加し、交替属性として交替記録は行わず、交替元のアドレスにアクセスされた場合は全て0の内容を返却することを示す属性を記録してもよい。   In Embodiments 1 and 2, when only a part of the RAID stripe is included in the address range of the erase command, in the data erase / alternate recording, the content of all 0s is recorded at the alternate destination address. Although recording has been performed, data that does not exist on the optical disk may be registered as a replacement destination address of replacement management information without recording data at the replacement destination address. In this case, the drive 102 returns the content of all 0 as a reproduction result when a reproduction request comes to an address registered as a replacement destination address that does not exist on the optical disk. In this way, it is not necessary to consume the spare area, and it is possible to further reduce the spare area for erasing. In the above example, an address that does not exist on the optical disk is registered, but an item of a replacement attribute is added to the replacement management information, replacement recording is not performed as a replacement attribute, and when the replacement source address is accessed, all 0 contents are returned. You may record the attribute which shows doing.

また、実施の形態1〜2では、光ディスク上に設けられた交替領域を使用したが、光ディスクRAIDとして消去を行う場合、光ディスクのフォーマット時において、本開示の消去を行わない(欠陥領域に対して交替記録を行う)光ディスクRAIDを構成する光ディスクよりも、交替領域を多く確保するようにしてもよい。このようにすれば、消去のための交替領域を確保しつつ、消去を行わない光ディスクRAIDと同等の欠陥による交替領域を確保することが可能となる。   In the first and second embodiments, the replacement area provided on the optical disk is used. However, when erasing as the optical disk RAID, the erasure according to the present disclosure is not performed at the time of formatting the optical disk (for the defective area). It is also possible to secure a larger number of replacement areas than the optical disk constituting the optical disk RAID. In this way, it is possible to secure a spare area for erasure and secure a spare area due to a defect equivalent to the optical disk RAID that is not erased.

また、実施の形態1〜2では、光ディスク上に設けられた交替領域は光ディスク上に欠陥があった場合と消去を行う場合に使用されるが、欠陥があった場合に使用する交替領域と消去を行うための交替領域とを別々の領域として確保しても良い。このようにすれば、確実に消去を行える回数を保障することが可能となる。   In Embodiments 1 and 2, the replacement area provided on the optical disk is used when there is a defect on the optical disk and when erasing is performed. However, the replacement area and erasure used when there is a defect are erased. The replacement area for performing the process may be secured as separate areas. In this way, it is possible to ensure the number of times that erasure can be performed reliably.

また、実施の形態1〜2では、光ディスクを4枚使用したRAID5の光ディスクRAIDの構成を例に挙げて説明したが、光ディスクを5枚使用して、RAID5もしくはRAID6の光ディスクRAIDを構成に本開示を適用することも可能である。この場合、RAIDの種類によって、例えばRAID5またはRAID6によって、確保する交替領域の量を変えてもよい。RAID6の場合はパリティが増えるため交替領域がより必要になるためである。このようにすることにより使用するRAIDの種類に関わらず、消去を行える回数を確保することが可能となる。   In the first and second embodiments, the configuration of the RAID 5 optical disk RAID using four optical disks has been described as an example. However, the present disclosure uses the configuration of a RAID 5 or RAID 6 optical disk RAID using five optical disks. It is also possible to apply. In this case, the amount of spare area to be secured may be changed depending on the type of RAID, for example, RAID 5 or RAID 6. This is because in the case of RAID 6, since the parity increases, a replacement area becomes more necessary. This makes it possible to secure the number of times that erasure can be performed regardless of the type of RAID used.

また、実施の形態1〜2では、交替記録において、光ディスク上に確保された交替領域を使用したが、UDF2.6規格で規定されるPOW(Pseudo Over Write)のように、光ディスク上の交替領域ではないデータ領域に交替記録を行ってもよい。このようにすれば、光ディスクのフォーマット時に消去のための交替領域を確保する必要がなく、フォーマット後に、消去の必要性に応じて空き容量を管理すれば消去を行うことが可能となる。   In the first and second embodiments, the replacement area secured on the optical disk is used in the replacement recording. However, the replacement area on the optical disk as in POW (Pseudo Over Write) defined in the UDF 2.6 standard. Alternate recording may be performed in a data area that is not. In this way, it is not necessary to secure a replacement area for erasing at the time of formatting the optical disk, and erasing can be performed by managing the free space according to the necessity of erasing after formatting.

また、実施の形態1において、ステップ65の対象セクタの交替記録は、対象セクタの対象データを所定のデータに置き換えて所定の交替領域に交替記録するとしたが、複数の追記型光ディスクのうち同一の追記型光ディスク上の対象セクタの交替先は、同一としてもよい。このようにすれば、交替領域を削減することが可能となる。   In the first embodiment, the replacement recording of the target sector in step 65 is performed by replacing the target data of the target sector with predetermined data and replacing recording in a predetermined replacement area. The replacement destination of the target sector on the write-once optical disc may be the same. In this way, the replacement area can be reduced.

なお、上述の実施の形態は、本開示における技術を例示するためのものであるから、請求の範囲またはその均等の範囲において種々の変更、置き換え、付加、省略などを行うことができる。   In addition, since the above-mentioned embodiment is for demonstrating the technique in this indication, a various change, substitution, addition, abbreviation, etc. can be performed in a claim or its equivalent range.

本開示は、追記型光ディスクを複数使用したRAIDシステムに記録されたデータの消去方法に適用可能である。   The present disclosure is applicable to a method for erasing data recorded in a RAID system using a plurality of write-once optical discs.

101 コントローラー
102 ドライブ
103 マガジン搬送機構
104 マガジン
105 光ディスク
106 光ディスク搬送機構
107 サーバー
108 SCSIライブラリ
109 UDFドライバー
110 アプリケーション
111 光ディスクRAIDシステム
201,202,203,204 光ディスク
901,902,903,904 光ディスク
905,906 セクタ群
DESCRIPTION OF SYMBOLS 101 Controller 102 Drive 103 Magazine transport mechanism 104 Magazine 105 Optical disk 106 Optical disk transport mechanism 107 Server 108 SCSI library 109 UDF driver 110 Application 111 Optical disk RAID system 201,202,203,204 Optical disk 901,902,903,904 Optical disk 905,906 sector group

Claims (14)

RAIDを構成する複数の追記型光ディスクにストライプ記録されたデータを消去するデータ消去方法であって、前記複数の追記型光ディスクは、複数のデータ記録用ブロックと、誤り検出用ブロックと、を有し、
消去対象のデータである対象データが記録されたデータ記録用ブロックである少なくとも1つの対象ブロックおよび前記誤り検出用ブロックを所定の交替領域に交替記録する交替記録ステップと、
前記対象ブロックを、前記対象データが正しく読み出せなくなるように上書きする上書きステップと、を含む、
データ消去方法。
A data erasing method for erasing data recorded in stripes on a plurality of write-once optical disks constituting a RAID, wherein the plurality of write-once optical disks have a plurality of data recording blocks and an error detection block. ,
A replacement recording step in which at least one target block, which is a data recording block in which target data, which is data to be erased, is recorded, and the error detection block are alternately recorded in a predetermined replacement area;
Overwriting the target block so as to prevent the target data from being read correctly.
Data erasure method.
前記上書きステップは、さらに、前記誤り検出用ブロックを、前記対象データが正しく読み出せなくなるように上書きする、
請求項1記載のデータ消去方法。
The overwriting step further overwrites the error detection block so that the target data cannot be read correctly.
The data erasing method according to claim 1.
前記複数の追記型光ディスクは、ストライプ内に、前記複数のデータ記録用ブロックと前記ストライプに対する前記誤り検出用ブロックとを有し、
前記交替記録ステップは、前記対象データがストライプ内の一部の前記データ記録用ブロックに記録されているストライプについては、前記対象ブロックおよび前記誤り検出用ブロックを所定の交替領域に交替記録し、前記対象データがストライプ内の全ての前記データ記録用ブロックの全てに記録されているストライプについては、交替記録せず、
前記上書きステップは、前記対象データがストライプ単位内の一部の前記データ記録用ブロックに記録されているストライプについては、前記対象ブロックおよび前記誤り検出用ブロックを正しく読み出せなくなるように上書きし、前記対象データがストライプ内の全ての前記データ記録用ブロックの全てに記録されているストライプについては、前記ストライプ内の全てのデータ記録用ブロックを正しく読み出せなくなるように上書きする、
請求項1記載のデータ消去方法。
The plurality of write-once optical discs have a plurality of data recording blocks and the error detection block for the stripes in a stripe,
In the replacement recording step, for the stripe in which the target data is recorded in a part of the data recording block in the stripe, the target block and the error detection block are replaced and recorded in a predetermined replacement area, For the stripe in which the target data is recorded in all the data recording blocks in the stripe, the alternate recording is not performed.
The overwriting step overwrites the target data and the error detection block so that the target data and the error detection block cannot be correctly read for stripes in which the target data is recorded in a part of the data recording blocks in a stripe unit, For the stripe in which the target data is recorded in all of the data recording blocks in the stripe, it is overwritten so that all the data recording blocks in the stripe cannot be read correctly.
The data erasing method according to claim 1.
前記交替記録ステップは、前記誤り検出用ブロックの誤り検出用データを再計算した誤り検出用データに置き換えて所定の交替領域に交替記録する、
請求項1記載のデータ消去方法。
In the replacement recording step, the error detection data of the error detection block is replaced with recalculated error detection data, and the replacement recording is performed in a predetermined replacement area.
The data erasing method according to claim 1.
前記交替記録ステップは、前記複数の追記型光ディスク上の欠陥領域に対する交替記録のための交替領域に対して交替記録する、
請求項1記載のデータ消去方法。
In the replacement recording step, replacement recording is performed on a replacement area for replacement recording on a defective area on the plurality of write-once optical disks.
The data erasing method according to claim 1.
前記交替記録ステップは、前記複数の追記型光ディスク上の欠陥領域に対する交替記録のための交替領域およびユーザデータを記録するユーザデータ領域とは異なる交替領域に対して交替記録する、
請求項1記載のデータ消去方法。
In the replacement recording step, replacement recording is performed for a replacement area for replacement recording for a defective area on the plurality of write-once optical disks and a replacement area different from a user data area for recording user data.
The data erasing method according to claim 1.
前記交替記録ステップは、前記複数の追記型光ディスク上のユーザデータを記録するユーザデータ領域に対して交替記録する、
請求項1記載のデータ消去方法。
In the replacement recording step, replacement recording is performed on a user data area for recording user data on the plurality of write-once optical disks.
The data erasing method according to claim 1.
データ消去を行う前記複数の追記型光ディスクの交替領域を、データ消去を行わない前記複数の追記型光ディスクの交替領域よりも大きく確保する、
請求項1記載のデータ消去方法。
Securing a replacement area of the plurality of write-once optical disks for erasing data larger than a replacement area of the plurality of write-once optical disks not performing data erasure;
The data erasing method according to claim 1.
適用するRAIDレベルに応じて、確保する交替領域の大きさを変える、
請求項1記載のデータ消去方法。
Change the size of the spare area to be secured according to the RAID level to be applied
The data erasing method according to claim 1.
前記交替記録ステップは、前記複数の追記型光ディスクのうち同一の追記型光ディスク上の前記対象ブロックの交替先は、同一とする、
請求項1記載のデータ消去方法。
In the replacement recording step, the replacement destination of the target block on the same write-once optical disc among the plurality of write-once optical discs is the same.
The data erasing method according to claim 1.
前記交替記録ステップは、前記対象ブロックを所定の交替領域に交替記録せず、所定のデータであることを交替情報に記録する、
請求項1記載のデータ消去方法。
The replacement recording step records in the replacement information that the target block is predetermined data without replacement recording in a predetermined replacement area.
The data erasing method according to claim 1.
前記交替記録ステップは、前記対象ブロックの前記対象データを所定のデータに置き換えて所定の交替領域に交替記録する、
請求項1記載のデータ消去方法。
The replacement recording step replaces the target data of the target block with predetermined data and records the replacement in a predetermined replacement area;
The data erasing method according to claim 1.
前記所定のデータは、全てのビットが0のデータである、
請求項12記載のデータ消去方法。
The predetermined data is data in which all bits are 0.
The data erasing method according to claim 12.
前記所定のデータは、全てのビットが1のデータである、
請求項12記載のデータ消去方法。
The predetermined data is data in which all bits are 1.
The data erasing method according to claim 12.
JP2016122291A 2015-08-28 2016-06-21 Data erasure method Active JP6600818B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US15/248,577 US10042582B2 (en) 2015-08-28 2016-08-26 Data erasing method

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2015168589 2015-08-28
JP2015168589 2015-08-28

Publications (2)

Publication Number Publication Date
JP2017045500A JP2017045500A (en) 2017-03-02
JP6600818B2 true JP6600818B2 (en) 2019-11-06

Family

ID=58212213

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2016122291A Active JP6600818B2 (en) 2015-08-28 2016-06-21 Data erasure method

Country Status (1)

Country Link
JP (1) JP6600818B2 (en)

Also Published As

Publication number Publication date
JP2017045500A (en) 2017-03-02

Similar Documents

Publication Publication Date Title
JP4886877B2 (en) Recording medium control apparatus and method
JP2000105980A (en) Method for controlling defective area in optical recording medium
JP3135531B2 (en) Recording medium for storing additional information for defect management and defect management method
JP2004005942A5 (en)
KR20050088475A (en) Write-once read-many information recording medium, information recording method, information reproduction method, information recording apparatus, and information reproduction apparatus
WO2005109432A1 (en) Information recording device
JP2014186412A (en) Controller, storage device, and control program
JP2008507797A (en) Apparatus and method for recording information on a record carrier
US9235352B2 (en) Datastore for non-overwriting storage devices
US20170097789A1 (en) Information recording device and information recording method
JP5914885B2 (en) Recording / reproducing apparatus and recording / reproducing method
JP6600818B2 (en) Data erasure method
US10042582B2 (en) Data erasing method
JP3637346B1 (en) Information recording apparatus, information recording method, and program
JP2009026349A (en) Method and device for recording/reproducing video
US20060221804A1 (en) Optical recording medium and defect management device and method therefor
WO2005041186A1 (en) Information recorder and information recording method and recording medium
JP4273149B2 (en) Information recording and playback method
JP2008198102A (en) Data processing system, data storage device, hard disk device, and data management method in data storage device
JP2014071917A (en) File recorder, file system management method, file recovery method and change drive
JP6670995B2 (en) Information recording apparatus and information recording method
US20050007912A1 (en) Recording medium, recording method and recording apparatus
JP2005190539A (en) Information recording method and information recording apparatus
JP2002230889A (en) Recording system and program for non-rewritable recording medium
JPWO2011096201A1 (en) Information reproducing apparatus and information reproducing method

Legal Events

Date Code Title Description
RD01 Notification of change of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7421

Effective date: 20190118

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20190529

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: 20190827

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20190909

R151 Written notification of patent or utility model registration

Ref document number: 6600818

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151