Pro-active self-healing in a distributed file system
AssigneeRed Hat, Inc.
InventorsPranith Kumar Karampuri, Anand Vishweswaran Avati, Vijay Bellur
Life of this patent
Estimating the term…
Abstract
A first storage server identifies a second storage server connecting to a cluster of storage servers in a file system. The first storage server locates a file in a replication directory hierarchy in the second storage server. The file has not been accessed by a client application. The first storage server determines, prior to the file being accessed by the client application, that the file on the second storage server has stale data and overwrites the stale data in the file on the second storage server with current data.
Claims20
A method comprising:
- requesting, by a processing device on a first server, a link status for a network port related to a second server;
- determining, by the processing device, that the second server after a failure is reconnecting to a cluster of servers in a file system in view of the link status for the network port;
- determining, in response to determining that the second server is reconnecting to the cluster of servers in the file system, that an image file on the second server comprises stale data;
- updating the stale data in the image file on the second server with current data;
- and
- responsive to detecting a request to access the image file, providing an indication during the updating that the image file is partially locked at a portion comprising the stale data.
A non-transitory computer-readable medium having instructions encoded thereon that, when executed by a processing device, cause the processing device to:
- request, by the processing device, a link status for a network port related to a server;
- determine that the server after a failure is reconnecting to a cluster of servers in a file system in view of the link status for the network port;
- determine, in response to determining that the second server is reconnecting to the cluster of servers in the file system, that an image file on the server comprises stale data;
- update the stale data in the image file on the server with current data;
- and
- responsive to detecting a request to access the image file, provide an indication during the updating that the image file is partially locked at a portion comprising the stale data.
A system comprising:
- a memory;
- and
- a processing device operatively coupled to the memory, the processing device to:
- requesting a link status for a network port related to a server;
- determine that the server after a failure is reconnecting to a cluster of servers in a file system in view of the link status for the network port;
- determine, in response to determining that the server is reconnecting to the cluster of servers in the file system, that an image file on the server comprises stale data;
- and
- update the stale data in the image file on the server with current data;
- and
- responsive to detecting a request to access the image file, provide an indication during the updating that the image file is partially locked at a portion comprising the stale data.
Dependencies are inferred from the claim text.