The invention provides a state self-repairing method and device for a thick
backup volume in distributed storage, and relates to the technical field of distributed storage
system state self-repairing technology.The method comprises the steps that
metadata state information of the thick
backup volume is obtained, and whether the volume is in a formatted state or not is judged; if the volume is in the formatting state, performing layered random sampling
verification on the physical data of the volume, and identifying that the volume is a false abnormal volume or a true abnormal volume; if the volume is the false abnormal volume, only updating the
metadata state into a formatting completion state; if the volume is a true abnormal volume, determining a
breakpoint by adopting a binary search method; the method comprises the steps of collecting
IOPS and bandwidth data of a cluster in real time, dynamically calculating a formatting quota, pausing formatting operation and storing current
breakpoint coordinates when a cluster load exceeds a preset threshold value, and recovering the formatting operation from the stored
breakpoint coordinates when the load is reduced to be below the threshold value. By means of the method and device, separation of
metadata and physical data is effectively avoided, the repairing efficiency is remarkably improved, and storage
resource consumption is reduced.