Snapshot management in distributed file systems
AssigneeRed Hat, Inc.
InventorsAvra Sengupta, Rajesh Joseph
Life of this patent
Estimating the term…
Abstract
A system and method are disclosed for managing snapshots of a distributed file system. In accordance with one implementation, a list of snapshots of a file system is presented to a user, where the snapshots include one or more active snapshots and one or more inactive snapshots. A request by the user to access one of the snapshots in the list is received. In response to determining that the requested snapshot is active, the user is provided access to the requested snapshot. In response to determining that the requested snapshot is inactive, the requested snapshot is activated and the user is provided access to the requested snapshot.
Claims20
A method comprising:
- presenting to a user, by a processing device, a list of snapshots of a distributed file system, wherein the snapshots comprise one or more active snapshots and one or more inactive snapshots, and wherein the presenting is in response to the user navigating to a designated subdirectory of a directory and submitting a command to list the contents of the designated subdirectory;
- receiving, by the processing device, a request by the user to access one of the snapshots in the list;
- in response to determining that the requested snapshot is active, providing, to the user, access to the requested snapshot;
- and
- in response to determining that the requested snapshot is inactive:
- activating the requested snapshot,
- providing to the user, after the activating, access to the requested snapshot;
- and
- in response to determining, after the activating, that a number of active snapshots exceeds a threshold, selecting an active snapshot and deactivating the selected snapshot.
An apparatus comprising:
- one or more storage devices to store data associated with a distributed file system;
- and
- a processing device, operatively coupled to the one or more storage devices, to:
- present to a user a list of snapshots of the distributed file system, wherein the snapshots comprise one or more active snapshots and one or more inactive snapshots, and wherein the presenting is in response to the user navigating to a designated subdirectory of a directory and submitting a command to list the contents of the designated subdirectory;
- receive a request by the user to access a first snapshot that is in the list;
- in response to determining that the first snapshot is active, provide, to the user, access to the first snapshot;
- and
- in response to determining that the first snapshot is inactive:
- determine whether activation of the first snapshot will cause a number of active snapshots to exceed a threshold;
- in response to determining that the activation will cause the number of active snapshots to exceed the threshold, select a second snapshot that is active and deactivate the selected snapshot;
- activate the first snapshot;
- and
- provide to the user, after the activating of the first snapshot, access to the first snapshot.
A non-transitory computer readable storage medium, having instructions stored therein, which when executed, cause a processing device to:
- present to a user, by the processing device, a list of snapshots of a distributed file system, wherein the snapshots comprise one or more active snapshots and one or more inactive snapshots;
- receiving, by the processing device, a request by the user to access one of the snapshots in the list;
- in response to determining that the requested snapshot is active, providing, to the user, access to the requested snapshot;
- and
- in response to determining that the requested snapshot is inactive, activate the requested snapshot and provide access to the requested snapshot to the user after the activating.
Dependencies are inferred from the claim text.