System and method for recovering file systems without a replica
First Claim
Patent Images
1. A computer implemented method for recovering a file system, the method comprising:
- discovering an error in a first storage partition of the file system containing a current version of a namespace metadata, the error indicating that the first storage partition having an unavailable portion, wherein the namespace metadata contains file names, directory names, attributes and hierarchy of the files and directories, and wherein the file system is a deduplicated file storage system that stores a reference to a previously stored data segment upon receiving a new data segment when the new data segment has already been stored in the file storage system;
finding a second storage partition containing a most recent copy of the namespace metadata, wherein the second storage partition is among a plurality of storage partitions to find the most recent copy of the namespace metadata from a plurality of copies of the namespace metadata in the plurality of storage partitions, wherein each of the plurality of storage partitions is an archive partition archived and sealed at a different point in time, wherein when an archive partition is archived and sealed, an entire copy of current namespace metadata describing a namespace of the file system at a point in time is captured and stored in the archive partition; and
restoring the found copy of the namespace metadata from the second storage partition to the first storage partition for use as a current version of the namespace metadata,wherein prior to discovering the error in the first storage partition, data is moved from the first storage partition to the second storage partition, and a copy of the current version of the namespace metadata is stored in the second storage partition.
10 Assignments
0 Petitions
Accused Products
Abstract
According to one embodiment, recovering file systems without a replica is described. In one example, a method includes discovering an error in a first storage partition of the file system containing a current version of a namespace metadata, finding a second storage partition containing a most recent copy of the namespace metadata, and restoring the found copy of the namespace metadata from the second storage partition to the first storage partition for use as a current version of the namespace metadata.
86 Citations
18 Claims
-
1. A computer implemented method for recovering a file system, the method comprising:
-
discovering an error in a first storage partition of the file system containing a current version of a namespace metadata, the error indicating that the first storage partition having an unavailable portion, wherein the namespace metadata contains file names, directory names, attributes and hierarchy of the files and directories, and wherein the file system is a deduplicated file storage system that stores a reference to a previously stored data segment upon receiving a new data segment when the new data segment has already been stored in the file storage system; finding a second storage partition containing a most recent copy of the namespace metadata, wherein the second storage partition is among a plurality of storage partitions to find the most recent copy of the namespace metadata from a plurality of copies of the namespace metadata in the plurality of storage partitions, wherein each of the plurality of storage partitions is an archive partition archived and sealed at a different point in time, wherein when an archive partition is archived and sealed, an entire copy of current namespace metadata describing a namespace of the file system at a point in time is captured and stored in the archive partition; and restoring the found copy of the namespace metadata from the second storage partition to the first storage partition for use as a current version of the namespace metadata, wherein prior to discovering the error in the first storage partition, data is moved from the first storage partition to the second storage partition, and a copy of the current version of the namespace metadata is stored in the second storage partition. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9)
-
-
10. A non-transitory computer-readable storage medium having instructions stored therein, which when executed by a computer, cause the computer to perform a method for recovering a file storage system global namespace metadata, the method comprising:
-
discovering an error in a first storage partition of the file system containing a current version of a namespace metadata, the error indicating that the first storage partition having an unavailable portion, wherein the namespace metadata contains file names, directory names, attributes and hierarchy of the files and directories, and wherein the file system is a deduplicated file storage system that stores a reference to a previously stored data segment upon receiving a new data segment when the new data segment has already been stored in the file storage system; finding a second storage partition containing a most recent copy of the namespace metadata, wherein the second storage partition is among a plurality of storage partitions to find the most recent copy of the namespace metadata from a plurality of copies of the namespace metadata in the plurality of storage partitions, and wherein each of the plurality of storage partitions is an archive partition archived and sealed at a different point in time, wherein when an archive partition is archived and sealed, an entire copy of current namespace metadata describing a namespace of the file system at a point in time is captured and stored in the archive partition; and restoring the found copy of the namespace metadata from the second storage partition to the first storage partition for use as a current version of the namespace metadata, wherein prior to discovering the error in the first storage partition, data is moved from the first storage partition to the second storage partition, and a copy of the current version of the namespace metadata is stored in the second storage partition. - View Dependent Claims (11, 12, 13)
-
-
14. A storage system comprising;
-
a system memory; a processor; a file system executed in the system memory, the file system having a plurality of storage partitions including at least a first storage partition and a second storage partition, each storage partition including a version of global namespace metadata of the file system, wherein the version of global namespace metadata contains file names, directory names, attributes and hierarchy of the files and directories, and wherein the file system is a deduplicated file storage system that stores a reference to a previously stored data segment upon receiving a new data segment when the new data segment has already been stored in the file storage system;
a partition manager coupled to the file system and the system memory, wherein the partition manager is configured todiscover an error in an active storage partition of the file storage system, the error indicating that the first storage partition having an unavailable portion; find a backup storage partition containing the most recent global namespace metadata, wherein the second storage partition is among a plurality of storage partitions to find the most recent copy of the namespace metadata from a plurality of copies of the namespace metadata in the plurality of storage partitions, and wherein each of the plurality of storage partitions is an archive partition archived and sealed at a different point in time, wherein when an archive partition is archived and sealed, an entire copy of current namespace metadata describing a namespace of the file system at a point in time is captured and stored in the archive partition; restore the global namespace metadata in the active storage partition using the backup storage partition; and prune the restored namespace to remove files that had data in the active partition, wherein prior to discovering the error in the first storage partition, data is moved from the first storage partition to the second storage partition, and a copy of the current version of the namespace metadata is stored in the second storage partition. - View Dependent Claims (15, 16, 17, 18)
-
Specification