摘要 |
<p>The present invention relates to a method for re-synchronizing parity of a disk array by using a merged intent log. The method for re-synchronizing parity of a disk array by using a merged intent log comprises the steps of: generating and storing an intent log including the addresses of the data buffered on a write cache; recording the data of the write cache on a disk and, at the same time, removing the data from the write cache; and if power is off while the data of the write cache is being recorded on the disk, supplying power to the disk to re-operate the disk on and checking the data corresponding to a list of the data addresses included in the intent log for parity inconsistency to correct a block with parity inconsistency, if any. Accordingly, when a disk re-starts after abnormal completion, parity inconsistency is checked and determined only for stripes corresponding to the addresses of the data stored in the intent log, rather than all stripes of the disk. Accordingly, the time spent on determining parity inconsistency can be effectively reduced. An intent log is not stored whenever a write request is made for data. Instead, only when the data addresses stored in an intent log are changed, the intent log is stored, thereby reducing a storing frequency of an intent log to improve a write performance.</p> |