Techniques for pro-active self-healing in a distributed file system are disclosure herein. In accordance with one embodiment, a method is provided. The method comprises prior to detecting an access request by a client application to an image on a storage server, identifying, by a self-healing daemon executed by a processing device, a first region of the image comprising stale data. A partial lock on the image is acquired. The partial lock prevents access to the first region of the image. Responsive to acquiring the partial lock, the self-healing daemon provides access to a second region of the image file comprising data other than the stale data.
Legal claims defining the scope of protection, as filed with the USPTO.
1. A method comprising: prior to detecting an access request by a client application to an image on a storage server, identifying, by a self-healing daemon executed by a processing device, a first region of the image comprising stale data; acquiring, by the self-healing daemon, a partial lock on the image, wherein the partial lock to prevent access to the first region of the image; and responsive to acquiring the partial lock, providing, by the self-healing daemon, access to a second region of the image file comprising data other than the stale data.
2. The method of claim 1 , further comprising determining that the storage server is rejoining a cluster of servers.
3. The method of claim 2 , wherein the determining comprises examining a link status of network port associated with the storage server.
4. The method of claim 2 , wherein identifying that the first region comprising stale data comprises comparing data of the image on the storage server with data of a corresponding image on a different server of the cluster.
5. The method of claim 4 , further comprising overwriting the stale data in the first region with the data of the corresponding image.
6. The method of claim 1 , further comprising: detecting a request to access the image; and providing an indication that the image is partial locked at the first region.
7. The method of claim 1 , further comprising: crawling through levels of a directory hierarchy associated with the storage server; and determining whether an image file in at least one level of the directory hierarchy comprises stale data.
8. A system comprising: a memory to store a plurality of images; a processing device, operatively coupled to the memory, the processing device executing a self-healing daemon to: prior to detecting an access request by a client application to an image on a storage server, identify a first region of the image comprising stale data; acquire a partial lock on the image, wherein the partial lock to prevent access to the first region of the image; and responsive to acquiring the partial lock, provide access to a second region of the image file comprising data other than the stale data.
9. The system of claim 8 , wherein the self-healing daemon further to determine that the storage server is rejoining a cluster of servers.
10. The system of claim 9 , wherein to determine, the self-healing daemon further to examine a link status of network port associated with the storage server.
11. The system of claim 9 , wherein to identify that the first region comprising stale data, the self-healing daemon further to compare data of the image on the storage server with data of a corresponding image on a different server of the cluster.
12. The system of claim 11 , wherein the self-healing daemon further to overwrite the stale data in the first region with the data of the corresponding image.
13. The system of claim 8 , wherein the self-healing daemon further to: detect a request to access the image; and provide an indication that the image is partial locked at the first region.
14. The system of claim 8 , wherein the self-healing daemon further to: crawl through levels of a directory hierarchy associated with the storage server; and determine whether an image file in at least one level of the directory hierarchy comprises stale data.
15. A non-transitory computer-readable storage medium comprising instructions, that when executed by a processing device, cause the processing device to: prior to detecting an access request by a client application to an image on a storage server, identify, by a self-healing daemon executed by the processing device, a first region of the image comprising stale data; acquire a partial lock on the image, wherein the partial lock to prevent access to the first region of the image; and responsive to acquiring the partial lock, provide access to a second region of the image file comprising data other than the stale data.
16. The non-transitory computer-readable storage medium of claim 15 , wherein the self-healing daemon further to determine that the storage server is rejoining a cluster of servers.
17. The non-transitory computer-readable storage medium of claim 16 , wherein to determine, the self-healing daemon further to examine a link status of network port associated with the storage server.
18. The non-transitory computer-readable storage medium of claim 16 , wherein to identify that the first region comprising stale data, the self-healing daemon further to compare data of the image on the storage server with data of a corresponding image on a different server of the cluster.
19. The non-transitory computer-readable storage medium of claim 18 , wherein the self-healing daemon further to overwrite the stale data in the first region with the data of the corresponding image.
20. The non-transitory computer-readable storage medium of claim 15 , wherein the self-healing daemon further to: detect a request to access the image; and provide an indication that the image is partial locked at the first region.
Cooperative Patent Classification codes for this invention. Click any code to explore related patents in that topic.
March 31, 2016
December 27, 2016
Browse 5M+ US patents with plain-English claim translations and AI-generated analysis.