Garbage collection method and a hierarchy storage device

Abstract
The present invention relates a method and system for garbage collection of a magnetic tape, and it is an object of the present invention to provide a method and system for garbage collection of a magnetic tape, which are capable of efficiently executing a garbage collection.
Description

BRIEF DESCRIPTION OF THE DRAWINGS


FIG. 1 is a schematic diagram that shows an example embodiment of the present invention.



FIG. 2 is a diagram that illustrates a reconstruction of data by means of a garbage collection function.



FIG. 3 is a diagram that illustrates a garbage collection of a tape library device.


Claims
  • 1. A garbage collection method for controlling a hierarchy storage device including a tape library device and a magnetic disc device, the tape library device including at least two magnetic tape media being capable of storing data, the magnetic disc device being capable of storing data, the garbage collection method comprising: transferring information of one of the magnetic tape media to the magnetic disc device;storing information from the tape library device in the magnetic disc device;transferring stored information in the magnetic disc device to the tape library device;organizing information transferred between the tape library device and the magnetic disc device by discarding invalid data and sorting a stream of valid data in the information; andstoring the organized valid data information at the another of the magnetic tape media.
  • 2. The method of claim 1, wherein the organizing transfers valid data to the magnetic disc device.
  • 3. The method of claim 1, wherein the organizing transfers valid data and in valid data to the magnetic disc device and transfers the valid data from the disc device to the tape library device.
  • 4. A hierarchy storage device for controlling a garbage collection, comprising: a tape library device including at least two magnetic tape media being capable of storing data and first controller for controlling transfer information and storing information; anda magnetic disc device including a magnetic disc being capable of storing data and second controller for controlling transfer information and-storing information;wherein the first and the second controller organize information transferred between the tape library device and the magnetic disc device by discarding invalid data and sorting a stream of valid data in the information.
  • 5. The hierarchy storage device of the claim 1, wherein the first controller transfers valid data to the magnetic disc device and the second controller transfers valid date to the tape library device.
  • 6. The hierarchy storage device of the claim 1, wherein the first controller transfers valid date and in valid data to the magnetic disc device and the second controller transfers valid date to the tape library device.
Priority Claims (2)
Number Date Country Kind
2006-094938 Mar 2006 JP national
2006-115893 Apr 2006 JP national