JP2021093075A - Information processing apparatus, method for controlling the same, and program - Google Patents

Information processing apparatus, method for controlling the same, and program Download PDF

Info

Publication number
JP2021093075A
JP2021093075A JP2019224562A JP2019224562A JP2021093075A JP 2021093075 A JP2021093075 A JP 2021093075A JP 2019224562 A JP2019224562 A JP 2019224562A JP 2019224562 A JP2019224562 A JP 2019224562A JP 2021093075 A JP2021093075 A JP 2021093075A
Authority
JP
Japan
Prior art keywords
storage
data
address
write
information processing
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
JP2019224562A
Other languages
Japanese (ja)
Inventor
眞 菊川
Makoto Kikukawa
眞 菊川
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP2019224562A priority Critical patent/JP2021093075A/en
Publication of JP2021093075A publication Critical patent/JP2021093075A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Hardware Redundancy (AREA)
  • Memory System Of A Hierarchy Structure (AREA)

Abstract

To provide an information processing apparatus that can reduce the time required for rebuild processing.SOLUTION: An image forming apparatus 100 performs mirroring for storing the same data in the same address in an SSD 114 and an SSD 119. The image forming apparatus 100 performs rebuild processing for copying the data stored in the SSD 114 to the SSD 119. In a result of comparison of pieces of data in the same address in the SSD 114 and the SSD 119 in reverse order of the addresses from a final writing address of the SSD 114 in the mirroring, the image forming apparatus 100 copies, to the SSD 119, data of addresses in which pieces of data do not match each other.SELECTED DRAWING: Figure 6

Description

本発明は、情報処理装置、その制御方法、及びプログラムに関する。 The present invention relates to an information processing device, a control method thereof, and a program.

複数のストレージを備える情報処理装置としての画像形成装置が知られている。画像形成装置は、耐障害性を高めるために、例えば、画像形成装置のストレージ制御装置に接続された2つのストレージの同じアドレスに同じデータを書き込むミラーリングを行う。ストレージは、不揮発性のフラッシュメモリ及び揮発性のキャッシュメモリを備える。ストレージは、ストレージ制御装置から受信した書き込みコマンドに従って、書き込み対象となるデータを上記フラッシュメモリより書き込み速度が速いキャッシュメモリに一時的に保持する。これにより、ストレージ制御装置は、書き込み速度が比較的遅いフラッシュメモリへの書き込みの完了を待たずに、次のデータの書き込みを指示することができる。キャッシュメモリに保持されたデータは、画像形成装置の電源がオフされてもデータが保持されるように、不揮発性のフラッシュメモリに任意のタイミングで書き込まれる。 An image forming apparatus is known as an information processing apparatus including a plurality of storages. The image forming apparatus performs mirroring for writing the same data to the same address of two storages connected to the storage control device of the image forming apparatus in order to improve the fault tolerance. The storage includes a non-volatile flash memory and a volatile cache memory. The storage temporarily holds the data to be written in the cache memory having a write speed faster than that of the flash memory according to the write command received from the storage control device. As a result, the storage control device can instruct the writing of the next data without waiting for the completion of writing to the flash memory having a relatively slow writing speed. The data held in the cache memory is written to the non-volatile flash memory at an arbitrary timing so that the data is held even when the power of the image forming apparatus is turned off.

ミラーリングにおいて2つのストレージの間でデータの同一性が崩れると、ストレージ制御装置は、リビルド処理を行う(例えば、特許文献1参照)。リビルド処理では、2つのストレージの一方に格納された全てのデータが他方のストレージに複製される。 When the data identity between the two storages is broken in mirroring, the storage control device performs a rebuild process (see, for example, Patent Document 1). In the rebuild process, all the data stored in one of the two storages is duplicated in the other storage.

特開2017−138781号公報Japanese Unexamined Patent Publication No. 2017-138781

しかしながら、従来のリビルド処理では、ストレージに格納された全てのデータが処理の対象となるため、処理を完了するまでに多大な時間を要する。 However, in the conventional rebuild process, all the data stored in the storage is the target of the process, so it takes a long time to complete the process.

本発明の目的は、リビルド処理の実行に要する時間を短縮することができる情報処理装置、その制御方法、及びプログラムを提供することにある。 An object of the present invention is to provide an information processing apparatus, a control method thereof, and a program capable of shortening the time required to execute a rebuild process.

上記目的を達成するために、本発明の情報処理装置は、揮発性の保持手段及び不揮発性の記録媒体を備える複数のストレージを備える情報処理装置であって、受信した書き込みコマンドに従って、前記複数のストレージの各々に対し、前記書き込みコマンドが示すデータを前記保持手段に保持させ、前記保持されたデータを前記記録媒体における前記書き込みコマンドが示すアドレスに書き込ませる制御を行う書き込み制御手段と、前記複数のストレージにおける第1のストレージに格納されたデータを前記複数のストレージにおける第2のストレージに複製するリビルド処理の実行を制御するリビルド制御手段と、前記第1のストレージ及び前記第2のストレージにおける同じアドレスのデータ同士を比較する比較手段とを備え、前記リビルド制御手段は、前記書き込み制御手段によって前記第1のストレージに最後にデータが書き込まれた最終書き込みアドレスから前記比較手段によってアドレスの逆順に前記第1のストレージ及び前記第2のストレージにおける同じアドレスのデータ同士を比較した結果において差分があるアドレスのデータを前記第2のストレージに複製することを特徴とする。 In order to achieve the above object, the information processing apparatus of the present invention is an information processing apparatus including a plurality of storages including a volatile holding means and a non-volatile recording medium, and the plurality of information processing devices according to a received write command. A write control means for controlling each of the storages to hold the data indicated by the write command in the holding means and write the held data to the address indicated by the write command in the recording medium, and the plurality of storages. A rebuild control means that controls execution of a rebuild process that replicates data stored in the first storage in the storage to the second storage in the plurality of storages, and the same address in the first storage and the second storage. The rebuild control means includes the comparison means for comparing the data of the data, and the rebuild control means has the first write address in which the data was last written to the first storage by the write control means in the reverse order of the addresses by the comparison means. It is characterized in that the data of the address having a difference in the result of comparing the data of the same address in the storage of 1 and the data of the same address in the second storage is duplicated in the second storage.

本発明によれば、リビルド処理の実行に要する時間を短縮することができる。 According to the present invention, the time required to execute the rebuild process can be shortened.

本発明の実施の形態に係る情報処理装置としての画像形成装置の構成を概略的に示すブロック図である。It is a block diagram which shows schematic structure of the image forming apparatus as an information processing apparatus which concerns on embodiment of this invention. 電源の瞬断の発生に起因する各SSDにおける電圧の低下を説明するための図である。It is a figure for demonstrating the drop in voltage in each SSD due to the occurrence of momentary power interruption. マスターストレージに設定されたSSDにおけるデータの書き込みを説明するための図である。It is a figure for demonstrating the writing of data in the SSD set in the master storage. スレーブストレージに設定されたSSDにおけるデータの書き込みを説明するための図である。It is a figure for demonstrating the writing of data in the SSD set in the slave storage. 図1の画像形成装置におけるシャットダウン処理の手順を示すフローチャートである。It is a flowchart which shows the procedure of the shutdown process in the image forming apparatus of FIG. 図1のミラーリング制御部によって実行されるリビルド制御処理の手順を示すフローチャートである。It is a flowchart which shows the procedure of the rebuild control process executed by the mirroring control part of FIG.

以下、本発明の実施の形態について図面を参照しながら詳述する。なお、本実施の形態では、情報処理装置としての画像形成装置に本発明を適用した場合について説明するが、本発明は画像形成装置に限られず、リビルド処理を実行するPC等の通信装置に本発明を適用しても良い。 Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings. In the present embodiment, the case where the present invention is applied to an image forming apparatus as an information processing apparatus will be described, but the present invention is not limited to the image forming apparatus, and the present invention is applied to a communication device such as a PC that executes a rebuild process. The invention may be applied.

図1は、本発明の実施の形態に係る情報処理装置としての画像形成装置100の構成を概略的に示すブロック図である。図1において、画像形成装置100は、メインコントローラ101、ネットワークI/F104、操作表示部105、スキャナ部106、プリンタ部107、ミラーリングコントローラ108、瞬断検知部112、SSD114、及びSSD119を備える。メインコントローラ101は、ネットワークI/F104、操作表示部105、スキャナ部106、プリンタ部107、及びミラーリングコントローラ108と接続されている。ミラーリングコントローラ108は、メインコントローラ101の他に、瞬断検知部112、SSD114、及びSSD119と接続されている。 FIG. 1 is a block diagram schematically showing a configuration of an image forming apparatus 100 as an information processing apparatus according to an embodiment of the present invention. In FIG. 1, the image forming apparatus 100 includes a main controller 101, a network I / F 104, an operation display unit 105, a scanner unit 106, a printer unit 107, a mirroring controller 108, an instantaneous interruption detection unit 112, an SSD 114, and an SSD 119. The main controller 101 is connected to the network I / F 104, the operation display unit 105, the scanner unit 106, the printer unit 107, and the mirroring controller 108. The mirroring controller 108 is connected to the momentary interruption detection unit 112, the SSD 114, and the SSD 119 in addition to the main controller 101.

画像形成装置100は、印刷処理等の画像形成処理を行う。メインコントローラ101は、CPU102及び記憶部103を備える。CPU102は、画像形成装置100全体を制御する。記憶部103は、ROM(不図示)及びRAM(不図示)で構成される。記憶部103内部のROMには、画像形成装置100の設定及び制御の動作手順が格納されている。CPU102は、記憶部103内部のRAMに展開された制御プログラムを実行することで、各種制御を行う。ネットワークI/F104は、外部装置とデータ通信を行う。操作表示部105は、画像形成装置100に関する情報を表示し、また、ユーザからジョブの実行指示等を受け付ける。スキャナ部106は、載置された原稿を読み取って画像データを生成する。プリンタ部107は、ネットワークI/F104が外部装置から取得した画像データやスキャナ部106が生成した画像データを用紙に印刷する。 The image forming apparatus 100 performs an image forming process such as a printing process. The main controller 101 includes a CPU 102 and a storage unit 103. The CPU 102 controls the entire image forming apparatus 100. The storage unit 103 is composed of a ROM (not shown) and a RAM (not shown). The ROM inside the storage unit 103 stores an operation procedure for setting and controlling the image forming apparatus 100. The CPU 102 performs various controls by executing a control program expanded in the RAM inside the storage unit 103. The network I / F 104 performs data communication with an external device. The operation display unit 105 displays information about the image forming apparatus 100, and also receives a job execution instruction or the like from the user. The scanner unit 106 reads the placed document and generates image data. The printer unit 107 prints the image data acquired by the network I / F 104 from the external device and the image data generated by the scanner unit 106 on the paper.

ミラーリングコントローラ108は、ミラーリング制御部109、アドレス記憶部110、及び瞬断記憶部111を備える。ミラーリングコントローラ108は、接続された複数、例えば、2つのストレージの同じアドレスに同じデータを書き込むミラーリングに関する制御を行う。なお、本実施の形態では、一例として、ミラーリングコントローラ108に接続された2つのストレージを用いてミラーリングを行う構成について説明するが、この構成に限られない。例えば、ミラーリングコントローラ108に接続された3つ以上のストレージを用いてミラーリングを行う構成であっても良い。 The mirroring controller 108 includes a mirroring control unit 109, an address storage unit 110, and an instantaneous interruption storage unit 111. The mirroring controller 108 controls mirroring to write the same data to the same address of a plurality of connected storages, for example, two storages. In the present embodiment, as an example, a configuration in which mirroring is performed using two storages connected to the mirroring controller 108 will be described, but the present embodiment is not limited to this configuration. For example, mirroring may be performed using three or more storages connected to the mirroring controller 108.

ミラーリングコントローラ108には、SSD114及びSSD119が接続されている。本実施の形態では、一例として、SSD114がマスターストレージに設定され、SSD119がスレーブストレージに設定されていることとする。ミラーリング制御部109は、SSD114及びSSD119に対し、同じアドレス及び同じデータが示された書き込みコマンドを送信する。ミラーリング制御部109は、SSD114及びSSD119に対する書き込み、読み込み時のデータのアドレスを論理アドレスで制御する。アドレス記憶部110は、SSD114及びSSD119におけるデータの書き込み先を示すアドレスを記憶する。瞬断記憶部111は、不揮発性の記憶部であり、瞬断検知部112から受信したAC瞬断検知信号を記憶する。瞬断検知部112は、画像形成装置100に供給されるAC電源の瞬断を検知した際にこの旨を示すAC瞬断検知信号をミラーリングコントローラ108に送信する。画像形成装置100に供給されるAC電源の瞬断は、例えば、停電時やユーザが不注意に画像形成装置100の電源ソケットをコンセントから抜いた際に発生する。瞬断用コンデンサ113(瞬断対策手段)は、大容量のコンデンサであり、マスターストレージとして機能するSSD114の電源に接続されている。本実施の形態では、瞬断用コンデンサ113はマスターストレージの電源及びスレーブストレージの電源のうち、マスターストレージの電源のみに接続されている。このため、画像形成装置100に供給されるAC電源の瞬断が発生した場合、電力供給元となる電源に瞬断用コンデンサ113が接続されてないスレーブストレージにおける電圧+Vssd2は、図2の実線201に示すように、急激に低下する。一方、電力供給元となる電源に瞬断用コンデンサ113が接続されているマスターストレージにおける電圧+Vssd1は、図2の点線202に示すように、緩やかに低下する。 SSD 114 and SSD 119 are connected to the mirroring controller 108. In the present embodiment, as an example, it is assumed that SSD 114 is set as the master storage and SSD 119 is set as the slave storage. The mirroring control unit 109 transmits a write command indicating the same address and the same data to the SSD 114 and the SSD 119. The mirroring control unit 109 controls the address of the data at the time of writing and reading to the SSD 114 and the SSD 119 by the logical address. The address storage unit 110 stores addresses indicating data writing destinations in SSD 114 and SSD 119. The momentary interruption storage unit 111 is a non-volatile storage unit, and stores the AC momentary interruption detection signal received from the instantaneous interruption detection unit 112. When the momentary interruption detection unit 112 detects the momentary interruption of the AC power supply supplied to the image forming apparatus 100, the instantaneous interruption detection unit 112 transmits an AC instantaneous interruption detection signal indicating this to the mirroring controller 108. The momentary interruption of the AC power supply supplied to the image forming apparatus 100 occurs, for example, when a power failure occurs or when the user inadvertently unplugs the power socket of the image forming apparatus 100 from the outlet. The momentary interruption capacitor 113 (instantaneous interruption countermeasure means) is a large-capacity capacitor and is connected to the power supply of the SSD 114 that functions as a master storage. In the present embodiment, the momentary interruption capacitor 113 is connected only to the power supply of the master storage among the power supply of the master storage and the power supply of the slave storage. Therefore, when the AC power supply supplied to the image forming apparatus 100 is momentarily interrupted, the voltage + Vssd2 in the slave storage in which the momentary interruption capacitor 113 is not connected to the power supply source is the solid line 201 of FIG. As shown in, it drops sharply. On the other hand, the voltage + Vssd1 in the master storage in which the momentary interruption capacitor 113 is connected to the power supply serving as the power supply source gradually decreases as shown by the dotted line 202 in FIG.

SSD114は、SSDコントローラ115及び不揮発性のフラッシュメモリ118(記録媒体)を備え、画像形成装置100のマスターストレージとして機能する。SSDコントローラ115は、SSD制御部116及び揮発性のキャッシュメモリ117を備える。SSD制御部116は、ミラーリング制御部109から受信した書き込みコマンドに従ってデータをフラッシュメモリ118へ書き込む制御を行う。 The SSD 114 includes an SSD controller 115 and a non-volatile flash memory 118 (recording medium), and functions as a master storage of the image forming apparatus 100. The SSD controller 115 includes an SSD control unit 116 and a volatile cache memory 117. The SSD control unit 116 controls to write data to the flash memory 118 according to a write command received from the mirroring control unit 109.

SSD119は、SSDコントローラ120及び不揮発性のフラッシュメモリ123(記録媒体)を備え、画像形成装置100のスレーブストレージとして機能する。SSDコントローラ120は、SSD制御部121及び揮発性のキャッシュメモリ122を備える。SSD制御部121は、ミラーリング制御部109から受信した書き込みコマンドに従ってデータをフラッシュメモリ123へ書き込む制御を行う。 The SSD 119 includes an SSD controller 120 and a non-volatile flash memory 123 (recording medium), and functions as a slave storage of the image forming apparatus 100. The SSD controller 120 includes an SSD control unit 121 and a volatile cache memory 122. The SSD control unit 121 controls to write data to the flash memory 123 according to a write command received from the mirroring control unit 109.

図3は、マスターストレージに設定されたSSD114におけるデータの書き込みを説明するための図である。SSD114のSSDコントローラ115は、ミラーリング制御部109から書き込みコマンドを受信すると、当該書き込みコマンドに従って、例えば、図3のデータA〜Eをそれぞれ、書き込み速度がフラッシュメモリ118より速いキャッシュメモリ117における記憶領域117a〜117eに一時的に保持する。これにより、ミラーリング制御部109は、書き込み速度が比較的遅いフラッシュメモリ118への書き込みの完了を待たずに、次の書き込み処理を指示することができる。キャッシュメモリ117に保持されたデータA〜Eは、アドレス順に従って、不揮発性のフラッシュメモリ118に任意のタイミングで書き込まれる。具体的に、キャッシュメモリ117に保持されたデータA〜Eは、それぞれ不揮発性のフラッシュメモリ118における上記書き込みコマンドが示すアドレスに対応する記憶領域118a〜118eに書き込まれる。任意のタイミングは、例えば、画像形成装置100をシャットダウンするタイミングである。 FIG. 3 is a diagram for explaining the writing of data in the SSD 114 set in the master storage. When the SSD controller 115 of the SSD 114 receives a write command from the mirroring control unit 109, the SSD controller 115 of the SSD 114, for example, writes the data A to E of FIG. Temporarily hold at ~ 117e. As a result, the mirroring control unit 109 can instruct the next writing process without waiting for the completion of writing to the flash memory 118, which has a relatively slow writing speed. The data A to E held in the cache memory 117 are written to the non-volatile flash memory 118 at an arbitrary timing according to the address order. Specifically, the data A to E held in the cache memory 117 are written to the storage areas 118a to 118e corresponding to the addresses indicated by the write commands in the non-volatile flash memory 118, respectively. The arbitrary timing is, for example, the timing at which the image forming apparatus 100 is shut down.

図4は、スレーブストレージに設定されたSSD119におけるデータの書き込みを説明するための図である。ミラーリング制御部109は、SSD119に対し、SSD114に送信した書き込みコマンドと同じアドレス及び同じデータが示された書き込みコマンドを送信する。SSD119のSSDコントローラ120は、ミラーリング制御部109から受信した書き込みコマンドに従って、上述したSSDコントローラ115と同様の書き込み制御を行う(例えば、図4(a)を参照)。これにより、本実施の形態では、マスターストレージ及びスレーブストレージの各フラッシュメモリにおいて同じアドレスに同じデータが書き込まれる。 FIG. 4 is a diagram for explaining the writing of data in the SSD 119 set in the slave storage. The mirroring control unit 109 transmits to the SSD 119 a write command indicating the same address and the same data as the write command transmitted to the SSD 114. The SSD controller 120 of the SSD 119 performs the same write control as the SSD controller 115 described above according to the write command received from the mirroring control unit 109 (see, for example, FIG. 4A). As a result, in the present embodiment, the same data is written to the same address in each flash memory of the master storage and the slave storage.

図5は、図1の画像形成装置100におけるシャットダウン処理の手順を示すフローチャートである。図5において、ミラーリング制御部109は、同じアドレス及び同じデータが示された書き込みコマンドをSSD114及びSSD119へ送信し(ステップS501)、この書き込みコマンドが示す論理アドレスをアドレス記憶部110へ記憶させる。次いで、ユーザによるシャットダウン指示を受け付けると、メインコントローラ101は、シャットダウン処理を開始する(ステップS502)。シャットダウン処理では、ミラーリング制御部109は、後述する瞬断検知フラグを立てない。シャットダウン処理では、画像形成装置100の電源部(不図示)がオフされる前に、メインコントローラ101は、途中の処理を終了させる。次いで、ミラーリング制御部109は、マスターストレージ及びスレーブストレージに対し、キャッシュメモリに保持されている全てのデータをフラッシュメモリに書き込ませる(ステップS503)。次いで、メインコントローラ101は、画像形成装置の電源部(不図示)をオフし(ステップS504)、本処理を終了する。 FIG. 5 is a flowchart showing a procedure of shutdown processing in the image forming apparatus 100 of FIG. In FIG. 5, the mirroring control unit 109 transmits a write command indicating the same address and the same data to the SSD 114 and SSD 119 (step S501), and stores the logical address indicated by this write command in the address storage unit 110. Next, when the shutdown instruction from the user is received, the main controller 101 starts the shutdown process (step S502). In the shutdown process, the mirroring control unit 109 does not set the momentary interruption detection flag described later. In the shutdown process, the main controller 101 ends the process in the middle before the power supply unit (not shown) of the image forming apparatus 100 is turned off. Next, the mirroring control unit 109 causes the master storage and the slave storage to write all the data held in the cache memory to the flash memory (step S503). Next, the main controller 101 turns off the power supply unit (not shown) of the image forming apparatus (step S504), and ends this process.

例えば、ミラーリング処理を実行中に画像形成装置100における電源の瞬断が発生した場合、電力供給元の電源に瞬断用コンデンサ113が接続されたSSD114の電圧は、上述したように、緩やかに低下する。このため、SSD114では、電圧が下がりきる前に、キャッシュメモリ117に保持されていたデータをフラッシュメモリ118に書き込むための猶予を確保することができる。その結果、電源の瞬断に起因してキャッシュメモリ117に保持されていたデータが消失するのを抑制することができる。一方、電力供給元の電源に瞬断用コンデンサ113が接続されないSSD119の電圧は、上述したように、急激に低下する。このため、SSD119では、電圧が下がりきる前に、キャッシュメモリ122に保持されていたデータをフラッシュメモリ123に書き込むための猶予を確保できない。その結果、キャッシュメモリ122に保持されていた一部のデータ、例えば、図4(b)に示すように、データC〜Eがフラッシュメモリ123に書き込まれずに、消失してしまう。消失したデータを複製する技術として、ミラーリング制御部109は、マスターストレージに格納された全てのデータをスレーブストレージに複製するリビルド処理を実行する。しかし、マスターストレージに格納された全てのデータを処理の対象とすると、処理を完了するまでに多大な時間を要してしまう。 For example, when a momentary interruption of the power supply in the image forming apparatus 100 occurs during execution of the mirroring process, the voltage of the SSD 114 in which the momentary interruption capacitor 113 is connected to the power supply of the power supply source gradually decreases as described above. To do. Therefore, in the SSD 114, it is possible to secure a grace period for writing the data held in the cache memory 117 to the flash memory 118 before the voltage drops completely. As a result, it is possible to prevent the data held in the cache memory 117 from being lost due to the momentary interruption of the power supply. On the other hand, the voltage of the SSD 119 in which the momentary interruption capacitor 113 is not connected to the power supply of the power supply source drops sharply as described above. Therefore, in SSD 119, it is not possible to secure a grace period for writing the data held in the cache memory 122 to the flash memory 123 before the voltage drops completely. As a result, some of the data held in the cache memory 122, for example, as shown in FIG. 4B, is lost without being written to the flash memory 123. As a technique for duplicating lost data, the mirroring control unit 109 executes a rebuild process for replicating all the data stored in the master storage to the slave storage. However, if all the data stored in the master storage is targeted for processing, it will take a long time to complete the processing.

これに対し、本実施の形態では、SSD114の最終書き込みアドレスからアドレスの逆順にSSD114及びSSD119における同じアドレスのデータ同士を比較した結果において差分があるアドレスのデータをSSD119に複製する。 On the other hand, in the present embodiment, the data of the address having a difference in the result of comparing the data of the same address in the SSD 114 and the SSD 119 in the reverse order of the address from the last write address of the SSD 114 is duplicated in the SSD 119.

図6は、図1のミラーリング制御部109によって実行されるリビルド制御処理の手順を示すフローチャートである。図6の処理では、マスターストレージ及びスレーブストレージの各フラッシュメモリに対し、アドレスの順に従ってデータが書き込まれるミラーリング処理が行われていることを前提とする。 FIG. 6 is a flowchart showing a procedure of the rebuild control process executed by the mirroring control unit 109 of FIG. In the process of FIG. 6, it is premised that the mirroring process in which data is written to each flash memory of the master storage and the slave storage in the order of addresses is performed.

図6において、ミラーリング制御部109は、同じアドレス及び同じデータが示された書き込みコマンドをSSD114及びSSD119へ送信し(ステップS601)、この書き込みコマンドが示す論理アドレスをアドレス記憶部110へ記憶させる。ミラーリング制御部109は、瞬断検知部112から送信されたAC瞬断検知信号に基づいて画像形成装置100における電源の瞬断を検知すると(ステップS602)、瞬断記憶部111にAC瞬断検知信号を記憶させ、画像形成装置100における電源の瞬断を検知したことを示す瞬断検知フラグを立てる(ステップS603)。画像形成装置100における電源の瞬断が復旧し、画像形成装置100への電力の供給が再開されると(ステップS604)、ミラーリング制御部109は、瞬断検知フラグを確認する(ステップS605)。瞬断検知フラグが立っていると、ミラーリング制御部109は、マスターストレージであるSSD114に格納されたデータをSSD119に複製するリビルド処理を開始する(ステップS606)。次いで、ミラーリング制御部109は、アドレス記憶部110が最後に記憶したアドレス、つまり、SSD114及びSSD119に対して最後に書き込みが指示されたデータの書き込み先となるアドレスである最終書き込みアドレスを特定する(ステップS607)。次いで、ミラーリング制御部109は、SSD114及びSSD119において、特定したアドレスに対応する記憶領域に格納されたデータ同士を比較する(ステップS608)。例えば、SSD114において、特定した最終書き込みアドレスに対応するフラッシュメモリ118の図3の記憶領域118eに格納されたデータEと、SSD119において、上記最終書き込みアドレスに対応するフラッシュメモリ123の図4(a)の記憶領域123eに格納されたデータEとを比較する。次いで、ミラーリング制御部109は、比較した結果においてデータが一致しているか否かを判別する(ステップS609)。例えば、図4(b)に示すように、SSD119において、上記最終書き込みアドレスに書き込まれるはずのデータEが電源の瞬断に起因して消失している場合、ステップS609では、ミラーリング制御部109は、比較した結果においてデータが一致していないと判別する。 In FIG. 6, the mirroring control unit 109 transmits a write command indicating the same address and the same data to the SSD 114 and SSD 119 (step S601), and stores the logical address indicated by this write command in the address storage unit 110. When the mirroring control unit 109 detects a momentary power interruption in the image forming apparatus 100 based on the AC momentary interruption detection signal transmitted from the momentary interruption detection unit 112 (step S602), the momentary interruption storage unit 111 detects the AC momentary interruption. The signal is stored, and a momentary interruption detection flag indicating that the momentary interruption of the power supply in the image forming apparatus 100 is detected is set (step S603). When the momentary interruption of the power supply in the image forming apparatus 100 is restored and the power supply to the image forming apparatus 100 is restarted (step S604), the mirroring control unit 109 confirms the instantaneous interruption detection flag (step S605). When the momentary interruption detection flag is set, the mirroring control unit 109 starts the rebuild process of copying the data stored in the SSD 114, which is the master storage, to the SSD 119 (step S606). Next, the mirroring control unit 109 specifies the address last stored by the address storage unit 110, that is, the final write address which is the address to which the data last instructed to be written is written to the SSD 114 and the SSD 119 (the last write address). Step S607). Next, the mirroring control unit 109 compares the data stored in the storage area corresponding to the specified address in the SSD 114 and the SSD 119 (step S608). For example, in SSD 114, the data E stored in the storage area 118e of FIG. 3 of the flash memory 118 corresponding to the specified final write address, and in SSD 119, FIG. 4 (a) of the flash memory 123 corresponding to the final write address. Compare with the data E stored in the storage area 123e of. Next, the mirroring control unit 109 determines whether or not the data match in the comparison result (step S609). For example, as shown in FIG. 4B, in SSD 119, when the data E to be written to the final write address is lost due to the momentary interruption of the power supply, in step S609, the mirroring control unit 109 , It is determined that the data do not match in the comparison result.

ステップS609の判別の結果、比較した結果においてデータが一致していないとき、ミラーリング制御部109は、SSD114における上記特定したアドレスに対応する記憶領域に格納されたデータを、SSD119に複製する(ステップS610)。ステップS610では、ミラーリング制御部109は、上記データを、SSD119における上記特定したアドレスに対応する記憶領域に書き込ませる。次いで、ミラーリング制御部109は、特定したアドレスの1つ前のアドレスを特定し(ステップS611)、ステップS608の処理に戻る。このようにして、ミラーリング制御部109は、最終書き込みアドレスからアドレスの逆順にデータを比較した結果においてデータが一致していないアドレスのデータをSSD119に複製する。 As a result of the determination in step S609, when the data do not match in the comparison result, the mirroring control unit 109 replicates the data stored in the storage area corresponding to the specified address in the SSD 114 to the SSD 119 (step S610). ). In step S610, the mirroring control unit 109 causes the data to be written in the storage area corresponding to the specified address in SSD 119. Next, the mirroring control unit 109 identifies the address immediately before the specified address (step S611), and returns to the process of step S608. In this way, the mirroring control unit 109 duplicates the data of the addresses where the data does not match in the result of comparing the data from the last write address in the reverse order of the addresses to the SSD 119.

ステップS609の判別の結果、比較した結果においてデータが一致しているとき、ミラーリング制御部109は、リビルド処理を終了する(ステップS612)。比較した結果においてデータが一致している場合は、スレーブストレージにおいて上記特定したアドレスのデータは電源の瞬断の発生に起因して消失していないことになる。また、本実施の形態では、マスターストレージ及びスレーブストレージの各フラッシュメモリに対し、アドレスの順に従ってデータが書き込まれているので、上記特定したアドレスのデータが電源の瞬断の発生に起因して消失していないのであれば、当該アドレスより前のアドレスのデータも電源の瞬断の発生に起因して消失していないことになる。このため、本実施の形態では、リビルド処理を継続して、消失していないデータの不要な複製処理が行われないように、比較した結果においてデータが一致している場合には、ミラーリング制御部109は、リビルド処理を終了する。その後、ミラーリング制御部109は、本処理を終了する。 As a result of the determination in step S609, when the data match in the comparison result, the mirroring control unit 109 ends the rebuild process (step S612). If the data match in the comparison results, it means that the data at the specified address in the slave storage has not been lost due to the occurrence of a momentary power interruption. Further, in the present embodiment, since the data is written to each flash memory of the master storage and the slave storage in the order of the addresses, the data of the specified address is lost due to the occurrence of the momentary power interruption. If not, it means that the data of the address before the address is not lost due to the momentary power interruption. Therefore, in the present embodiment, if the data match in the comparison results so that the rebuild process is continued and unnecessary duplication process of the data that has not been lost is not performed, the mirroring control unit 109 ends the rebuild process. After that, the mirroring control unit 109 ends this process.

上述した実施の形態によれば、SSD114の最終書き込みアドレスからアドレスの逆順にSSD114及びSSD119における同じアドレスのデータ同士を比較した結果においてデータが一致していないアドレスのデータをSSD119に複製する。これにより、リビルド処理における処理の対象を、複製する必要がある最小限のデータに絞り込むことができ、もって、リビルド処理の実行に要する時間を短縮することができる。 According to the above-described embodiment, the data at the address where the data does not match in the result of comparing the data of the same address in the SSD 114 and the SSD 119 in the reverse order of the address from the last write address of the SSD 114 is duplicated in the SSD 119. As a result, the target of the process in the rebuild process can be narrowed down to the minimum data that needs to be duplicated, and thus the time required to execute the rebuild process can be shortened.

また、上述した実施の形態では、最終書き込みアドレスからアドレスの逆順にSSD114及びSSD119における同じアドレスのデータ同士を比較した結果において差分がない場合、リビルド処理が終了する。これにより、消失していないデータの複製処理の実行を抑制することができる。 Further, in the above-described embodiment, if there is no difference in the results of comparing the data of the same address in SSD 114 and SSD 119 in the reverse order of the address from the last write address, the rebuild process ends. As a result, it is possible to suppress the execution of the duplication process of the data that has not been lost.

上述した実施の形態では、画像形成装置100における電源の瞬断の発生に起因するSSD114の電圧の急激な低下を抑制する瞬断用コンデンサ113がマスターストレージであるSSD114の電源に接続される。これにより、画像形成装置100における電源の瞬断の発生に起因してスレーブストレージであるSSD119におけるデータが消失するリスクが極めて高い構成において、消失したデータを効率的にSSD119に複製することができる。 In the above-described embodiment, the instantaneous interruption capacitor 113 that suppresses a sudden drop in the voltage of the SSD 114 due to the occurrence of the instantaneous interruption of the power supply in the image forming apparatus 100 is connected to the power supply of the SSD 114 that is the master storage. As a result, the lost data can be efficiently duplicated in the SSD 119 in a configuration in which the risk of data loss in the slave storage SSD 119 due to the occurrence of a momentary power interruption in the image forming apparatus 100 is extremely high.

以上、本発明について、上述した実施の形態を用いて説明したが、本発明は上述した実施の形態に限定されるものではない。例えば、ミラーリングコントローラ108に接続されるストレージは、SSDに限られず、HDDや他の種別のストレージであっても良い。 Although the present invention has been described above with reference to the above-described embodiments, the present invention is not limited to the above-described embodiments. For example, the storage connected to the mirroring controller 108 is not limited to SSD, and may be HDD or other types of storage.

また、上述した実施の形態では、瞬断用コンデンサ113を備える構成について説明したが、この構成に限られず、瞬断用コンデンサ113を備えない構成であっても良い。 Further, in the above-described embodiment, the configuration including the instantaneous interruption capacitor 113 has been described, but the configuration is not limited to this configuration, and the configuration may not include the instantaneous interruption capacitor 113.

また、上述した実施の形態では、瞬断用コンデンサがSSD114の電源のみに接続される場合について説明したが、SSD114及びSSD119の少なくとも一方の電源に接続されても良い。 Further, in the above-described embodiment, the case where the momentary interruption capacitor is connected only to the power supply of SSD 114 has been described, but it may be connected to at least one power supply of SSD 114 and SSD 119.

本発明は、上述の実施の形態の1以上の機能を実現するプログラムをネットワーク又は記憶媒体を介してシステム又は装置に供給し、該システム又は装置のコンピュータにおける1つ以上のプロセッサがプログラムを読み出して実行する処理でも実現可能である。また、本発明は、1以上の機能を実現する回路(例えば、ASIC)によっても実現可能である。 The present invention supplies a program that realizes one or more functions of the above-described embodiment to a system or device via a network or storage medium, and one or more processors in the computer of the system or device read the program. It can also be realized by the processing to be executed. The present invention can also be realized by a circuit (for example, ASIC) that realizes one or more functions.

100 画像形成装置
109 ミラーリング制御部
113 瞬断用コンデンサ
114,119 SSD
117,122 キャッシュメモリ
118,123 フラッシュメモリ
100 Image forming device 109 Mirroring control unit 113 Instantaneous interruption capacitor 114,119 SSD
117,122 cache memory 118,123 flash memory

Claims (7)

揮発性の保持手段及び不揮発性の記録媒体を備える複数のストレージを備える情報処理装置であって、
受信した書き込みコマンドに従って、前記複数のストレージの各々に対し、前記書き込みコマンドが示すデータを前記保持手段に保持させ、前記保持されたデータを前記記録媒体における前記書き込みコマンドが示すアドレスに書き込ませる制御を行う書き込み制御手段と、
前記複数のストレージにおける第1のストレージに格納されたデータを前記複数のストレージにおける第2のストレージに複製するリビルド処理の実行を制御するリビルド制御手段と、
前記第1のストレージ及び前記第2のストレージにおける同じアドレスのデータ同士を比較する比較手段とを備え、
前記リビルド制御手段は、前記書き込み制御手段によって前記第1のストレージに最後にデータが書き込まれた最終書き込みアドレスから前記比較手段によってアドレスの逆順に前記第1のストレージ及び前記第2のストレージにおける同じアドレスのデータ同士を比較した結果において差分があるアドレスのデータを前記第2のストレージに複製することを特徴とする情報処理装置。
An information processing device including a plurality of storages including volatile holding means and a non-volatile recording medium.
According to the received write command, each of the plurality of storages is controlled to hold the data indicated by the write command in the holding means and write the held data to the address indicated by the write command in the recording medium. Write control means to perform and
A rebuild control means for controlling execution of a rebuild process for replicating data stored in the first storage in the plurality of storages to the second storage in the plurality of storages.
It is provided with a comparison means for comparing data of the same address in the first storage and the second storage.
The rebuild control means has the same address in the first storage and the second storage in the reverse order of the address by the comparison means from the last write address in which the data was last written to the first storage by the write control means. An information processing apparatus characterized in that the data of addresses having a difference in the result of comparing the data of the above is duplicated in the second storage.
前記最終書き込みアドレスから前記比較手段によってアドレスの逆順に前記第1のストレージ及び前記第2のストレージにおける同じアドレスのデータ同士を比較した結果において差分がない場合、前記リビルド制御手段は、前記リビルド処理を終了することを特徴とする請求項1記載の情報処理装置。 When there is no difference in the result of comparing the data of the same address in the first storage and the second storage in the reverse order of the addresses from the last write address by the comparison means, the rebuild control means performs the rebuild process. The information processing apparatus according to claim 1, wherein the information processing apparatus is terminated. 前記情報処理装置における電源の瞬断の発生に起因する前記第1のストレージの電圧の急激な低下を抑制する瞬断対策手段を更に備えることを特徴とする請求項1又は2記載の情報処理装置。 The information processing apparatus according to claim 1 or 2, further comprising an instantaneous interruption countermeasure means for suppressing a sudden drop in the voltage of the first storage caused by the occurrence of a momentary interruption of the power supply in the information processing apparatus. .. 前記瞬断対策手段は、大容量のコンデンサであることを特徴とする請求項3記載の情報処理装置。 The information processing device according to claim 3, wherein the momentary interruption countermeasure means is a large-capacity capacitor. 画像形成処理を行う画像形成装置であることを特徴とする請求項1乃至4のいずれか1項に記載の情報処理装置。 The information processing apparatus according to any one of claims 1 to 4, wherein the information processing apparatus is an image forming apparatus that performs an image forming process. 揮発性の保持手段及び不揮発性の記録媒体を備える複数のストレージを備える情報処理装置の制御方法であって、
受信した書き込みコマンドに従って、前記複数のストレージの各々に対し、前記書き込みコマンドが示すデータを前記保持手段に保持させ、前記保持されたデータを前記記録媒体における前記書き込みコマンドが示すアドレスに書き込ませる制御を行う書き込み制御ステップと、
前記複数のストレージにおける第1のストレージに格納されたデータを前記複数のストレージにおける第2のストレージに複製するリビルド処理の実行を制御するリビルド制御ステップと、
前記第1のストレージ及び前記第2のストレージにおける同じアドレスのデータ同士を比較する比較ステップとを有し、
前記リビルド制御ステップは、前記書き込み制御ステップにて前記第1のストレージに最後にデータが書き込まれた最終書き込みアドレスから前記比較ステップにてアドレスの逆順に前記第1のストレージ及び前記第2のストレージにおける同じアドレスのデータ同士を比較した結果において差分があるアドレスのデータを前記第2のストレージに複製することを特徴とする情報処理装置の制御方法。
A control method for an information processing apparatus including a plurality of storages including a volatile holding means and a non-volatile recording medium.
According to the received write command, each of the plurality of storages is controlled to hold the data indicated by the write command in the holding means and write the held data to the address indicated by the write command in the recording medium. Write control steps to perform and
A rebuild control step that controls execution of a rebuild process that replicates data stored in the first storage in the plurality of storages to the second storage in the plurality of storages, and a rebuild control step.
It has a comparison step of comparing data of the same address in the first storage and the second storage.
The rebuild control step is performed in the first storage and the second storage in the reverse order of the address in the comparison step from the last write address in which the data was last written to the first storage in the write control step. A control method for an information processing device, which comprises replicating data of addresses having a difference in the result of comparing data of the same address to the second storage.
揮発性の保持手段及び不揮発性の記録媒体を備える複数のストレージを備える情報処理装置の制御方法をコンピュータに実行させるプログラムであって、
前記情報処理装置の制御方法は、
受信した書き込みコマンドに従って、前記複数のストレージの各々に対し、前記書き込みコマンドが示すデータを前記保持手段に保持させ、前記保持されたデータを前記記録媒体における前記書き込みコマンドが示すアドレスに書き込ませる制御を行う書き込み制御ステップと、
前記複数のストレージにおける第1のストレージに格納されたデータを前記複数のストレージにおける第2のストレージに複製するリビルド処理の実行を制御するリビルド制御ステップと、
前記第1のストレージ及び前記第2のストレージにおける同じアドレスのデータ同士を比較する比較ステップとを有し、
前記リビルド制御ステップは、前記書き込み制御ステップにて前記第1のストレージに最後にデータが書き込まれた最終書き込みアドレスから前記比較ステップにてアドレスの逆順に前記第1のストレージ及び前記第2のストレージにおける同じアドレスのデータ同士を比較した結果において差分があるアドレスのデータを前記第2のストレージに複製することを特徴とするプログラム。
A program that causes a computer to execute a control method for an information processing apparatus having a plurality of storages including a volatile holding means and a non-volatile recording medium.
The control method of the information processing device is
According to the received write command, each of the plurality of storages is controlled to hold the data indicated by the write command in the holding means and write the held data to the address indicated by the write command in the recording medium. Write control steps to perform and
A rebuild control step that controls execution of a rebuild process that replicates data stored in the first storage in the plurality of storages to the second storage in the plurality of storages, and a rebuild control step.
It has a comparison step of comparing data of the same address in the first storage and the second storage.
The rebuild control step is performed in the first storage and the second storage in the reverse order of the address in the comparison step from the last write address in which the data was last written to the first storage in the write control step. A program characterized by replicating data of addresses having a difference in the result of comparing data of the same address to the second storage.
JP2019224562A 2019-12-12 2019-12-12 Information processing apparatus, method for controlling the same, and program Pending JP2021093075A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2019224562A JP2021093075A (en) 2019-12-12 2019-12-12 Information processing apparatus, method for controlling the same, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2019224562A JP2021093075A (en) 2019-12-12 2019-12-12 Information processing apparatus, method for controlling the same, and program

Publications (1)

Publication Number Publication Date
JP2021093075A true JP2021093075A (en) 2021-06-17

Family

ID=76312498

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2019224562A Pending JP2021093075A (en) 2019-12-12 2019-12-12 Information processing apparatus, method for controlling the same, and program

Country Status (1)

Country Link
JP (1) JP2021093075A (en)

Similar Documents

Publication Publication Date Title
JP5409159B2 (en) Information processing apparatus, information processing apparatus control method, and program
US7971014B2 (en) Information processing apparatus and data recovering method
JP6164938B2 (en) Image forming apparatus, control method therefor, and program
US8924669B2 (en) Information processing apparatus, control method, and program
JP6703790B2 (en) Information processing apparatus, control method thereof, and program
JP2013041430A (en) Image forming apparatus and control method of image forming apparatus
JP5939896B2 (en) Image forming apparatus
JP2021093075A (en) Information processing apparatus, method for controlling the same, and program
JP4122956B2 (en) Replica volume generation method and disk device
JP2007310548A (en) Disk array device and data management method
JP7246869B2 (en) IMAGE FORMING APPARATUS, IMAGE FORMING APPARATUS CONTROL METHOD AND PROGRAM
JP7214381B2 (en) IMAGE FORMING APPARATUS, IMAGE FORMING APPARATUS CONTROL METHOD AND PROGRAM
JP2021082198A (en) Information processing apparatus, method for controlling the same, and program
JP2018073005A (en) Information processing apparatus and control method therefor and program
JP2016110513A (en) Information processor, control method for information processor, program, and recording medium
JP7263067B2 (en) Information processing device and information processing device control method
JP6532240B2 (en) Information processing apparatus and control method thereof
JP2021089524A (en) Information processing device, control method of the same, and program
JP2011159101A (en) Information processing apparatus, method and program for managing memory
JP2021082199A (en) Storage control device, method for controlling the same, and program
JP6901534B2 (en) Data storage device, control device, stored data management method, and program
JP2018063499A (en) Information processing device, control method thereof, and program
JP2021092845A (en) Image forming apparatus, method for controlling the same, and program
JP2012113382A (en) Image forming device
JP2021179730A (en) Information processing apparatus, control method thereof, and program