Patent attributes
In the field of data storage, a metadata query method and an apparatus are disclosed to improve metadata searching efficiency. The method is applied to a linked snapshot. A metadata query request is received. A first time sequence identifier is obtained from the first snapshot volume based on the volume identifier of the first snapshot volume. A historical index information is queried based on the data block identifier and the first time sequence identifier. When the data block identifier exists, and the first time sequence identifier falls within a corresponding query time sequence interval a corresponding target volume identifier is obtained from the historical index information. Address metadata corresponding to the data block identifier are obtained from a second snapshot volume indicated by the target volume identifier.