Jay Vyas
2013-Oct-24 19:14 UTC
[Gluster-users] metadata for stat : Should it be identical?
Hi folks. Im wondering wether i should expect gluster to always return identical stat info for a file on the system. seems like, by definition of a "distributed file system" the answer would be yes. But Im not seeing that. Rather, I'm seeing different metadata from the stat command, in particular, the modification time is not the same. FYI, these two machines are not clock synchronized, but -- should that be an issue? I would assume there would be one central source of truth for any stat info on a file in the global namespace, right? # ssh mrg11 stat /mnt/glusterfs/user/yarn/.staging/job_1382637900757_0002/appTokens [1/1897] File: `/mnt/glusterfs/user/yarn/.staging/job_1382637900757_0002/appTokens' Size: 38 Blocks: 1 IO Block: 131072 regular file Device: 13h/19d Inode: 11771249148879556417 Links: 1 Access: (0644/-rw-r--r--) Uid: ( 493/ yarn) Gid: ( 490/ yarn) Access: 2013-10-24 14:22:28.858586945 -0400 Modify: 2013-10-24 14:22:28.861593090 -0400 Change: 2013-10-24 14:22:28.861593090 -0400 #ssh mrg12 stat /mnt/glusterfs/user/yarn/.staging/job_1382637900757_0002/appTokens File: `/mnt/glusterfs/user/yarn/.staging/job_1382637900757_0002/appTokens' Size: 38 Blocks: 1 IO Block: 131072 regular file Device: 13h/19d Inode: 11771249148879556417 Links: 1 Access: (0644/-rw-r--r--) Uid: ( 493/ yarn) Gid: ( 490/ yarn) Access: 2013-10-24 14:22:29.868940729 -0400 Modify: 2013-10-24 14:22:29.871694979 -0400 Change: 2013-10-24 14:22:29.871694979 -0400 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://supercolony.gluster.org/pipermail/gluster-users/attachments/20131024/25257bbc/attachment.html>
Alex Chekholko
2013-Oct-24 19:37 UTC
[Gluster-users] metadata for stat : Should it be identical?
You definitely want time synchronization between all of your machines. It's super easy to do these days, just installing the ntp package with whatever your distribution default settings should do the trick. e.g. 'aptitude install ntp' on Debian/Ubuntu If you have to choose NTP servers, just use pool.ntp.org http://www.pool.ntp.org/en/use.html On 10/24/2013 12:14 PM, Jay Vyas wrote:> FYI, these two machines are not clock synchronized, but -- should that > be an issue?-- Alex Chekholko chekh at stanford.edu 347-401-4860