The invention discloses a dual-control
RAID synchronization method and device. The method includes the steps that a master node and a slave node load a dirty
bitmap from a
metadata area of a disk; the master node and the slave node synchronize an even number of pairs of even data blocks in the
bitmap and an odd number of pairs of odd data blocks in the
bitmap respectively; every time after the master node and the slave mode synchronize one data block, the bitmap of the
metadata area is updated once; after valid bits of the bitmap of the
metadata area are emptied, the master node and the slave node load a bitmap of the metadata area again. The master node and the slave node synchronize an even number of pairs of even data blocks in the bitmap and an odd number of pairs of odd data blocks in the bitmap respectively, so dual-control
RAID synchronization can be conducted on the two nodes according to an odd number of bits and an even number of bits on the bitmap, load balance is achieved, the phenomenon that the nodes are idle is avoided, dual-control
RAID synchronization can be quicker, the time of
data loss risks is shortened, and user experience is improved.