JP2005149248A - Metadata restoration system, method thereof, storage device and program therefor - Google Patents

Metadata restoration system, method thereof, storage device and program therefor Download PDF

Info

Publication number
JP2005149248A
JP2005149248A JP2003387363A JP2003387363A JP2005149248A JP 2005149248 A JP2005149248 A JP 2005149248A JP 2003387363 A JP2003387363 A JP 2003387363A JP 2003387363 A JP2003387363 A JP 2003387363A JP 2005149248 A JP2005149248 A JP 2005149248A
Authority
JP
Japan
Prior art keywords
metadata
area
data
unit
storage device
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.)
Pending
Application number
JP2003387363A
Other languages
Japanese (ja)
Inventor
Shogo Sadano
勝吾 貞野
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 JP2003387363A priority Critical patent/JP2005149248A/en
Publication of JP2005149248A publication Critical patent/JP2005149248A/en
Pending legal-status Critical Current

Links

Images

Landscapes

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

Abstract

<P>PROBLEM TO BE SOLVED: To detect that data are lost without requiring a computer to access a data-lost domain when a data-lost error is detected by the internal action of a storage device. <P>SOLUTION: When OS2 starts, a service program 7 loads a metadata recording/determination/restoration part 15 to a control part 10 of a storage device 9. When the control part 10 detects a data-lost error, the metadata recording/determination/restoration part 15 determines whether an error occurrence address exists in a metadata domain or in a file-data domain based on the error occurrence address of the data-lost error of a data storage part 13 and metadata read-out from a metadata back-up part 14, and if the error occurrence address exists in the metadata domain, metadata-domain back-up data of the metadata back-up part 14 are restored to the metadata domain of the data storage part 13. <P>COPYRIGHT: (C)2005,JPO&NCIPI

Description

本発明はメタデータ修復方式,方法および記憶装置ならびにプログラムに関し、特にコンピュータに内蔵あるいは接続される記憶装置におけるメタデータ修復方式,方法および記憶装置ならびにプログラムに関する。 The present invention relates to a metadata restoration method, method, storage device, and program, and more particularly, to a metadata restoration method, method, storage device, and program in a storage device that is built in or connected to a computer.

従来、コンピュータに内蔵あるいは接続される記憶装置において、記憶装置自身が装置内部のデータ記憶部を自己診断し、データ記憶部のエラーを自己検出している。例えば、RAID(Redundant Arrays of Independent Disks)装置の場合は、修復動作中に修復元ディスクでエラーを自己検出していた。 Conventionally, in a storage device built in or connected to a computer, the storage device itself self-diagnose a data storage unit inside the device and self-detects an error in the data storage unit. For example, in the case of a RAID (Redundant Arrays of Independent Disks) device, an error is self-detected on the restoration source disk during the restoration operation.

従来技術の一例では、ディスク装置のディスク媒体に、各種ファイルをインストールするデータ領域およびその管理領域以外に、索引領域を設ける。索引領域には、インストールされた各ファイル毎に、格納位置を示す物理アドレス情報とファイル名との組を記述したレコードが登録される。計算機システムの運用中にディスク媒体の或る物理アドレスで障害が発生したとき、障害発生物理アドレスと索引領域に登録されている各レコードの物理アドレス情報とを比較し、障害に遭遇したファイルの名前を検出する。検出されたファイル名はオペレータに通知され、オペレータはファイル置換によりファイルの復旧を行う。これにより、ディスク上のデータが破壊される障害が発生した場合、障害箇所を含むファイルのファイル名を特定してオペレータに通知し、全ファイルの再インストール無しに障害箇所を含むファイルのコピーだけで復旧できるようにしている(特許文献1参照)。 In an example of the prior art, an index area is provided on a disk medium of a disk device in addition to a data area for installing various files and its management area. In the index area, a record describing a set of physical address information indicating a storage position and a file name is registered for each installed file. When a failure occurs at a physical address on a disk medium during operation of the computer system, the failure address is compared with the physical address information of each record registered in the index area, and the name of the file that encountered the failure Is detected. The detected file name is notified to the operator, and the operator restores the file by file replacement. As a result, in the event of a failure that destroys the data on the disk, the file name of the file containing the failure location is identified and notified to the operator, and only the copy of the file containing the failure location can be obtained without reinstalling all files. It can be restored (see Patent Document 1).

また、従来技術の他の例は、ハードディスクから処理プログラムを呼び出し該処理プログラムを実行することにより、所定の処理を行うシステムに適用される耐障害性向上装置である。処理プログラムを実行中に該処理プログラム自身の処理に関するデータを不揮発性記憶装置に格納しておき、システム障害発生後に再起動されたとき不揮発性記憶装置に記憶されたデータを参照することにより処理プログラムによる処理を続行する。これにより、システム障害発生時の復旧の手間を低減して同時にデータの損失を抑えて、耐障害性を向上させることを可能としている(特許文献2参照)。
特開2000−235512(第4頁、図2) 特開2000−259438(第3頁、図2)
Another example of the prior art is a fault tolerance improving apparatus applied to a system that performs predetermined processing by calling a processing program from a hard disk and executing the processing program. During execution of a processing program, data relating to the processing of the processing program itself is stored in a nonvolatile storage device, and the processing program is referred to by referring to the data stored in the nonvolatile storage device when the processing program is restarted after a system failure occurs Continue processing by. As a result, it is possible to improve the fault tolerance by reducing the trouble of recovery when a system failure occurs and at the same time suppressing the loss of data (see Patent Document 2).
JP 2000-235512 (4th page, FIG. 2) JP 2000-259438 (3rd page, FIG. 2)

しかし、従来技術には、次のような問題点があった。 However, the prior art has the following problems.

第1の問題点は、記憶装置の内部動作で一部の領域のデータがロストして修復不可能なエラー(以下、データロストエラーという)を検出することがあるが、コンピュータはデータがロストされた領域(以下、データロスト領域という)にアクセスしない限りデータがロストされたことを検出しないということである。 The first problem is that data in some areas is lost due to internal operation of the storage device and an unrecoverable error (hereinafter referred to as data lost error) may be detected, but the computer loses data. This means that it is not detected that the data has been lost unless the data area (hereinafter referred to as the data lost area) is accessed.

第2の問題点は、近年、ハードディスク装置の容量の増加に伴い、保存しているデータが大容量化しているため、データロストエラーが発生した記憶装置のデータをバックアップファイルからリストアするには長時間を要することである。 The second problem is that, in recent years, with the increase in the capacity of hard disk devices, the capacity of stored data has increased, so it is long to restore data in a storage device in which a data lost error has occurred from a backup file. It takes time.

第3の問題点は、データロストエラーが発生したファイルを特定するために、コンピュータから記憶装置に記憶された全てのファイルを読み出すと、長時間を要することである。 The third problem is that it takes a long time to read all the files stored in the storage device from the computer in order to identify the file in which the data lost error has occurred.

第4の問題点は、データロスト領域が、オペレーティングシステム(以下、OSと略記する)管理情報,ファイルシステム管理情報,ボリュームマネージャ管理情報などのメタデータを記録するメタデータ領域の場合は、OSがファイル,ファイルシステム,ボリュームを認識できなくなることである。 The fourth problem is that when the data lost area is a metadata area for recording metadata such as operating system (hereinafter abbreviated as OS) management information, file system management information, volume manager management information, etc., the OS The file, file system, and volume cannot be recognized.

第5の問題点は、記憶装置は、種々様々なOS,アプリケーションプログラム,ファイルシステムマネージャ,ボリュームマネージャなどから使用されるが、それぞれの管理情報を記憶装置が判断するためには、管理情報を判断するテーブル(管理情報テーブル)を記憶装置に持たなくてはならず、新規のOSなどから使用する場合は、そのたび毎に記憶装置の管理情報テーブルを更新する必要が生じることである。 The fifth problem is that the storage device is used by various OSs, application programs, file system managers, volume managers, etc., but in order for the storage device to determine the management information, the management information is determined. It is necessary to have a table (management information table) to be stored in the storage device. When a new OS or the like is used, it is necessary to update the management information table of the storage device every time.

本発明の目的は、記憶装置の内部動作で一部の領域のデータロストエラーを検出した場合に、コンピュータがデータロスト領域にアクセスしなくてもデータがロストされたことを検出して修復することができるメタデータ修復方式,方法および記憶装置ならびにプログラムを提供することにある。 An object of the present invention is to detect and repair that data is lost even if the computer does not access the data lost area when a data lost error in a part of the area is detected by the internal operation of the storage device. The present invention provides a metadata restoration method, method, storage device and program.

本発明のメタデータ修復方式は、コンピュータにデータ送受信インタフェースを介して記憶装置が接続された情報処理システムにおいて、前記記憶装置が、メタデータ領域およびファイルデータ領域からなるデータ記憶部と、前記メタデータ領域のメタデータをバックアップするメタデータバックアップ部と、コンピュータのOS上で動作しているアプリケーションプログラムから記憶装置に対する書き込みコマンドおよび読み出しコマンドを受信した場合に、前記データ記憶部に対して書込みおよび読み出しを行ってファイルデータ領域およびメタデータ領域を更新するとともにメタデータ領域の更新内容を前記メタデータバックアップ部に記録する記憶装置制御プログラムと、記憶装置自身の内部動作で自己検出したデータロストエラーのエラー発生アドレスが前記メタデータ領域にあるか前記ファイルデータ領域にあるかを判断して、エラー発生アドレスがメタデータ領域にあれば前記メタデータバックアップ部のメタデータ領域バックアップデータを前記メタデータ領域に修復してデータロストエラーが発生したメタデータ領域情報をコンピュータのOS上で動作しているサービスプログラムに通知し、エラー発生アドレスがファイルデータ領域にあれば前記メタデータ領域に記憶されているメタデータに基づいてデータロストエラーが発生したファイルのファイル名を特定してサービスプログラムに通知するメタデータ記録・判断・修復部とを備え、前記コンピュータが、OSの起動時に前記メタデータ記録・判断・修復部を前記記憶装置の制御部にロードするサービスプログラムを備えることを特徴とする。 The metadata restoration method of the present invention is an information processing system in which a storage device is connected to a computer via a data transmission / reception interface, wherein the storage device includes a data storage unit including a metadata area and a file data area, and the metadata. When a metadata backup unit for backing up the metadata of the area and a write command and a read command for the storage device are received from an application program running on the OS of the computer, writing and reading to the data storage unit are performed. The storage device control program for updating the file data area and the metadata area and recording the updated contents of the metadata area in the metadata backup unit, and the data lost error detected by the internal operation of the storage device itself It is determined whether the error occurrence address is in the metadata area or the file data area. If the error occurrence address is in the metadata area, the metadata area backup data of the metadata backup unit is stored in the metadata area. Metadata area information in which a data lost error has occurred after restoration is notified to a service program operating on the OS of the computer, and the metadata stored in the metadata area if the error occurrence address is in the file data area A metadata recording / judgment / repair unit that identifies a file name of a file in which a data lost error has occurred and notifies the service program of the file, and the computer records, determines / repairs the metadata when the OS is started Service to load the storage unit into the control unit of the storage device Characterized in that it comprises a program.

また、本発明のメタデータ修復方式は、コンピュータにデータ送受信インタフェースを介して記憶装置が接続された情報処理システムにおいて、前記記憶装置が、メタデータ領域およびファイルデータ領域からなるデータ記憶部と、前記メタデータ領域のメタデータをバックアップするメタデータバックアップ部と、コンピュータのOS上で動作しているアプリケーションプログラムから記憶装置に対する書き込みコマンドおよび読み出しコマンドを受信した場合に、前記データ記憶部に対して書込みおよび読み出しを行ってファイルデータ領域およびメタデータ領域を更新するとともにメタデータ領域の更新内容を前記メタデータバックアップ部に記録する記憶装置制御プログラムと、記憶装置自身の内部動作で自己検出したデータロストエラーのエラー発生アドレスが前記メタデータ領域にあるか前記ファイルデータ領域にあるかを判断して、エラー発生アドレスがメタデータ領域にあれば前記メタデータバックアップ部のメタデータ領域バックアップデータを前記メタデータ領域に修復してデータロストエラーが発生したメタデータ領域情報をコンピュータのOS上で動作しているサービスプログラムに通知し、エラー発生アドレスがファイルデータ領域にあれば前記メタデータ領域に記憶されているメタデータに基づいてデータロストエラーが発生したファイルのファイル名を特定してサービスプログラムに通知するメタデータ記録・判断・修復部とを備え、前記コンピュータが、アプリケーションプログラムと、前記データ記憶部のファイルデータ領域にファイルシステムを作成するファイルシステムマネージャと、前記データ記憶部に対してボリュームを作成するボリュームマネージャと、OSの起動時に前記メタデータ記録・判断・修復部を前記記憶装置の制御部にロードするサービスプログラムと、前記記憶装置とデータを送受信するデータ送受信部とを備えることを特徴とする。 The metadata restoration method of the present invention is an information processing system in which a storage device is connected to a computer via a data transmission / reception interface, wherein the storage device includes a data storage unit including a metadata area and a file data area, A metadata backup unit that backs up metadata in the metadata area, and a write command and a read command for the storage device received from an application program running on the OS of the computer, A storage device control program for reading and updating the file data area and metadata area and recording the updated contents of the metadata area in the metadata backup unit, and a data lost self-detected by the internal operation of the storage apparatus itself If the error occurrence address is in the metadata area, the metadata area backup data of the metadata backup unit is transferred to the metadata. The metadata area information in which the data lost error has occurred after the restoration to the area is notified to the service program operating on the OS of the computer, and if the error occurrence address is in the file data area, it is stored in the metadata area. A metadata recording / judgment / repair unit that identifies a file name of a file in which a data lost error has occurred based on the metadata and notifies the service program of the file, and the computer includes an application program and a file in the data storage unit File system in the data area A file system manager for creating a volume, a volume manager for creating a volume for the data storage unit, a service program for loading the metadata recording / judgment / repair unit to the control unit of the storage device when an OS is started, A data transmission / reception unit for transmitting / receiving data to / from the storage device is provided.

さらに、本発明のメタデータ修復方式は、前記メタデータバックアップ部が、データ記憶部名毎に、OS種別情報,ファイルシステム種別情報,ボリュームマネージャ種別情報およびアプリケーション種別情報からなる種別情報と、OS領域アドレス情報,ファイルシステム領域アドレス情報,ボリュームマネージャ領域アドレス情報,アプリケーション領域アドレス情報およびデータ領域アドレス情報からなるメタデータ領域アドレス情報と、メタデータ領域バックアップデータとかなることを特徴とする。 Further, according to the metadata repair method of the present invention, the metadata backup unit includes, for each data storage unit name, type information including OS type information, file system type information, volume manager type information, and application type information, and an OS area. It is characterized by metadata area address information including address information, file system area address information, volume manager area address information, application area address information, and data area address information, and metadata area backup data.

一方、本発明のメタデータ修復方法は、コンピュータにデータ送受信インタフェースを介して記憶装置が接続された情報処理システムのメタデータ修復方法において、コンピュータのOSの起動時に、コンピュータのOS上で動作するサービスプログラムが、メタデータ記録・判断・修復部を記憶装置の制御部にロードする工程と、コンピュータのOS上で動作しているアプリケーションプログラムから記憶装置に対する書き込みコマンドおよび読み出しコマンドを受信した場合に、制御部の記憶装置制御プログラムが、データ記憶部に対して書込みおよび読み出しを行ってファイルデータ領域およびメタデータ領域を更新するとともにメタデータ領域の更新内容をメタデータバックアップ部に記録する工程と、記憶装置制御プログラムが、記憶装置の内部動作中にデータロストエラーを検出したときに、データロストエラー検出およびエラー発生アドレスをメタデータ記録・判断・修復部に通知する工程と、メタデータ記録・判断・修復部が、エラー発生アドレスがメタデータ領域にあるかファイルデータ領域にあるかを判断する工程と、エラー発生アドレスがファイルデータ領域にある場合、メタデータ記録・判断・修復部が、データロストエラーが発生したファイルのファイル名を特定する工程と、エラー発生アドレスがメタデータ領域にある場合、メタデータ記録・判断・修復部が、メタデータバックアップ部のメタデータ領域バックアップデータをデータ記憶部のメタデータ領域に書き戻すことによりデータ記憶部にメタデータを修復する工程と、メタデータ記録・判断・修復部が、ファイル名またはデータロストエラーが発生したメタデータ領域情報をサービスプログラムに通知する工程と、サービスプログラムが、ファイル名またはメタデータ領域情報をOSに通知する工程とを含むことを特徴とする。 On the other hand, the metadata restoration method of the present invention is a service for operating on a computer OS when the computer OS is started in the metadata restoration method for an information processing system in which a storage device is connected to a computer via a data transmission / reception interface. Control when the program receives the process of loading the metadata recording / judgment / restoration unit into the control unit of the storage device and the write command and read command for the storage device from the application program running on the OS of the computer A storage device control program for writing to and reading from the data storage unit to update the file data area and the metadata area and recording the updated contents of the metadata area in the metadata backup unit; The control program When a data lost error is detected during the internal operation of the storage device, the process of notifying the metadata recording / judgment / repair unit of the data lost error detection and the error occurrence address, and the metadata recording / judgment / repair unit The process of determining whether the occurrence address is in the metadata area or the file data area, and if the error occurrence address is in the file data area, the metadata recording / judgment / repair unit When the file name identification process and the error occurrence address are in the metadata area, the metadata recording / judgment / repair unit writes the metadata area backup data of the metadata backup unit back to the metadata area of the data storage unit Process to restore metadata in the data storage unit, and record and judge metadata The repair unit includes a step of notifying the service program of metadata area information in which a file name or data lost error has occurred, and a step of notifying the service program of the file name or metadata area information to the OS. To do.

また、本発明のメタデータ修復方法は、コンピュータにデータ送受信インタフェースを介して記憶装置が接続された情報処理システムのメタデータ修復方法において、コンピュータのOSの起動時に、コンピュータのOS上で動作するサービスプログラムが、メタデータ記録・判断・修復部を記憶装置の制御部にロードする工程と、コンピュータのOS上で動作しているボリュームマネージャによる記憶装置のデータ記憶部に対するボリュームの作成時に、制御部上で動作している記憶装置制御プログラムが、データ記憶部によるボリュームを作成し、メタデータ領域にボリュームマネージャ領域を作成し、ボリュームマネージャ種別情報をメタデータバックアップ部に記録するとともに、データ記憶部のボリュームマネージャ領域アドレス情報をメタデータバックアップ部に記録する工程と、コンピュータのOS上で動作しているファイルシステムマネージャによる記憶装置のデータ記憶部に対するファイルシステムの作成時に、記憶装置制御プログラムが、データ記憶部のファイルデータ領域にファイルシステムを作成し、メタデータ領域にファイルシステム領域を作成し、ファイルシステム種別情報をメタデータバックアップ部に記録するとともに、データ記憶部のファイルシステム領域アドレス情報をメタデータバックアップ部に記録する工程と、ボリュームの作成時およびファイルシステムの作成時に、記憶装置制御プログラムが、データ記憶部のメタデータ領域にOS領域を作成する工程と、サービスプログラムが、OSの種別情報を読み取り、記憶装置の制御部に通知する工程と、メタデータ記録・判断・修復部が、OS種別情報をメタデータバックアップ部に記録するとともに、データ記憶部のファイルシステム領域アドレス情報をメタデータバックアップ部に記録する工程と、コンピュータのOS上で動作しているアプリケーションプログラムから記憶装置に対する書き込みコマンドおよび読み出しコマンドを受信した場合に、記憶装置制御プログラムが、データ記憶部に対して書込みおよび読み出しを行ってファイルデータ領域およびメタデータ領域を更新するとともにメタデータ領域の更新内容を前記メタデータバックアップ部に記録する工程と、記憶装置制御プログラムが、記憶装置の内部動作中にデータロストエラーを検出したときに、データロストエラー検出およびエラー発生アドレスをメタデータ記録・判断・修復部に通知する工程と、メタデータ記録・判断・修復部が、エラー発生アドレスおよびメタデータバックアップ部から読み出した種別情報およびメタデータ領域アドレス情報に基づいてエラー発生アドレスがメタデータ領域にあるかファイルデータ領域にあるかを判断する工程と、エラー発生アドレスがファイルデータ領域にある場合、メタデータ記録・判断・修復部が、ファイル名を特定する工程と、エラー発生アドレスがメタデータ領域にある場合、メタデータ記録・判断・修復部が、メタデータバックアップ部のメタデータ領域バックアップデータをデータ記憶部のメタデータ領域に書き戻すことによりデータ記憶部にメタデータを修復する工程と、メタデータ記録・判断・修復部が、ファイル名またはデータロストエラーが発生したメタデータ領域情報をサービスプログラムに通知する工程と、サービスプログラムが、ファイル名またはメタデータ領域情報をOSに通知する工程とを含むことを特徴とする。 The metadata restoration method according to the present invention is a metadata restoration method for an information processing system in which a storage device is connected to a computer via a data transmission / reception interface, and a service that operates on the computer OS when the computer OS is started. When the program loads the metadata recording / judgment / restoration unit into the control unit of the storage device and creates a volume for the data storage unit of the storage device by the volume manager operating on the OS of the computer, The storage device control program operating in the process creates a volume by the data storage unit, creates a volume manager area in the metadata area, records volume manager type information in the metadata backup unit, and also creates a volume in the data storage unit. Manager area address Information is recorded in the metadata backup unit, and when the file system is created for the data storage unit of the storage device by the file system manager operating on the OS of the computer, the storage device control program executes the file data in the data storage unit. Create a file system in the area, create a file system area in the metadata area, record the file system type information in the metadata backup unit, and record the file system area address information of the data storage unit in the metadata backup unit A process, a process of creating an OS area in the metadata area of the data storage unit at the time of creating a volume and a file system, and a service program reading OS type information, Communicate to the control A step of recording the OS type information in the metadata backup unit, and recording the file system area address information of the data storage unit in the metadata backup unit, and the OS of the computer When a write command and read command for the storage device are received from the application program running above, the storage device control program updates the file data area and metadata area by writing to and reading from the data storage unit And the step of recording the updated contents of the metadata area in the metadata backup unit, and when the storage device control program detects a data lost error during the internal operation of the storage device, the data lost error detection and the error occurrence address Meta The process of notifying the data recording / judgment / restoration unit, and the metadata recording / judgment / recovery unit generates an error occurrence address based on the error occurrence address and the type information and metadata area address information read from the metadata backup unit. The process of determining whether the data is in the data area or the file data area, and if the error occurrence address is in the file data area, the metadata recording / determination / repair unit specifies the file name and the error occurrence address is When in the metadata area, the metadata recording / judgment / repair unit restores the metadata in the data storage unit by writing the metadata area backup data of the metadata backup unit back to the metadata area of the data storage unit The metadata recording / judgment / restoration unit A step of notifying the metadata area information-error occurs in the service program, service program, characterized by comprising a step of notifying the file name or metadata area information in the OS.

他方、本発明の記憶装置は、メタデータ領域およびファイルデータ領域からなるデータ記憶部と、前記メタデータ領域のメタデータをバックアップするメタデータバックアップ部と、コンピュータのOS上で動作しているアプリケーションプログラムから記憶装置に対する書き込みコマンドおよび読み出しコマンドを受信した場合に、前記データ記憶部に対して書込みおよび読み出しを行ってファイルデータ領域およびメタデータ領域を更新するとともにメタデータ領域の更新内容を前記メタデータバックアップ部に記録する記憶装置制御プログラムと、記憶装置自身の内部動作で自己検出したデータロストエラーのエラー発生アドレスが前記メタデータ領域にあるか前記ファイルデータ領域にあるかを判断して、エラー発生アドレスがメタデータ領域にあれば前記メタデータバックアップ部のメタデータ領域バックアップデータを前記メタデータ領域に修復し、エラー発生アドレスがファイルデータ領域にあれば前記メタデータ領域に記憶されているメタデータに基づいてファイル名を特定するメタデータ記録・判断・修復部とを有することを特徴とする。 On the other hand, the storage device of the present invention includes a data storage unit comprising a metadata area and a file data area, a metadata backup part for backing up the metadata in the metadata area, and an application program operating on the OS of the computer When a write command and a read command for the storage device are received from the storage device, the file data area and the metadata area are updated by writing to and reading from the data storage unit, and the update contents of the metadata area are updated with the metadata backup The error occurrence address is determined by determining whether the error occurrence address of the data lost error detected by the storage device control program to be recorded in the storage device itself and the internal operation of the storage device is in the metadata area or the file data area. Is meta If it is in the data area, the metadata area backup data of the metadata backup unit is restored to the metadata area, and if the error occurrence address is in the file data area, it is based on the metadata stored in the metadata area. It has a metadata recording / judgment / repair unit for specifying a file name.

また、本発明の記憶装置は、前記メタデータバックアップ部が、データ記憶部名毎に、OS種別情報,ファイルシステム種別情報,ボリュームマネージャ種別情報およびアプリケーション種別情報からなる種別情報と、OS領域アドレス情報,ファイルシステム領域アドレス情報,ボリュームマネージャ領域アドレス情報,アプリケーション領域アドレス情報およびデータ領域アドレス情報からなるメタデータ領域アドレス情報と、メタデータ領域バックアップデータとかなることを特徴とする。 In the storage device according to the present invention, the metadata backup unit may include, for each data storage unit name, type information including OS type information, file system type information, volume manager type information, and application type information, and OS area address information. , File system area address information, volume manager area address information, application area address information, and data area address information, and metadata area address data and metadata area backup data.

加えて、本発明のプログラムは、コンピュータを、記憶装置自身の内部動作で自己検出したデータロストエラーのエラー発生アドレスが前記メタデータ領域にあるか前記ファイルデータ領域にあるかを判断して、エラー発生アドレスがメタデータ領域にあれば前記メタデータバックアップ部のメタデータ領域バックアップデータを前記メタデータ領域に修復し、エラー発生アドレスがファイルデータ領域にあれば前記メタデータ領域に記憶されているメタデータに基づいてファイル名を特定するメタデータ記録・判断・修復部を、OSの起動時に前記記憶装置の制御部にロードするサービスプログラムとして動作させることを特徴とする。 In addition, the program of the present invention determines whether the error occurrence address of the data lost error self-detected by the internal operation of the storage device itself is in the metadata area or the file data area. If the occurrence address is in the metadata area, the metadata area backup data of the metadata backup unit is restored to the metadata area, and if the error occurrence address is in the file data area, the metadata stored in the metadata area The metadata recording / judgment / restoration unit that specifies the file name based on the above is operated as a service program loaded into the control unit of the storage device when the OS is started.

第1の効果は、記憶装置の内部動作で一部の領域のデータロストエラーを検出した場合に、コンピュータがデータロスト領域にアクセスしなくてもデータがロストされたことを検出できるということである。 The first effect is that when a data lost error in a partial area is detected by an internal operation of the storage device, it is possible to detect that the data has been lost without accessing the data lost area by the computer. .

第2の効果は、データロストエラーが発生した記憶装置の全データをバックアップファイルからリストアする必要がないということである。 The second effect is that it is not necessary to restore all data in the storage device in which the data lost error has occurred from the backup file.

第3の効果は、データロストエラーが発生したファイルを特定するために、コンピュータから記憶装置に記憶された全てのファイルを読み出す必要がないということである。 A third effect is that it is not necessary to read out all the files stored in the storage device from the computer in order to identify the file in which the data lost error has occurred.

第4の効果は、データロスト領域が、OS領域,ファイルシステム領域,ボリュームマネージャ領域などのメタデータ領域の場合でも、メタデータ領域のメタデータを修復できるということである。 The fourth effect is that the metadata in the metadata area can be restored even when the data lost area is a metadata area such as an OS area, a file system area, or a volume manager area.

第5の効果は、OSがアプリケーションプログラム,ファイルシステムマネージャ,ボリュームマネージャなどが使用する管理情報を判断するサービスプログラムをもつことにより、アプリケーションプログラム,ファイルシステムマネージャ,ボリュームマネージャがそれぞれサービスプログラムを更新する。サービスプログラムは、OSの起動時にメタデータ記録・判断・修復部を記憶装置の制御部にロードすることにより、記憶装置内のメタデータ領域の更新を意識してする必要がないということになり、新規にアプリケーションプログラムなどを使用した場合にそれぞれの管理情報を判断するための記憶装置内のメタデータ領域を更新する必要がなくなるということである。 The fifth effect is that the application program, the file system manager, and the volume manager each update the service program when the OS has a service program that determines management information used by the application program, file system manager, volume manager, and the like. The service program loads the metadata recording / judgment / restoration unit into the control unit of the storage device when the OS is started, so that it is not necessary to be aware of the update of the metadata area in the storage device, When a new application program or the like is used, it is not necessary to update the metadata area in the storage device for determining each management information.

以下、本発明の実施例について図面を参照して詳細に説明する。 Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings.

図1は、本発明の実施例1に係るメタデータ修復方式の構成を示すブロック図である。本実施例1に係るメタデータ修復方式は、コンピュータ1にデータ送受信インタフェース8を介して記憶装置9が接続されて、その主要部が構成されている。 FIG. 1 is a block diagram showing the configuration of the metadata restoration method according to the first embodiment of the present invention. In the metadata restoration method according to the first embodiment, a storage device 9 is connected to a computer 1 via a data transmission / reception interface 8 and its main part is configured.

コンピュータ1には、OS2が搭載されており、OS2上では、アプリケーションプログラム3,ファイルシステムマネージャ4,ボリュームマネージャ5,サービスプログラム(デーモンともいう)7およびデータ送受信部6が動作している。 An OS 2 is installed in the computer 1, and an application program 3, a file system manager 4, a volume manager 5, a service program (also called a daemon) 7 and a data transmission / reception unit 6 are operating on the OS 2.

記憶装置9は、例えば、磁気ディスク装置,ディスクアレイ装置,磁気テープ装置,CD(Compact Disk)やDVD(Digital Video Disk)等の光ディスク装置であり、記憶装置制御プログラム11およびメタデータ記録・判断・修復部15を有する制御部10と、内部データバス12と、内部データバス12に接続された1つ以上のデータ記憶部13と、内部データバス12に接続されたメタデータバックアップ部14とを有している。 The storage device 9 is, for example, an optical disk device such as a magnetic disk device, a disk array device, a magnetic tape device, a CD (Compact Disk), a DVD (Digital Video Disk), etc., and a storage device control program 11 and metadata recording / determination / A control unit 10 having a restoration unit 15, an internal data bus 12, one or more data storage units 13 connected to the internal data bus 12, and a metadata backup unit 14 connected to the internal data bus 12 are provided. doing.

ファイルシステムマネージャ4は、記憶装置9のデータ記憶部13のファイルデータ領域にファイルシステムを作成し、記憶装置9のどこに何のファイルがあるかを管理する。 The file system manager 4 creates a file system in the file data area of the data storage unit 13 of the storage device 9 and manages where and what files are in the storage device 9.

ボリュームマネージャ5は、物理的に複数のデータ記憶部13をグループ化して1つの論理的なディスクを形成するディスク管理ツールである。 The volume manager 5 is a disk management tool that physically groups a plurality of data storage units 13 to form one logical disk.

サービスプログラム7は、データ送受信部6およびデータ送受信インタフェース8を介して記憶装置9の制御部10と通信する。また、サービスプログラム7は、データロストエラーが発生したファイルデータ領域情報またはファイル名をコンピュータ1上のOS2に通知する。 The service program 7 communicates with the control unit 10 of the storage device 9 via the data transmission / reception unit 6 and the data transmission / reception interface 8. Further, the service program 7 notifies the OS 2 on the computer 1 of the file data area information or file name in which the data lost error has occurred.

制御部10は、内蔵する記憶媒体に格納された記憶装置制御プログラム11と、コンピュータ1からサービスプログラム7によりダウンロードされるメタデータ記録・判断・修復部15とから構成されている。 The control unit 10 includes a storage device control program 11 stored in a built-in storage medium, and a metadata recording / judgment / restoration unit 15 downloaded from the computer 1 by the service program 7.

制御部10は、通常運用時にはコンピュータ1からのデータ書き込み/読み出しコマンドに応じてデータの記録/再生をデータ記憶部13に対して行う。また、制御部10は、例えば、コンピュータ1によるOSフォーマットなどのメタデータの書き込み時には、コンピュータ1に搭載されたサービスプログラム7と通信し、コンピュータ1のOS2,ボリュームマネージャ5,ファイルシステムマネージャ4,アプリケーションプログラム3などの種別に関する情報(種別情報)およびデータ記憶部13の使用領域に関するアドレス情報等のメタデータをメタデータバックアップ部14に記録する。 The control unit 10 records / reproduces data to / from the data storage unit 13 in accordance with a data write / read command from the computer 1 during normal operation. Further, the control unit 10 communicates with the service program 7 installed in the computer 1 when the computer 1 writes metadata such as the OS format, and the OS 2, the volume manager 5, the file system manager 4, the application of the computer 1 Metadata such as information on the type of the program 3 (type information) and address information on the used area of the data storage unit 13 is recorded in the metadata backup unit 14.

制御部10は、データ記憶部13に対して、例えばRAID修復などの装置自身が内部動作する機能も有している。この動作中に、制御部10がデータロストエラーを検出した場合、メタデータ記録・判断・修復部15は、データ記憶部13のデータロストエラーのエラー発生アドレスおよびメタデータバックアップ部14から読み出したメタデータ領域アドレス情報C1に基づいてエラー発生アドレスがメタデータ領域にあるかファイルデータ領域にあるかを判断する。エラー発生アドレスがファイルデータ領域にある場合、メタデータ記録・判断・修復部15は、ファイル名を特定し、特定したファイル名を、制御部10からデータ送受信インタフェース8およびデータ送受信部6を介してコンピュータ1のサービスプログラム7に通知する。エラー発生アドレスがメタデータ領域にある場合、メタデータ記録・判断・修復部15は、メタデータバックアップ部14のメタデータ領域バックアップデータをデータ記憶部13のメタデータ領域に書き戻すことによりデータ記憶部13にメタデータを修復する。 The control unit 10 also has a function for operating the device itself, such as RAID restoration, for the data storage unit 13. If the control unit 10 detects a data lost error during this operation, the metadata recording / judgment / repair unit 15 causes the data lost error error occurrence address in the data storage unit 13 and the metadata read out from the metadata backup unit 14. Based on the data area address information C1, it is determined whether the error occurrence address is in the metadata area or the file data area. When the error occurrence address is in the file data area, the metadata recording / judgment / restoration unit 15 identifies the file name and sends the identified file name from the control unit 10 via the data transmission / reception interface 8 and the data transmission / reception unit 6. The service program 7 of the computer 1 is notified. When the error occurrence address is in the metadata area, the metadata recording / judgment / restoration unit 15 writes the metadata area backup data of the metadata backup unit 14 back to the metadata area of the data storage unit 13 to rewrite the data storage unit. 13 repairs the metadata.

図2(a)を参照すると、データ記憶部13は、メタデータ領域と、ファイルデータ領域とから構成され、メタデータ領域は、さらにOS領域と、ディレクトリ領域およびファイルシステム管理領域からなるファイルシステム領域と、ボリュームマネージャ領域と、rawファイル管理領域およびアプリケーション管理領域からなるアプリケーション領域と、データ領域アドレス領域とから構成されている。なお、ファイルシステム領域とは、ファイルデータ領域にファイルシステムを作成して使用している場合の領域であり、rawファイル領域とは、ファイルデータ領域にファイルシステムを作成せずに使用している場合の領域である。 Referring to FIG. 2A, the data storage unit 13 includes a metadata area and a file data area. The metadata area further includes a file system area including an OS area, a directory area, and a file system management area. A volume manager area, an application area composed of a raw file management area and an application management area, and a data area address area. The file system area is an area when a file system is created and used in the file data area, and the raw file area is when the file system is used without creating a file system. It is an area.

図2(b)を参照すると、ディレクトリ領域には、ファイル名とファイルデータアドレスとの組がディレクトリデータとして複数格納されている。なお、ディレクトリデータの何バイトから何バイトまでにファイル名が格納され、何バイトから何バイトまでにファイルデータアドレスが格納されているかを示す情報を、ディレクトリデータ構造情報という。ディレクトリデータ構造情報は、OS2の種別毎に異なっており、サービスプログラム7が記憶装置9の制御部10に対してメタデータ記録・判断・修復部15をロードする際に、メタデータ記録・判断・修復部15に含まれているものとする。 Referring to FIG. 2B, the directory area stores a plurality of sets of file names and file data addresses as directory data. Information indicating how many bytes to how many bytes of the directory data and how many bytes to how many bytes of the file data address are stored is called directory data structure information. The directory data structure information is different for each type of OS 2, and when the service program 7 loads the metadata recording / determination / repair unit 15 into the control unit 10 of the storage device 9, the metadata recording / determination / It is assumed that it is included in the restoration unit 15.

図3を参照すると、メタデータバックアップ部14には、データ記憶部名毎に、種別情報B1と、メタデータ領域アドレス情報C1と、メタデータ領域バックアップデータD1とが、コンピュータ1からは通常アクセスできない領域に圧縮されて記録保護されている。 Referring to FIG. 3, the type information B1, the metadata area address information C1, and the metadata area backup data D1 are not normally accessible from the computer 1 to the metadata backup section 14 for each data storage section name. The area is compressed and recorded.

種別情報B1は、OS種別情報B11,ファイルシステム種別情報B12,ボリュームマネージャ種別情報B13,およびアプリケーション種別情報B14から構成されている。 The type information B1 includes OS type information B11, file system type information B12, volume manager type information B13, and application type information B14.

メタデータ領域アドレス情報C1は、OS領域アドレス情報C11,ファイルシステム領域アドレス情報C12,ボリュームマネージャ領域アドレス情報C13,アプリケーション領域アドレス情報C14およびデータ領域アドレス情報C15から構成されている。これらのアドレス情報C11〜C15は、データ記憶部13のどこからどこまでがOS領域,ファイルシステム領域,ボリュームマネージャ領域,アプリケーション領域およびデータ領域でそれぞれ使用していることを特定するためのアドレス情報となる。 The metadata area address information C1 includes OS area address information C11, file system area address information C12, volume manager area address information C13, application area address information C14, and data area address information C15. These address information C11 to C15 are address information for specifying that the data storage unit 13 is used in the OS area, file system area, volume manager area, application area, and data area.

メタデータ領域バックアップデータD1は、データ記憶部13のメタデータ領域に記録されているメタデータをバックアップしているものである。 The metadata area backup data D1 is a backup of the metadata recorded in the metadata area of the data storage unit 13.

図4を参照すると、実施例1に係るメタデータ修復方式のメタデータ書き込み時の動作は、メタデータ書き込みステップA1と、制御部への通知ステップA2と、メタデータバックアップ部への記録ステップA3とからなる。 Referring to FIG. 4, the operation at the time of writing metadata in the metadata restoration method according to the first embodiment includes a metadata writing step A1, a notification step A2 to the control unit, and a recording step A3 to the metadata backup unit. Consists of.

図5を参照すると、実施例1に係るメタデータ修復方式の書き込みコマンドまたは読み出しコマンド受信時の動作は、書き込みコマンド/読み出しコマンド受信ステップA11と、書き込み/読み出し実行ステップA12と、書き込みコマンド判定ステップA13と、読み出しデータ返却ステップA14と、メタデータ領域更新ステップA15と、メタデータ領域の更新内容通知ステップA16と、メタデータ領域バックアップデータ記録ステップA17と、書き込み完了通知ステップA18とからなる。 Referring to FIG. 5, the operations upon receiving a write command or a read command in the metadata restoration method according to the first embodiment are a write command / read command reception step A11, a write / read execution step A12, and a write command determination step A13. Read data return step A14, metadata area update step A15, metadata area update content notification step A16, metadata area backup data recording step A17, and write completion notification step A18.

図6および図7を参照すると、実施例1に係るメタデータ修復方式の装置内部動作時の動作は、装置内部動作A21と、データロストエラー検出ステップA22と、データロストエラー検出・エラー発生アドレス通知ステップA23と、メタデータバックアップ部からの読み出しステップA24と、エラー発生アドレスとの比較ステップA25と、エラー発生アドレス有無判断ステップA26と、ファイルデータ領域判断ステップA27と、ファイルシステム種別情報読み出しステップA28と、ファイルシステム使用判断ステップA29と、ファイルシステム領域エラーステップA30と、ディレクトリ領域読み込みステップA31と、エラー発生アドレス照らし合わせステップA32と、エラー発生アドレス有無判定ステップA33と、ファイル名特定ステップA34と、サービスプログラムへの通知ステップA35と、OSへの通知ステップA36と、メタデータ領域判断ステップA37と、メタデータ領域バックアップデータ読み出しステップA38と、メタデータ修復ステップA39と、rawファイル領域エラーステップA40と、rawファイルディレクトリ領域読み込みステップA41と、エラー発生アドレスとの照らし合わせステップA42と、エラー発生アドレス有無判定ステップA43と、rawファイル名特定ステップA44とからなる。 Referring to FIGS. 6 and 7, the operations during the internal operation of the metadata restoration method according to the first embodiment are as follows: internal operation A21, data lost error detection step A22, data lost error detection / error occurrence address notification Step A23, step A24 for reading from the metadata backup unit, step A25 for comparing with the error occurrence address, step A26 for determining the presence or absence of an error occurrence address, step A27 for determining the file data area, step A28 for reading the file system type information , File system usage determination step A29, file system area error step A30, directory area reading step A31, error occurrence address comparison step A32, error occurrence address presence / absence determination step A33, File name identification step A34, service program notification step A35, OS notification step A36, metadata region determination step A37, metadata region backup data read step A38, metadata repair step A39, raw It comprises a file area error step A40, a raw file directory area reading step A41, an error occurrence address comparison step A42, an error occurrence address presence / absence determination step A43, and a raw file name specifying step A44.

次に、このように構成された実施例1に係るメタデータ修復方式の動作について、図1ないし図7を参照しながら説明する。 Next, the operation of the metadata restoration method according to the first embodiment configured as described above will be described with reference to FIGS.

コンピュータ1のOS2の起動時に、サービスプログラム7は、アプリケーションプログラム3が起動する前にサービスとして自動的に起動する。 When the OS 2 of the computer 1 is activated, the service program 7 is automatically activated as a service before the application program 3 is activated.

起動後、サービスプログラム7は、ディレクトリデータ構造情報を含むメタデータ記録・判断・修復部15をデータ送受信部6およびデータ送受信インタフェース8を介して記憶装置9の制御部10にロードする。 After startup, the service program 7 loads the metadata recording / judgment / restoration unit 15 including the directory data structure information into the control unit 10 of the storage device 9 via the data transmission / reception unit 6 and the data transmission / reception interface 8.

コンピュータ1のOS2上で動作するアプリケーションプログラム3から書き込まれるデータ(送信データ)は、ファイルシステムマネージャ4,ボリュームマネージャ5,データ送受信部6およびデータ送受信インタフェース8を介して記憶装置9に送信され、制御部10および内部データバス12を介してデータ記憶部13のファイルデータ領域に書き込まれる。 Data (transmission data) written from the application program 3 operating on the OS 2 of the computer 1 is transmitted to the storage device 9 via the file system manager 4, the volume manager 5, the data transmission / reception unit 6 and the data transmission / reception interface 8 to be controlled. The data is written into the file data area of the data storage unit 13 via the unit 10 and the internal data bus 12.

コンピュータ1のOS2上で動作するアプリケーションプログラム3によって記憶装置9から読み出されるデータ(受信データ)は、データ記憶部13から内部データバス12,制御部10およびデータ送受信インタフェース8を介してコンピュータ1に送信され、データ送受信部6,ボリュームマネージャ5およびファイルシステムマネージャ4を介してアプリケーションプログラム3に渡される。 Data (received data) read from the storage device 9 by the application program 3 operating on the OS 2 of the computer 1 is transmitted from the data storage unit 13 to the computer 1 via the internal data bus 12, the control unit 10 and the data transmission / reception interface 8. The data is transmitted to the application program 3 via the data transmission / reception unit 6, the volume manager 5 and the file system manager 4.

通常、アプリケーションプログラム3からの記憶装置9に対するデータの書き込み動作または読み出し動作中に、データ記憶部13の記憶領域の一部の欠陥などが原因でデータロストエラーが発生し、書き込み動作または読み出し動作が異常終了した場合、ボリュームマネージャ5,ファイルシステムマネージャ4およびアプリケーションプログラム3は、データ記憶部13のデータロストエラーのエラー発生アドレスを検出することができる。 Usually, during a data write operation or a read operation from the application program 3 to the storage device 9, a data lost error occurs due to a defect in a part of the storage area of the data storage unit 13, and the write operation or the read operation is performed. In the case of abnormal termination, the volume manager 5, the file system manager 4 and the application program 3 can detect the error occurrence address of the data lost error in the data storage unit 13.

しかし、記憶装置9自身がデータ記憶部13に対して行う装置内部動作(例えば、RAIDでの修復動作やデータ記憶部13内部での欠陥領域の検出動作)で検出されたデータ修復不可能な欠陥領域であるデータロスト領域は、コンピュータ1がそのデータロスト領域に対して書き込み動作または読み出し動作を行わない限り、データ記憶部13のどの領域でデータロストエラーが発生したかについては検出できない。 However, a defect that cannot be repaired by the data detected by the storage device 9 itself with respect to the data storage unit 13 (for example, a repair operation using RAID or a detection operation of a defective area within the data storage unit 13). The data lost area, which is an area, cannot detect in which area of the data storage unit 13 the data lost error has occurred unless the computer 1 performs a write operation or a read operation on the data lost area.

また、データロストエラーのエラー発生アドレスがデータ記憶部13のメタデータ領域にある場合、OS2は、ファイルやファイルシステムやボリュームを認識できなくなる。 When the error occurrence address of the data lost error is in the metadata area of the data storage unit 13, the OS 2 cannot recognize the file, file system, or volume.

実施例1に係るメタデータ修復方式の動作は、図6および図7に示すように、コンピュータ1がデータロスト領域にアクセスしなくてもデータロストエラー発生およびエラー発生アドレスを検出し、さらにエラー発生アドレスがメタデータ領域にある場合でも、データを修復できる点が従来とは異なる。 As shown in FIGS. 6 and 7, the operation of the metadata restoration method according to the first embodiment detects a data lost error and an error occurrence address even if the computer 1 does not access the data lost area, and further generates an error. Even if the address is in the metadata area, the data can be restored, which is different from the conventional one.

まず、コンピュータ1のOS2上で動作しているボリュームマネージャ5が記憶装置9のデータ記憶部13に対してボリュームを作成するときには(ステップA1)、制御部10上で動作している記憶装置制御プログラム11が、データ記憶部13のファイルデータ領域にボリュームを作成し、データ記憶部13のメタデータ領域にボリュームマネージャ領域を作成する。 First, when the volume manager 5 operating on the OS 2 of the computer 1 creates a volume in the data storage unit 13 of the storage device 9 (step A1), the storage device control program operating on the control unit 10 11 creates a volume in the file data area of the data storage unit 13 and creates a volume manager area in the metadata area of the data storage unit 13.

これと同時に、コンピュータ1のOS2上で動作しているサービスプログラム7は、ボリュームマネージャ5の種別情報をデータ送受信部6およびデータ送受信インタフェース8を介して記憶装置9の制御部10に通知する(ステップA2)。 At the same time, the service program 7 operating on the OS 2 of the computer 1 notifies the type information of the volume manager 5 to the control unit 10 of the storage device 9 via the data transmission / reception unit 6 and the data transmission / reception interface 8 (step). A2).

メタデータ記録・判断・修復部15は、ボリュームマネージャ5の種別情報をボリュームマネージャ種別情報B13としてメタデータバックアップ部14に記録するとともに、データ記憶部13のボリュームマネージャ領域に関するアドレス情報をボリュームマネージャ領域アドレス情報C13としてメタデータバックアップ部14に記録する(ステップA3)。 The metadata recording / judgment / restoration unit 15 records the type information of the volume manager 5 as the volume manager type information B13 in the metadata backup unit 14 and addresses information about the volume manager area of the data storage unit 13 to the volume manager area address. Information C13 is recorded in the metadata backup unit 14 (step A3).

また、コンピュータ1のOS2上で動作しているファイルシステムマネージャ4が記憶装置9のデータ記憶部13に対してファイルシステムを作成するときには(ステップA1)、制御部10上で動作している記憶装置制御プログラム11が、データ記憶部13のファイルデータ領域にファイルシステムを作成し、データ記憶部13のメタデータ領域にファイルシステム領域を作成する。 When the file system manager 4 operating on the OS 2 of the computer 1 creates a file system for the data storage unit 13 of the storage device 9 (step A1), the storage device operating on the control unit 10 The control program 11 creates a file system in the file data area of the data storage unit 13 and creates a file system area in the metadata area of the data storage unit 13.

これと同時に、コンピュータ1のOS2上で動作しているサービスプログラム7は、ファイルシステムマネージャ4の種別情報をデータ送受信部6およびデータ送受信インタフェース8を介して記憶装置9の制御部10に通知する(ステップA2)。 At the same time, the service program 7 running on the OS 2 of the computer 1 notifies the type information of the file system manager 4 to the control unit 10 of the storage device 9 via the data transmission / reception unit 6 and the data transmission / reception interface 8 ( Step A2).

メタデータ記録・判断・修復部15は、ファイルシステムマネージャ4の種別情報をファイルシステム種別情報B12としてメタデータバックアップ部14に記録するとともに、データ記憶部13のファイルシステム領域に関するアドレス情報をファイルシステム領域アドレス情報C12としてメタデータバックアップ部14に記録する(ステップA3)。 The metadata recording / judgment / restoration unit 15 records the type information of the file system manager 4 in the metadata backup unit 14 as file system type information B12, and also stores address information related to the file system area of the data storage unit 13 in the file system area. The address information C12 is recorded in the metadata backup unit 14 (step A3).

さらに、ボリュームの作成時(ステップA1)およびファイルシステムの作成時(ステップA1)には、制御部10上で動作している記憶装置制御プログラム11が、データ記憶部13のメタデータ領域にOS領域を作成する。 Further, at the time of volume creation (step A1) and file system creation (step A1), the storage device control program 11 operating on the control unit 10 stores the OS area in the metadata area of the data storage unit 13. Create

これと同時に、コンピュータ1のOS2上で動作しているサービスプログラム7は、OS2の種別情報を読み取り、データ送受信部6およびデータ送受信インタフェース8を介して記憶装置9の制御部10に通知する(ステップA2)。 At the same time, the service program 7 running on the OS 2 of the computer 1 reads the type information of the OS 2 and notifies the control unit 10 of the storage device 9 via the data transmission / reception unit 6 and the data transmission / reception interface 8 (steps). A2).

メタデータ記録・判断・修復部15は、OS2の種別情報をOS種別情報B11としてメタデータバックアップ部14に記録するとともに、データ記憶部13のOS領域に関するアドレス情報をOS領域アドレス情報C11としてメタデータバックアップ部14に記録する(ステップA3)。 The metadata recording / judgment / restoration unit 15 records the OS2 type information as the OS type information B11 in the metadata backup unit 14 and the address information related to the OS area of the data storage unit 13 as the OS area address information C11. It records in the backup part 14 (step A3).

コンピュータ1のOS2上で動作しているアプリケーションプログラム3から記憶装置9に対してファイルの書き込み動作または読み出し動作を実施した場合は、制御部10上で動作している記憶装置制御プログラム11は、書き込みコマンドまたは読み出しコマンドを受信すると(ステップA11)、データ記憶部13のファイルデータ領域に対して書き込みまたは読み出しを実行する(ステップA12)。 When the application program 3 operating on the OS 2 of the computer 1 performs a file write operation or read operation on the storage device 9, the storage device control program 11 operating on the control unit 10 writes When a command or a read command is received (step A11), writing or reading is executed on the file data area of the data storage unit 13 (step A12).

次に、記憶装置制御プログラム11は、書き込みコマンドであるかどうかを判断し(ステップA13)、書き込みコマンドでなければ(読み出しコマンドであれば)、読み出しデータを制御部10からデータ送受信インタフェース8を介してコンピュータ1に返却する(ステップA14)。 Next, the storage device control program 11 determines whether or not it is a write command (step A13). If it is not a write command (if it is a read command), read data is transferred from the control unit 10 via the data transmission / reception interface 8. To the computer 1 (step A14).

コンピュータ1では、データ受信部6で受け取られた読み出しデータがアプリケーションプログラム3に渡される。 In the computer 1, the read data received by the data receiving unit 6 is passed to the application program 3.

ステップA13で書き込みコマンドであれば、記憶装置制御プログラム11は、データ記憶部13に書き込まれたファイルの情報書き込みアドレスを用いてデータ記憶部13のメタデータ領域を更新し(ステップA15)、メタデータ領域の更新内容をメタデータ記録・判断・修復部15に通知する(ステップA16)。 If the command is a write command in step A13, the storage device control program 11 updates the metadata area of the data storage unit 13 using the information write address of the file written in the data storage unit 13 (step A15), and the metadata The update contents of the area are notified to the metadata recording / judgment / restoration unit 15 (step A16).

メタデータ記録・判断・修復部15は、メタデータ領域バックアップデータを記録する(ステップA17)。 The metadata recording / judgment / restoration unit 15 records metadata area backup data (step A17).

最後に、記憶装置制御プログラム11は、書き込み完了を制御部10からデータ送受信インタフェース8を介してコンピュータ1に通知する(ステップA18)。 Finally, the storage device control program 11 notifies the computer 1 of the completion of writing from the control unit 10 via the data transmission / reception interface 8 (step A18).

コンピュータ1では、データ受信部6で受け取られた書き込み完了通知がアプリケーションプログラム3に渡される。 In the computer 1, the write completion notification received by the data receiving unit 6 is passed to the application program 3.

制御部10の記憶装置制御プログラム11は、データ記憶部13に対して、例えばRAID修復などの記憶装置9の内部動作中に(ステップA21)、データロストエラーを検出した場合(ステップA22)、データロストエラー検出およびエラー発生アドレスをメタデータ記録・判断・修復部15に通知する(ステップA23)。 When the storage device control program 11 of the control unit 10 detects a data lost error with respect to the data storage unit 13 during the internal operation of the storage device 9 such as RAID repair (step A21), for example, the data The lost error detection and the error occurrence address are notified to the metadata recording / judgment / restoration unit 15 (step A23).

メタデータ記録・判断・修復部15は、データロストエラー検出およびエラー発生アドレスの通知があると、メタデータバックアップ部14からOS領域アドレス情報C11,ファイルシステム領域アドレス情報C12,ボリュームマネージャ領域アドレス情報C13およびアプリケーション領域アドレス情報C14を読み出し(ステップA24)、エラー発生アドレスと照らし合わせる(ステップA25)。読み出した各領域のアドレス情報にエラー発生アドレスがあるか否かを判断することにより領域種別を判断し(ステップA26)、見つかった場合はエラー発生アドレスがメタデータ領域にあると判断し(ステップA37)、見つからなかった場合はエラー発生アドレスがファイルデータ領域にあると判断する(ステップA27)。 When the metadata recording / judgment / restoration unit 15 receives data lost error detection and notification of an error occurrence address, the metadata backup unit 14 sends OS area address information C11, file system area address information C12, and volume manager area address information C13. The application area address information C14 is read (step A24) and compared with the error occurrence address (step A25). The area type is determined by determining whether or not there is an error occurrence address in the read address information of each area (step A26). If it is found, it is determined that the error occurrence address is in the metadata area (step A37). If not found, it is determined that the error occurrence address is in the file data area (step A27).

エラー発生アドレスがファイルデータ領域にあると判断した場合は(ステップA27)、メタデータ記録・判断・修復部15は、さらにメタデータバックアップ部14のファイルシステム種別情報B12を読み出し(ステップA28)、ファイルシステムを使用しているか否かを判断する(ステップA29)。 If it is determined that the error occurrence address is in the file data area (step A27), the metadata recording / determination / restoration unit 15 further reads the file system type information B12 of the metadata backup unit 14 (step A28), and the file It is determined whether or not the system is used (step A29).

エラー発生アドレスがファイルデータ領域にあり、かつファイルシステムを使用しているファイルシステム領域の場合(ステップA30)、メタデータ記録・判断・修復部15は、データ記憶部13のメタデータ領域におけるファイルシステム領域のディレクトリ領域を読み込み(ステップA31)、メタデータ記録・判断・修復部15にあるディレクトリデータ構造情報を使用してディレクトリデータのファイルデータアドレスとエラー発生アドレスとを順次照らし合わせ(ステップA32およびA33)、ファイルデータアドレスを特定することによりファイル名を特定する(ステップA34)。 When the error occurrence address is in the file data area and the file system area is using the file system (step A30), the metadata recording / judgment / restoration unit 15 uses the file system in the metadata area of the data storage unit 13. The directory area of the area is read (step A31), and the file data address of the directory data and the error occurrence address are sequentially compared using the directory data structure information in the metadata recording / judgment / restoration unit 15 (steps A32 and A33). The file name is specified by specifying the file data address (step A34).

エラー発生アドレスがファイルデータ領域にあり、かつファイルシステムを使用していないrawファイル領域の場合(ステップA40)、メタデータ記録・判断・修復部15は、データ記憶部13のメタデータ領域におけるアプリケーション領域のrawファイル管理領域を読み込み(ステップA41)、メタデータ記録・判断・修復部15にあるディレクトリデータ構造情報を使用してrawファイルディレクトリデータのファイルデータアドレスとエラー発生アドレスとを順次照らし合わせ(ステップA42およびA43)、ファイルデータアドレスを特定することによりrawファイル名を特定する(ステップA44)。 When the error occurrence address is in the file data area and the raw file area does not use the file system (step A40), the metadata recording / judgment / restoration unit 15 uses the application area in the metadata area of the data storage unit 13. The raw file management area is read (step A41), and the file data address of the raw file directory data and the error occurrence address are sequentially compared using the directory data structure information in the metadata recording / judgment / recovery unit 15 (step A41). A42 and A43), the raw file name is specified by specifying the file data address (step A44).

次に、メタデータ記録・判断・修復部15は、データロストエラーが発生したファイルのファイル名(rawファイル名を含む)またはデータロストエラーが発生したメタデータ領域情報を、制御部10,データ送受信インタフェース8およびデータ送受信部6を介してコンピュータ1のOS2上で動作しているサービスプログラム7に通知する(ステップA35)。 Next, the metadata recording / judgment / repair unit 15 sends the file name (including the raw file name) of the file in which the data lost error has occurred or the metadata area information in which the data lost error has occurred to the control unit 10, data transmission / reception The service program 7 operating on the OS 2 of the computer 1 is notified via the interface 8 and the data transmitting / receiving unit 6 (step A35).

サービスプログラム7は、ファイル名またはメタデータ領域情報をOS2に通知する(ステップA36)。 The service program 7 notifies the OS 2 of the file name or metadata area information (step A36).

一方、領域種別判断(ステップA26)において、エラー発生アドレスがメタデータ領域にあると判断した場合(ステップA37)、メタデータ記録・判断・修復部15は、メタデータバックアップ部14のメタデータ領域バックアップデータD1を読み出し(ステップA38)、データ記憶部13のメタデータ領域に書き込むことによりメタデータを修復する(ステップA39)。 On the other hand, in the area type determination (step A26), when it is determined that the error occurrence address is in the metadata area (step A37), the metadata recording / determination / restoration unit 15 performs the metadata area backup of the metadata backup unit 14. The data D1 is read (step A38), and the metadata is restored by writing it in the metadata area of the data storage unit 13 (step A39).

この後、メタデータ記録・判断・修復部15は、データロストエラーが発生したファイルのファイル名(rawファイル名を含む)またはデータロストエラーが発生したメタデータ領域情報を、制御部10,データ送受信インタフェース8およびデータ送受信部6を介してコンピュータ1のOS2上で動作しているサービスプログラム7に通知する(ステップA35)。 Thereafter, the metadata recording / judgment / restoration unit 15 sends the file name (including the raw file name) of the file in which the data lost error has occurred or the metadata area information in which the data lost error has occurred to the control unit 10 and data transmission / reception. The service program 7 operating on the OS 2 of the computer 1 is notified via the interface 8 and the data transmitting / receiving unit 6 (step A35).

サービスプログラム7は、ファイル名またはメタデータ領域情報をOS2に通知する(ステップA36)。 The service program 7 notifies the OS 2 of the file name or metadata area information (step A36).

このように、データ記憶部13のどこのアドレスにファイルデータが書き込まれているかという情報はメタデータ領域にあり、このメタデータ領域に書き込まれている情報がロストした場合は、ファイルデータがどこに書き込まれているか分からないために読み出せなくなるが、メタデータ領域に書き込まれているデータをバックアップ(メタデータ領域バックアップデータD1)することにより、メタデータ領域のデータがロストしたときには、バックアップから修復することによってこれを回避することができる。一般的に、メタデータ領域は、ファイルデータ領域に比較して小領域のため、データ記憶部13全体をバックアップするより効率がよくなる。 As described above, the information indicating where the file data is written in the data storage unit 13 is in the metadata area, and when the information written in the metadata area is lost, the file data is written where. However, if data in the metadata area is lost by backing up the data written in the metadata area (metadata area backup data D1), the data is restored from the backup. This can be avoided. In general, since the metadata area is a small area compared to the file data area, it is more efficient than backing up the entire data storage unit 13.

図8は、本発明の実施例2に係るメタデータ修復方式の構成を示すブロック図である。本実施例2に係るメタデータ修復方式は、図1に示した実施例1に係るメタデータ修復方式のコンピュータ1に対してサービスプログラム7を付加するようにした点だけが異なる。したがって、その他の特に言及しない部分には同一符号を付して、それらの詳しい説明を省略する。 FIG. 8 is a block diagram illustrating the configuration of the metadata restoration method according to the second embodiment of the present invention. The metadata restoration method according to the second embodiment is different only in that the service program 7 is added to the computer 1 of the metadata restoration method according to the first embodiment shown in FIG. Accordingly, other parts not specifically mentioned are denoted by the same reference numerals, and detailed description thereof is omitted.

サービスプログラム7は、コンピュータ1に読み込まれ、コンピュータ1の動作を、実施例1におけるコンピュータ1の動作と全く同様に制御する。したがって、その詳しい説明を割愛する。 The service program 7 is read into the computer 1 and controls the operation of the computer 1 in the same manner as the operation of the computer 1 in the first embodiment. Therefore, the detailed explanation is omitted.

本発明の実施例1に係るメタデータ修復方式の構成を示すブロック図である。It is a block diagram which shows the structure of the metadata restoration system which concerns on Example 1 of this invention. (a)は図1中のデータ記憶部の構成をより詳細に説明する図であり、(b)はディレクトリ領域の内容をより詳細に説明する図である。(A) is a figure explaining the structure of the data memory | storage part in FIG. 1 in detail, (b) is a figure explaining the content of a directory area | region in detail. 図1中のメタデータバックアップ部の構成をより詳細に説明する図である。It is a figure explaining the structure of the metadata backup part in FIG. 1 in detail. 実施例1に係るメタデータ修復方式のメタデータ書き込み時の動作を示すフローチャートである。6 is a flowchart illustrating an operation at the time of writing metadata in the metadata restoration method according to the first embodiment. 実施例1に係るメタデータ修復方式の書き込みコマンドまたは読み出しコマンド受信時の動作を示すフローチャートである。6 is a flowchart illustrating an operation when a write command or a read command is received in the metadata restoration method according to the first embodiment. 実施例1に係るメタデータ修復方式の装置内部動作時の動作を示すフローチャートである。7 is a flowchart illustrating an operation during an internal operation of the metadata restoration method according to the first embodiment. 実施例1に係るメタデータ修復方式の装置内部動作時の動作を示すフローチャートである。7 is a flowchart illustrating an operation during an internal operation of the metadata restoration method according to the first embodiment. 本発明の実施例2に係るメタデータ修復方式の構成を示すブロック図である。It is a block diagram which shows the structure of the metadata restoration system which concerns on Example 2 of this invention.

符号の説明Explanation of symbols

1 コンピュータ
2 オペレーティングシステム(OS)
3 アプリケーションプログラム
4 ファイルシステムマネージャ
5 ボリュームマネージャ
6 データ送受信部
7 サービスプログラム
8 データ送受信インタフェース
9 記憶装置
10 制御部
11 記憶装置制御プログラム
12 内部データバス
13 データ記憶部
14 メタデータバックアップ部
15 メタデータ記録・判断・修復部
A1 メタデータ書き込みステップ
A2 制御部への通知ステップ
A3 メタデータバックアップ部への記録ステップ
A11 書き込みコマンド/読み出しコマンド受信ステップ
A12 書き込み/読み出し実行ステップ
A13 書き込みコマンド判定ステップ
A14 読み出しデータ返却ステップ
A15 メタデータ領域更新ステップ
A16 メタデータ領域の更新内容通知ステップ
A17 メタデータ領域バックアップデータ記録ステップ
A18 書き込み完了通知ステップ
A21 装置内部動作ステップ
A22 データロストエラー検出ステップ
A23 データロストエラー検出・エラー発生アドレス通知ステップ
A24 メタデータバックアップ部からの読み出しステップ
A25 エラー発生アドレスとの比較ステップ
A26 エラー発生アドレス有無判断ステップ
A27 ファイルデータ領域判断ステップ
A28 ファイルシステム種別情報読み出しステップ
A29 ファイルシステム使用判断ステップ
A30 ファイルシステム領域エラーステップ
A31 ディレクトリ領域読み込みステップ
A32 エラー発生アドレス照らし合わせステップ
A33 エラー発生アドレス有無判定ステップ
A34 ファイル名特定ステップ
A35 サービスプログラムへの通知ステップ
A36 OSへの通知ステップ
A37 メタデータ領域判断ステップ
A38 メタデータ領域バックアップデータ読み出しステップ
A39 メタデータ修復ステップ
A40 rawファイル領域エラーステップ
A41 rawファイルディレクトリ領域読み込みステップ
A42 エラー発生アドレスとの照らし合わせステップ
A43 エラー発生アドレス有無判定ステップ
A44 rawファイル名特定ステップ
B1 種別情報
B11 OS種別情報
B12 ファイルシステム種別情報
B13 ボリュームマネージャ種別情報
B14 アプリケーション種別情報
C1 メタデータ領域アドレス情報
C11 OS領域アドレス情報
C12 ファイルシステム領域アドレス情報
C13 ボリュームマネージャ領域アドレス情報
C14 アプリケーション領域アドレス情報
C15 データ領域アドレス情報
D1 メタデータ領域バックアップデータ
1 Computer 2 Operating System (OS)
3 Application program 4 File system manager 5 Volume manager 6 Data transmission / reception unit 7 Service program 8 Data transmission / reception interface 9 Storage device 10 Control unit 11 Storage device control program 12 Internal data bus 13 Data storage unit 14 Metadata backup unit 15 Metadata recording / recording Determination / restoration unit A1 Metadata writing step A2 Control unit notification step A3 Metadata backup unit recording step A11 Write command / read command reception step A12 Write / read execution step A13 Write command determination step A14 Read data return step A15 Metadata area update step A16 Metadata area update content notification step A17 Metadata area backup data recording Step A18 Write completion notification step A21 Device internal operation step A22 Data lost error detection step A23 Data lost error detection / error occurrence address notification step A24 Reading from the metadata backup unit A25 Comparison with error occurrence address A26 Error occurrence address presence / absence Judgment Step A27 File Data Area Judgment Step A28 File System Type Information Reading Step A29 File System Usage Judgment Step A30 File System Area Error Step A31 Directory Area Reading Step A32 Error Occurrence Address Comparison Step A33 Error Occurrence Address Presence Determination Step A34 File Name Specification Step A35 Notification to service program Step A36 To OS Notification step A37 Metadata area determination step A38 Metadata area backup data read step A39 Metadata restoration step A40 raw file area error step A41 raw file directory area reading step A42 Error occurrence address comparison step A43 Error occurrence address existence determination step A44 raw file name identification step B1 type information B11 OS type information B12 file system type information B13 volume manager type information B14 application type information C1 metadata area address information C11 OS area address information C12 file system area address information C13 volume manager area address information C14 Application area address information C15 Data area Dress information D1 metadata area backup data

Claims (8)

コンピュータにデータ送受信インタフェースを介して記憶装置が接続された情報処理システムにおいて、
前記記憶装置が、メタデータ領域およびファイルデータ領域からなるデータ記憶部と、前記メタデータ領域のメタデータをバックアップするメタデータバックアップ部と、コンピュータのOS上で動作しているアプリケーションプログラムから記憶装置に対する書き込みコマンドおよび読み出しコマンドを受信した場合に、前記データ記憶部に対して書込みおよび読み出しを行ってファイルデータ領域およびメタデータ領域を更新するとともにメタデータ領域の更新内容を前記メタデータバックアップ部に記録する記憶装置制御プログラムと、記憶装置自身の内部動作で自己検出したデータロストエラーのエラー発生アドレスが前記メタデータ領域にあるか前記ファイルデータ領域にあるかを判断して、エラー発生アドレスがメタデータ領域にあれば前記メタデータバックアップ部のメタデータ領域バックアップデータを前記メタデータ領域に修復してデータロストエラーが発生したメタデータ領域情報をコンピュータのOS上で動作しているサービスプログラムに通知し、エラー発生アドレスがファイルデータ領域にあれば前記メタデータ領域に記憶されているメタデータに基づいてデータロストエラーが発生したファイルのファイル名を特定してサービスプログラムに通知するメタデータ記録・判断・修復部とを備え、
前記コンピュータが、OSの起動時に前記メタデータ記録・判断・修復部を前記記憶装置の制御部にロードするサービスプログラムを備えることを特徴とするメタデータ修復方式。
In an information processing system in which a storage device is connected to a computer via a data transmission / reception interface,
The storage device includes a data storage unit including a metadata area and a file data area, a metadata backup unit that backs up metadata in the metadata area, and an application program operating on the OS of the computer. When a write command and a read command are received, the file data area and the metadata area are updated by writing to and reading from the data storage unit, and the updated contents of the metadata area are recorded in the metadata backup unit. Determine whether the error occurrence address of the data lost error detected by the storage device control program and the internal operation of the storage device itself is in the metadata area or the file data area, and the error occurrence address is in the metadata area If there is, the metadata area backup data of the metadata backup unit is restored to the metadata area, and the metadata area information in which the data lost error has occurred is notified to the service program running on the computer OS, and an error has occurred. A metadata recording / judgment / repair unit that identifies a file name of a file in which a data lost error has occurred and notifies the service program based on the metadata stored in the metadata area if the address is in the file data area; With
A metadata restoration method, wherein the computer includes a service program that loads the metadata recording / judgment / repair unit to a control unit of the storage device when an OS is started.
コンピュータにデータ送受信インタフェースを介して記憶装置が接続された情報処理システムにおいて、
前記記憶装置が、メタデータ領域およびファイルデータ領域からなるデータ記憶部と、前記メタデータ領域のメタデータをバックアップするメタデータバックアップ部と、コンピュータのOS上で動作しているアプリケーションプログラムから記憶装置に対する書き込みコマンドおよび読み出しコマンドを受信した場合に、前記データ記憶部に対して書込みおよび読み出しを行ってファイルデータ領域およびメタデータ領域を更新するとともにメタデータ領域の更新内容を前記メタデータバックアップ部に記録する記憶装置制御プログラムと、記憶装置自身の内部動作で自己検出したデータロストエラーのエラー発生アドレスが前記メタデータ領域にあるか前記ファイルデータ領域にあるかを判断して、エラー発生アドレスがメタデータ領域にあれば前記メタデータバックアップ部のメタデータ領域バックアップデータを前記メタデータ領域に修復してデータロストエラーが発生したメタデータ領域情報をコンピュータのOS上で動作しているサービスプログラムに通知し、エラー発生アドレスがファイルデータ領域にあれば前記メタデータ領域に記憶されているメタデータに基づいてデータロストエラーが発生したファイルのファイル名を特定してサービスプログラムに通知するメタデータ記録・判断・修復部とを備え、
前記コンピュータが、アプリケーションプログラムと、前記データ記憶部のファイルデータ領域にファイルシステムを作成するファイルシステムマネージャと、前記データ記憶部に対してボリュームを作成するボリュームマネージャと、OSの起動時に前記メタデータ記録・判断・修復部を前記記憶装置の制御部にロードするサービスプログラムと、前記記憶装置とデータを送受信するデータ送受信部とを備えることを特徴とするメタデータ修復方式。
In an information processing system in which a storage device is connected to a computer via a data transmission / reception interface,
The storage device includes a data storage unit including a metadata area and a file data area, a metadata backup unit that backs up metadata in the metadata area, and an application program operating on the OS of the computer. When a write command and a read command are received, the file data area and the metadata area are updated by writing to and reading from the data storage unit, and the updated contents of the metadata area are recorded in the metadata backup unit. Determine whether the error occurrence address of the data lost error detected by the storage device control program and the internal operation of the storage device itself is in the metadata area or the file data area, and the error occurrence address is in the metadata area If there is, the metadata area backup data of the metadata backup unit is restored to the metadata area, and the metadata area information in which the data lost error has occurred is notified to the service program running on the computer OS, and an error has occurred. A metadata recording / judgment / repair unit that identifies a file name of a file in which a data lost error has occurred and notifies the service program based on the metadata stored in the metadata area if the address is in the file data area; With
The computer includes an application program, a file system manager that creates a file system in the file data area of the data storage unit, a volume manager that creates a volume for the data storage unit, and the metadata recording when the OS is started up A metadata restoration system comprising: a service program that loads a judgment / repair unit to the control unit of the storage device; and a data transmission / reception unit that transmits / receives data to / from the storage device.
前記メタデータバックアップ部が、データ記憶部名毎に、OS種別情報,ファイルシステム種別情報,ボリュームマネージャ種別情報およびアプリケーション種別情報からなる種別情報と、OS領域アドレス情報,ファイルシステム領域アドレス情報,ボリュームマネージャ領域アドレス情報,アプリケーション領域アドレス情報およびデータ領域アドレス情報からなるメタデータ領域アドレス情報と、メタデータ領域バックアップデータとからなることを特徴とする請求項1または請求項2記載のメタデータ修復方式。 The metadata backup unit includes, for each data storage unit name, type information including OS type information, file system type information, volume manager type information and application type information, OS area address information, file system area address information, volume manager. 3. The metadata restoration method according to claim 1, comprising metadata area address information including area address information, application area address information, and data area address information, and metadata area backup data. コンピュータにデータ送受信インタフェースを介して記憶装置が接続された情報処理システムのメタデータ修復方法において、
コンピュータのOSの起動時に、コンピュータのOS上で動作するサービスプログラムが、メタデータ記録・判断・修復部を記憶装置の制御部にロードする工程と、
コンピュータのOS上で動作しているアプリケーションプログラムから記憶装置に対する書き込みコマンドおよび読み出しコマンドを受信した場合に、制御部の記憶装置制御プログラムが、データ記憶部に対して書込みおよび読み出しを行ってファイルデータ領域およびメタデータ領域を更新するとともにメタデータ領域の更新内容をメタデータバックアップ部に記録する工程と、
記憶装置制御プログラムが、記憶装置の内部動作中にデータロストエラーを検出したときに、データロストエラー検出およびエラー発生アドレスをメタデータ記録・判断・修復部に通知する工程と、
メタデータ記録・判断・修復部が、エラー発生アドレスがメタデータ領域にあるかファイルデータ領域にあるかを判断する工程と、
エラー発生アドレスがファイルデータ領域にある場合、メタデータ記録・判断・修復部が、データロストエラーが発生したファイルのファイル名を特定する工程と、
エラー発生アドレスがメタデータ領域にある場合、メタデータ記録・判断・修復部が、メタデータバックアップ部のメタデータ領域バックアップデータをデータ記憶部のメタデータ領域に書き戻すことによりデータ記憶部にメタデータを修復する工程と、
メタデータ記録・判断・修復部が、ファイル名またはデータロストエラーが発生したメタデータ領域情報をサービスプログラムに通知する工程と、
サービスプログラムが、ファイル名またはメタデータ領域情報をOSに通知する工程と
を含むことを特徴とするメタデータ修復方法。
In a metadata restoration method for an information processing system in which a storage device is connected to a computer via a data transmission / reception interface,
A service program operating on the computer OS loads the metadata recording / judgment / repair unit into the control unit of the storage device when the computer OS is started;
When a write command and a read command for the storage device are received from an application program running on the OS of the computer, the storage device control program of the control unit writes to and reads from the data storage unit to create a file data area And updating the metadata area and recording the updated contents of the metadata area in the metadata backup unit;
When the storage device control program detects a data lost error during the internal operation of the storage device, the step of notifying the metadata recording / determination / repair unit of the data lost error detection and the error occurrence address;
A step in which the metadata recording / determination / repair unit determines whether the error occurrence address is in the metadata area or the file data area;
When the error occurrence address is in the file data area, the metadata recording / judgment / repair unit identifies the file name of the file in which the data lost error has occurred, and
When the error occurrence address is in the metadata area, the metadata recording / judgment / repair unit writes the metadata area backup data of the metadata backup unit back to the metadata area of the data storage unit, and the metadata is stored in the data storage unit. The process of repairing,
A step in which the metadata recording / judgment / repair unit notifies the service program of the file name or metadata area information in which a data lost error has occurred;
And a service program notifying the OS of a file name or metadata area information.
コンピュータにデータ送受信インタフェースを介して記憶装置が接続された情報処理システムのメタデータ修復方法において、
コンピュータのOSの起動時に、コンピュータのOS上で動作するサービスプログラムが、メタデータ記録・判断・修復部を記憶装置の制御部にロードする工程と、
コンピュータのOS上で動作しているボリュームマネージャによる記憶装置のデータ記憶部に対するボリュームの作成時に、制御部上で動作している記憶装置制御プログラムが、データ記憶部によるボリュームを作成し、メタデータ領域にボリュームマネージャ領域を作成し、ボリュームマネージャ種別情報をメタデータバックアップ部に記録するとともに、データ記憶部のボリュームマネージャ領域アドレス情報をメタデータバックアップ部に記録する工程と、
コンピュータのOS上で動作しているファイルシステムマネージャによる記憶装置のデータ記憶部に対するファイルシステムの作成時に、記憶装置制御プログラムが、データ記憶部のファイルデータ領域にファイルシステムを作成し、メタデータ領域にファイルシステム領域を作成し、ファイルシステム種別情報をメタデータバックアップ部に記録するとともに、データ記憶部のファイルシステム領域アドレス情報をメタデータバックアップ部に記録する工程と、
ボリュームの作成時およびファイルシステムの作成時に、記憶装置制御プログラムが、データ記憶部のメタデータ領域にOS領域を作成する工程と、
サービスプログラムが、OSの種別情報を読み取り、記憶装置の制御部に通知する工程と、
メタデータ記録・判断・修復部が、OS種別情報をメタデータバックアップ部に記録するとともに、データ記憶部のファイルシステム領域アドレス情報をメタデータバックアップ部に記録する工程と、
コンピュータのOS上で動作しているアプリケーションプログラムから記憶装置に対する書き込みコマンドおよび読み出しコマンドを受信した場合に、記憶装置制御プログラムが、データ記憶部に対して書込みおよび読み出しを行ってファイルデータ領域およびメタデータ領域を更新するとともにメタデータ領域の更新内容を前記メタデータバックアップ部に記録する工程と、
記憶装置制御プログラムが、記憶装置の内部動作中にデータロストエラーを検出したときに、データロストエラー検出およびエラー発生アドレスをメタデータ記録・判断・修復部に通知する工程と、
メタデータ記録・判断・修復部が、エラー発生アドレスおよびメタデータバックアップ部から読み出した種別情報およびメタデータ領域アドレス情報に基づいてエラー発生アドレスがメタデータ領域にあるかファイルデータ領域にあるかを判断する工程と、
エラー発生アドレスがファイルデータ領域にある場合、メタデータ記録・判断・修復部が、ファイル名を特定する工程と、
エラー発生アドレスがメタデータ領域にある場合、メタデータ記録・判断・修復部が、メタデータバックアップ部のメタデータ領域バックアップデータをデータ記憶部のメタデータ領域に書き戻すことによりデータ記憶部にメタデータを修復する工程と、
メタデータ記録・判断・修復部が、ファイル名またはデータロストエラーが発生したメタデータ領域情報をサービスプログラムに通知する工程と、
サービスプログラムが、ファイル名またはメタデータ領域情報をOSに通知する工程と
を含むことを特徴とするメタデータ修復方法。
In a metadata restoration method for an information processing system in which a storage device is connected to a computer via a data transmission / reception interface,
A service program operating on the computer OS loads the metadata recording / judgment / repair unit into the control unit of the storage device when the computer OS is started;
When creating a volume for a data storage unit of a storage device by a volume manager operating on the OS of the computer, a storage device control program operating on the control unit creates a volume by the data storage unit, and a metadata area Creating a volume manager area, recording volume manager type information in the metadata backup unit, and recording volume manager area address information of the data storage unit in the metadata backup unit;
When creating a file system for the data storage unit of the storage device by the file system manager running on the computer OS, the storage device control program creates a file system in the file data area of the data storage unit and stores it in the metadata area. Creating a file system area, recording file system type information in the metadata backup unit, and recording file system area address information of the data storage unit in the metadata backup unit;
The storage device control program creating an OS area in the metadata area of the data storage unit when creating the volume and creating the file system;
A process in which the service program reads the OS type information and notifies the control unit of the storage device;
A metadata recording / judgment / repair unit that records OS type information in the metadata backup unit and records file system area address information in the data storage unit in the metadata backup unit;
When a write command and a read command for the storage device are received from an application program running on the OS of the computer, the storage device control program writes to and reads from the data storage unit, and a file data area and metadata Updating the area and recording the updated contents of the metadata area in the metadata backup unit;
When the storage device control program detects a data lost error during the internal operation of the storage device, the step of notifying the metadata recording / determination / repair unit of the data lost error detection and the error occurrence address;
The metadata recording / judgment / restoration unit determines whether the error occurrence address is in the metadata area or the file data area based on the error occurrence address and the type information and metadata area address information read from the metadata backup part. And a process of
If the error occurrence address is in the file data area, the metadata recording / judgment / repair unit identifies the file name, and
When the error occurrence address is in the metadata area, the metadata recording / judgment / repair unit writes the metadata area backup data of the metadata backup unit back to the metadata area of the data storage unit, and the metadata is stored in the data storage unit. The process of repairing,
A step in which the metadata recording / judgment / repair unit notifies the service program of the file name or metadata area information in which a data lost error has occurred;
And a service program notifying the OS of a file name or metadata area information.
メタデータ領域およびファイルデータ領域からなるデータ記憶部と、
前記メタデータ領域のメタデータをバックアップするメタデータバックアップ部と、
コンピュータのOS上で動作しているアプリケーションプログラムから記憶装置に対する書き込みコマンドおよび読み出しコマンドを受信した場合に、前記データ記憶部に対して書込みおよび読み出しを行ってファイルデータ領域およびメタデータ領域を更新するとともにメタデータ領域の更新内容を前記メタデータバックアップ部に記録する記憶装置制御プログラムと、
記憶装置自身の内部動作で自己検出したデータロストエラーのエラー発生アドレスが前記メタデータ領域にあるか前記ファイルデータ領域にあるかを判断して、エラー発生アドレスがメタデータ領域にあれば前記メタデータバックアップ部のメタデータ領域バックアップデータを前記メタデータ領域に修復し、エラー発生アドレスがファイルデータ領域にあれば前記メタデータ領域に記憶されているメタデータに基づいてファイル名を特定するメタデータ記録・判断・修復部と
を有することを特徴とする記憶装置。
A data storage unit comprising a metadata area and a file data area;
A metadata backup unit that backs up metadata in the metadata area;
When a write command and a read command for the storage device are received from an application program running on the OS of the computer, the file data area and the metadata area are updated by writing to and reading from the data storage unit A storage device control program for recording the updated contents of the metadata area in the metadata backup unit;
It is determined whether the error occurrence address of the data lost error detected by the internal operation of the storage device itself is in the metadata area or the file data area, and if the error occurrence address is in the metadata area, the metadata Metadata record for restoring the metadata area backup data to the metadata area and specifying the file name based on the metadata stored in the metadata area if the error occurrence address is in the file data area A storage device comprising a determination / repair unit.
前記メタデータバックアップ部が、データ記憶部名毎に、OS種別情報,ファイルシステム種別情報,ボリュームマネージャ種別情報およびアプリケーション種別情報からなる種別情報と、OS領域アドレス情報,ファイルシステム領域アドレス情報,ボリュームマネージャ領域アドレス情報,アプリケーション領域アドレス情報およびデータ領域アドレス情報からなるメタデータ領域アドレス情報と、メタデータ領域バックアップデータとからなることを特徴とする請求項6記載のメタデータ修復方式。 The metadata backup unit includes, for each data storage unit name, type information including OS type information, file system type information, volume manager type information and application type information, OS area address information, file system area address information, volume manager. 7. The metadata restoration method according to claim 6, comprising metadata area address information including area address information, application area address information, and data area address information, and metadata area backup data. コンピュータを、記憶装置自身の内部動作で自己検出したデータロストエラーのエラー発生アドレスがメタデータ領域にあるかファイルデータ領域にあるかを判断して、エラー発生アドレスがメタデータ領域にあればメタデータバックアップ部のメタデータ領域バックアップデータをメタデータ領域に修復し、エラー発生アドレスがファイルデータ領域にあればメタデータ領域に記憶されているメタデータに基づいてファイル名を特定するメタデータ記録・判断・修復部を、OSの起動時に記憶装置の制御部にロードするサービスプログラムとして動作させるためのプログラム。 The computer determines whether the error occurrence address of the data lost error detected by the internal operation of the storage device itself is in the metadata area or the file data area, and if the error occurrence address is in the metadata area, the metadata Metadata area of the backup unit Restores the backup data to the metadata area, and if the error occurrence address is in the file data area, the metadata recording / determination that identifies the file name based on the metadata stored in the metadata area A program for operating the restoration unit as a service program that is loaded into the control unit of the storage device when the OS is started.
JP2003387363A 2003-11-18 2003-11-18 Metadata restoration system, method thereof, storage device and program therefor Pending JP2005149248A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2003387363A JP2005149248A (en) 2003-11-18 2003-11-18 Metadata restoration system, method thereof, storage device and program therefor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2003387363A JP2005149248A (en) 2003-11-18 2003-11-18 Metadata restoration system, method thereof, storage device and program therefor

Publications (1)

Publication Number Publication Date
JP2005149248A true JP2005149248A (en) 2005-06-09

Family

ID=34694729

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2003387363A Pending JP2005149248A (en) 2003-11-18 2003-11-18 Metadata restoration system, method thereof, storage device and program therefor

Country Status (1)

Country Link
JP (1) JP2005149248A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100798577B1 (en) 2007-06-29 2008-01-28 주식회사 엘지씨엔에스 Analyzing system and analyzing method for data quality problem
CN100445963C (en) * 2007-02-15 2008-12-24 华为技术有限公司 Method and apparatus for realizing high-reliability chain list
WO2011130185A2 (en) * 2010-04-11 2011-10-20 Alex Grossman Systems and methods for raid metadata storage
JP2014059769A (en) * 2012-09-18 2014-04-03 Fujitsu Ltd Storage control system, recovery program, and the method thereof
CN112698976A (en) * 2020-12-24 2021-04-23 北京浪潮数据技术有限公司 Metadata repairing method, device, equipment and medium
JP7496769B2 (en) 2020-12-18 2024-06-07 セイコーソリューションズ株式会社 Management device, order entry system and management program

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100445963C (en) * 2007-02-15 2008-12-24 华为技术有限公司 Method and apparatus for realizing high-reliability chain list
KR100798577B1 (en) 2007-06-29 2008-01-28 주식회사 엘지씨엔에스 Analyzing system and analyzing method for data quality problem
WO2011130185A2 (en) * 2010-04-11 2011-10-20 Alex Grossman Systems and methods for raid metadata storage
WO2011130185A3 (en) * 2010-04-11 2012-03-08 Alex Grossman Systems and methods for raid metadata storage
JP2014059769A (en) * 2012-09-18 2014-04-03 Fujitsu Ltd Storage control system, recovery program, and the method thereof
US9201734B2 (en) 2012-09-18 2015-12-01 Fujitsu Limited Storage control system, recording medium storing recovery program, and method
JP7496769B2 (en) 2020-12-18 2024-06-07 セイコーソリューションズ株式会社 Management device, order entry system and management program
CN112698976A (en) * 2020-12-24 2021-04-23 北京浪潮数据技术有限公司 Metadata repairing method, device, equipment and medium
CN112698976B (en) * 2020-12-24 2023-12-22 北京浪潮数据技术有限公司 Metadata restoration method, device, equipment and medium

Similar Documents

Publication Publication Date Title
US7107486B2 (en) Restore method for backup
US6950836B2 (en) Method, system, and program for a transparent file restore
US7152184B2 (en) Storage device, backup method and computer program code of this storage device
JP4821448B2 (en) RAID controller and RAID device
JP4346659B2 (en) Information processing apparatus, backup storage apparatus, and information processing method
US20130103902A1 (en) Method and apparatus for implementing protection of redundant array of independent disks in file system
US6944758B2 (en) Backup method for interface BIOS by making backup copy of interface BIOS in system BIOS and executing backup interface BIOS in system BIOS if error occurs
CN104050056A (en) File system backup of multi-storage-medium device
WO2006104197A1 (en) Information processing device, program, and storage medium
US7664981B2 (en) Method of restoring source data of hard disk drive and method of reading system information thereof
US5421003A (en) Disk storage system with fault tolerant media maintenance
JP2014137711A (en) Storage device, backup program and backup method
JP2006059347A (en) Storage system using journaling
WO2017097233A1 (en) Fault tolerance method for data storage load and iptv system
US20050262033A1 (en) Data recording apparatus, data recording method, program for implementing the method, and program recording medium
US7600151B2 (en) RAID capacity expansion interruption recovery handling method and system
JP2005149248A (en) Metadata restoration system, method thereof, storage device and program therefor
JP2001142650A (en) Method and device for controlling array disk
US20070271311A1 (en) Disk array device and data management method for managing master data and replication data replicated from master data
US20100169572A1 (en) Data storage method, apparatus and system for interrupted write recovery
US6229743B1 (en) Method of a reassign block processing time determination test for storage device
JP2002373059A (en) Method for recovering error of disk array, and controller and device for disk array
KR100458838B1 (en) Storage medium for program executing hard disk drive recovery method
JP2005293119A (en) Disk array control device, processing method applied to this device upon detection of data defect, and program
CN112784101B (en) Video data storage method and device and data storage equipment

Legal Events

Date Code Title Description
RD01 Notification of change of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7421

Effective date: 20050315

RD01 Notification of change of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7421

Effective date: 20070118

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20080318

RD01 Notification of change of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7421

Effective date: 20080606

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20080715