Ni, Wang & Massand, PLLC
Crash-proof cache data protection method and system
The inventions disclosed herein provide a crash-proof cache data protection method and system. The cache data backup steps include: when power interruption unexpectedly occur, a preselected central processing unit receiving an interrupt request signal; querying to obtain index nodes of block devices corresponding to logical volume management volumes; according to the index nodes, acquiring a page needing to be stored in a flash memory; acquiring a buffer head in the page, and storing information of the buffer head and buffer data corresponding to the buffer head into the flash memory, and generating backup data. The cache data recovery steps include: acquiring the backup data which includes an unique ID of the block device and a logic block ID; calculating the block address of the backup data needing to be recovered using the logic block ID, querying a logic volume path of the block addresses in a volume database according to a unique identifier, and writing the backup data into the block addresses in a mode of a virtual file system so as to recover cache data.
Beijing Fortunet Information & Technology Co., Ltd
G Y G G G
G06F Y02D G06F G06F G06F
inventional additional inventional additional inventional
Jie Weiliang
Chen Shen