×

Method and apparatus for optimizing recovery of single-disk failure

  • US 10,048,999 B2
  • Filed: 12/28/2015
  • Issued: 08/14/2018
  • Est. Priority Date: 09/25/2015
  • Status: Active Grant
First Claim
Patent Images

1. A method for optimizing recovery of a failure of a single-disk, comprising:

  • using a processor of a computer system to execute the following steps;

    obtaining, according to current load information of an erasure-coded storage system comprising a first disk and a second disk, an amount of data expected to be read and an allowed number of iterations, wherein the first disk comprises a first portion and a second portion, and the second disk comprises a third portion and a fourth portion, the first portion and the third portion store failed data in a first stripe, and the second portion and the fourth portion store failed data in a second stripe;

    obtaining a recovery optimization policy for the failed data in each single stripe of the first stripe and the second stripe, and combining the recovery optimization policy for the failed data in the each single stripe to obtain an initial recovery policy for the first stripe and the second stripe;

    further optimizing the initial recovery policy by using a greedy algorithm based on tabu search, subject to the amount of data expected to be read and the allowed number of iterations, to obtain an optimal recovery policy with a smallest quantity of seeks, so that the failure of the single-disk is recovered according to the optimal recovery policy;

    wherein the step of optimizing the initial recovery policy by using a greedy algorithm based on tabu search, subject to the amount of data expected to be read and the allowed number of iterations, to obtain an optimal recovery policy with a smallest quantity of seeks, further comprises;

    initializing a tabu list to an empty set, wherein the tabu list stores a quantity of seeks needed by an optimal solution that is found during each iteration;

    during each iteration, performing an input by using the optimal recovery solution in a last iteration as the initial recovery policy in the current iteration; and

    after the allowed number of iterations, selecting a solution with the smallest quantity of seeks from the tabu list to serve as the optimal recovery policy; and

    recovering the failure of the single-disk according to the optimal recovery policy,wherein the optimal recovery policy is to read data from the each single stripe according to the amount of data expected to be read and a decoding rule of an erasure code to recover the failed data stored in the each single stripe, andwherein to read the data from the each single stripe, the following steps further comprise rotating a magnetic head of the single-disk to a position where the data resides.

View all claims
  • 0 Assignments
Timeline View
Assignment View
    ×
    ×