Temporary spill area for volume defragmentation
AssigneeInternational Business Machines Corporation
InventorsKyle B. Dudgeon, David C. Reed, Esteban Rios, Max D. Smith
Life of this patent
Estimating the term…
Abstract
A method for volume defragmentation utilizing a temporary spill area is disclosed. The method includes analyzing a volume, and, based on the analysis, determining to temporarily extend the volume. The method further includes identifying at least one area on another volume to use for temporarily extending the volume, and allocating the at least one area on the other volume as a temporary extension of the volume.
Claims17
A computer implemented method, comprising:
- analyzing an initial volume to be defragmented, the initial volume including a single accessible storage area within a file system, where a storage group includes the initial volume pooled with a plurality of additional volumes;
- based on the analysis, determining to temporarily extend the initial volume by an amount no greater than a predetermined percentage of the initial volume;
- identifying the storage group that includes the initial volume and the plurality of additional volumes pooled with the initial volume;
- identifying an area on each of the plurality of additional volumes pooled with the initial volume within the storage group to use for temporarily extending the initial volume;
- allocating the identified area on each of the plurality of additional volumes as a temporary extension of the initial volume, including, for each of the plurality of additional volumes, creating an entry in a Volume Table Of Contents (VTOC) of the additional volume that indicates that a non-Virtual Storage Access Method (VSAM) data set resides at a location of the identified area on the additional volume;
- setting a plurality of pointers within a VTOC of the initial volume, where the plurality of pointers includes, for each of the plurality of additional volumes pooled with the initial volume within the storage group, a pointer to the identified area on the additional volume;
- and
- defragmenting the initial volume, utilizing the plurality of pointers within the VTOC of the initial volume and the identified area on each of the plurality of additional volumes.
A computer program product for creating a temporary extension of a volume, the computer program product comprising a non-transitory computer readable storage medium having program instructions embodied therewith, the program instructions executable by a processor to cause the processor to:
- analyze an initial volume to be defragmented, utilizing the processor, the initial volume including a single accessible storage area within a file system, where a storage group includes the initial volume pooled with a plurality of additional volumes;
- based on the analysis, determine, utilizing the processor, to temporarily extend the initial volume by an amount no greater than a predetermined percentage of the initial volume;
- identify, utilizing the processor, the storage group that includes the initial volume and the plurality of additional volumes pooled with the initial volume;
- identify an area on each of the plurality of additional volumes pooled with the initial volume within the storage group to use for temporarily extending the initial volume, utilizing the processor;
- allocate, utilizing the processor, the identified area on each of the plurality of additional volumes as a temporary extension of the initial volume, including, for each of the plurality of additional volumes, creating an entry in a Volume Table Of Contents (VTOC) of the additional volume that indicates that a non-Virtual Storage Access Method (VSAM) data set resides at a location of the identified area on the additional volume;
- set, utilizing the processor, a plurality of pointers within a VTOC of the initial volume, where the plurality of pointers includes, for each of the plurality of additional volumes pooled with the initial volume within the storage group, a pointer to the identified area on the additional volume;
- and
- defragment, utilizing the processor, the initial volume, utilizing the plurality of pointers within the VTOC of the initial volume and the identified area on each of the plurality of additional volumes.
Dependencies are inferred from the claim text.