IP Library Granted Patent US 9,785,667
Granted Patent B2
US 9,785,667 · App. 15/185,694 · Granted Oct 10, 2017

Fast creation of a master GFS2 file system

Inventors: Shachar Adiv (Tel Aviv, IL); Liran Loya (Hod-Hasharon, IL); Dan Melamed (Tel-Aviv, IL); Yossi Yamin (Gan Yavne, IL)
Assignee: INTERNATIONAL BUSINESS MACHINES CORPORATION
G06F17/30371G06F17/30091
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 9,785,667
App. No.
15/185,694
Granted
Oct 10, 2017
Kind
B2
Abstract

For fast creation of a gfs2 file system, a master metadata image of a master file system is used for generating a small file systems identical in structure in the gfs2 file system containing a large sequential file. Metadata is captured of the master file system and stored as the master metadata image. A utility function of the gfs2 file system is used for saving the master metadata image of the master file system as a compressed binary file.

Claims (50)

1. A method for fast creation of a gfs2 file system using a processor device, the method comprising:

using a master metadata image of a master file system for generating a plurality of small file systems identical in structure in the gfs2 file system containing a large sequential file;

capturing metadata of the master file system and storing the captured metadata as the master metadata image;

using a utility function of the gfs2 file system for saving the master metadata image of the master file system as a compressed binary file;

creating the master file system by using a fallocate system call;

creating the gfs2 file system;

creating a padded file on the master file system using one of the fallocate system call and writing zeros to the master file system; and

verifying a structure of the master file system as required.

2. The method of claim 1 , further including manually creating the master file system by one of using a fallocate system call and writing zeros to the master file system, wherein the master file system is fully allocated and sequential.

3. The method of claim 2 , further including capturing metadata of the master file system and storing the metadata as the master metadata image.

4. The method of claim 3 , further including using the master metadata image for creating each of the plurality of small file systems by dumping the metadata of the master file system.

5. The method of claim 1 , further including performing each one of:

using the master metadata image for creating each of the plurality of small file systems using the metadata of the master file system, and

restoring the captured metadata using the master metadata image via the utility function of the gfs2 file system.

6. The method of claim 5 , further including performing one of:

storing a mount point in each one of a plurality of gfs2 file systems in a metadata table, and

using different mount points for each of the plurality of gfs2 file systems, wherein the metadata table is modified to reflect each of the different mount points.

7. A system for fast creation of a gfs2 file system of a computing system, the system comprising:

at least one processor device in the computing system, wherein the at least one processor device:

uses a master metadata image of a master file system for generating a plurality of small file systems identical in structure in the gfs2 file system containing a large sequential file,

captures metadata of the master file system and storing the captured metadata as the master metadata image,

uses a utility function of the gfs2 file system for saving the master metadata image of the master file system as a compressed binary file,

creating the master file system by using a fallocate system call,

creating the gfs2 file system,

creating a padded file on the master file system using one of the fallocate system call and writing zeros to the master file system, and

verifying a structure of the master file system as required.

8. The system of claim 7 , wherein the at least one processor device manually creates the master file system by one of using a fallocate system call and writing zeros to the master file system, wherein the master file system is fully allocated and sequential.

9. The system of claim 8 , wherein the at least one processor device captures metadata of the master file system and storing the metadata as the master metadata image.

10. The system of claim 9 , wherein the at least one processor device uses the master metadata image for creating each of the plurality of small file systems by dumping the metadata of the master file system.

11. The system of claim 7 , wherein the at least one processor device performs each one of each one of:

using the master metadata image for creating each of the plurality of small file systems using the metadata of the master file system,

restoring the captured metadata using the master metadata image via the utility function of the gfs2 file system,

storing a mount point in each one of a plurality of gfs2 file systems in a metadata table, and

using different mount points for each of the plurality of gfs2 file systems, wherein the metadata table is modified to reflect each of the different mount points.

12. A computer program product for efficiently storing and retrieving data and metadata in a plurality of phases in a storage system using a processor device, the computer program product embodied on a non-transitory computer-readable storage medium having computer-readable program code portions stored therein, the computer-readable program code portions comprising:

an executable portion that uses a master metadata image of a master file system for generating a plurality of small file systems identical in structure in the gfs2 file system containing a large sequential file;

an executable portion that captures metadata of the master file system and storing the metadata as the master metadata image;

an executable portion that uses the master metadata image for creating each of the plurality of small file systems by dumping the metadata of the master file system;

an executable portion that creates the master file system by using a fallocate system call;

an executable portion that creates the gfs2 file system;

an executable portion that creates a padded file on the master file system using one of the fallocate system call and writing zeros to the master file system; and

an executable portion that verifies a structure of the master file system as required.

13. The computer program product of claim 12 , further including an executable portion that manually creates the master file system by one of using a fallocate system call and writing zeros to the master file system, wherein the master file system is fully allocated and sequential.

14. The computer program product of claim 12 , further including an executable portion that performs each one of:

capturing metadata of the master file system and storing the captured metadata as the master metadata image,

using a utility function of the gfs2 file system for saving the master metadata image of the master file system as a compressed binary file,

using the master metadata image for creating each of the plurality of small file systems using the metadata of the master file system,

restoring the captured metadata using the master metadata image via the utility function of the gfs2 file system,

storing a mount point in each one of a plurality of gfs2 file systems in a metadata table, and

using different mount points for each of the plurality of gfs2 file systems, wherein the metadata table is modified to reflect each of the different mount points.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Jun 17, 2016
From: ADIV, SHACHAR; LOYA, LIRAN; MELAMED, DAN; YAMIN, YOSSI
To: INTERNATIONAL BUSINESS MACHINES CORPORATION
Reel/Frame 038944/0950 →
Continuity (2)
Continuation 14152569 · Jan 10, 2014
Related Publication 20160299940A1 · Oct 13, 2016