Patent ID: 7139927

Claim:
A journaling method for supporting a recovery when a system in a shared disk environment is abnormally terminated, comprising the steps of: (a) starting, if a system call operation to process a journaling is generated, a transaction to guarantee a recovery so that a new transaction region is assigned and initialized and a transaction type is set up; (b) acquiring lock information on modified data and adding the lock information to the transaction so that a transaction is allowed to manage the lock information and to prevent the log information from being written to a disk during modifying metadata; (c) recording the modified metadata added to the transaction and modified information modified on principal general data on a journal space and releasing the lock information connected to the transaction; (d) gathering a log buffer from a modified metadata buffer and a principal data buffer; (e) assigning a log region and increasing a version; (f) determining whether log information is metadata or general data; and (g) recording the metadata and the general data in a journal space according to the determining result, wherein the step (g) includes the steps of: (g1) performing a synchronous logging if the log information is the metadata or if the log information is the principal data and the number of the log buffers is equal to or larger than a predetermined number; and (g2) performing an asynchronous logging if the log information is the general principal data and the number of the log buffers is smaller than the predetermined number, wherein the step (g1) includes the steps of: (g11) recording a log in a journal space; (g12) adding a buffer list connected to the transaction to an AIL list; and (g13) releasing a disk reflection ban on a buffer added to the AIL list.