This application discloses a method, electronic device, storage medium, and product for inspecting and repairing mirrored volumes, relating to the field of storage technology. The method includes: receiving a volume repair command from a
client, the volume repair command being used to perform an inspection and repair operation on a secondary copy volume in a mirrored volume corresponding to a target virtual disk; obtaining the storage
unit size of a single storage unit, the logical
block size of a single logical block, and the
logical address range size corresponding to each domain of the secondary copy volume; when the mirrored volume is an unowned mirrored volume, generating a task request based on a preset starting logical block address, logical
block size, storage
unit size,
logical address range size, and a first quantity; and distributing the task request to the owner node of each domain, so that each owner node performs an inspection and repair operation on the storage blocks to be repaired within its respective domain based on the task request. This application solves the problem of long
processing paths for inspection and repair tasks on unowned mirrored volumes, improving the efficiency of performing inspection and repair operations.