Let me make sure I have the correct scenario: You are in the process of creating a file. During that process, the metadata server crashes before the directory entry has been created but after the file has been created.
If the above scenario is correct, here is what pvfs will do: The PVFS client will attempt to re-contact the metadata server where the directory entry should be created. If that server happens to come up while the client is trying to contact it, then the directory entry will be created and the file create process will complete successfully. If the client cannot contact that server, it will remove the metadata already stored for the file. If the file's metadata is stored on that same failed server, then that file's metadata will not be removed. The client will return a failed response to the user in either case. Leaving a file's metadata on a server without a directory entry does not affect normal processing of the system. It just remains as orphaned data, which can be removed manually if you so choose. Also, you can configure how many times a client will try to re-contact a server before the client gives up. In the configuration file, you can set the ClientRetryLimit and ClientRetryDelayMilliSecs. ClientRetryLimit specifies how many times the client will retry a connection, and CleintRetryDelayMilliSecs specifies the amount of the time the client waits between retries. By default, these values are 5 and 2000, respectively. I hope this answered your question. Becky Ligon 2011/7/20 欧佳欣 <[email protected]> > In pvfs2 , when we create a file , if one MDS(meta data server) > crashes suddenly and restarts,(for example ,the server just crashes at the > time before the directory entry has been created and after the inode has > already been created), If this occurs , does the pvfs2 has some process of > recovery to make the MDS and client back to the state before the MDS crashed > ? ? > > _______________________________________________ > Pvfs2-developers mailing list > [email protected] > http://www.beowulf-underground.org/mailman/listinfo/pvfs2-developers > > -- Becky Ligon OrangeFS Support and Development Omnibond Systems Anderson, South Carolina
_______________________________________________ Pvfs2-users mailing list [email protected] http://www.beowulf-underground.org/mailman/listinfo/pvfs2-users
