[Gluster-users] Change time and stat on Gluster

Shain Miley SMiley at npr.org
Sun Aug 21 04:35:05 UTC 2011


Hello,
Can someone please check a file or two on via there gluster mount and tell me stating a file changes the value of the 'Change time' field?

I have one backend server that updates the 'change time' every time I run stat...and I have another backend server which does not change the value (when called from gluster).

I am trying to determine which one is working correctly so I can determine witch one is not.

For example:

thrace:/mnt/glusterfs/sys_admin# stat B.OUT 
  File: `B.OUT'
  Size: 2216587   	Blocks: 4360       IO Block: 131072 regular file
Device: 15h/21d	Inode: 11714712    Links: 1
Access: (0644/-rw-r--r--)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2011-08-18 17:50:16.681528000 -0400
Modify: 2011-08-18 17:50:17.282932000 -0400
Change: 2011-08-21 00:31:09.921023865 -0400

thrace:/mnt/glusterfs/sys_admin# stat B.OUT 
  File: `B.OUT'
  Size: 2216587   	Blocks: 4360       IO Block: 131072 regular file
Device: 15h/21d	Inode: 11714712    Links: 1
Access: (0644/-rw-r--r--)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2011-08-18 17:50:16.681528000 -0400
Modify: 2011-08-18 17:50:17.282932000 -0400
Change: 2011-08-21 00:31:11.064455223 -0400

As you can see the value of 'Change' is updated when I do a 'stat'.

However here it does not change:

thrace:/mnt/gluster_cage/sys_admin# stat B.OUT 
  File: `B.OUT'
  Size: 2216587   	Blocks: 4360       IO Block: 131072 regular file
Device: 16h/22d	Inode: 11714712    Links: 1
Access: (0644/-rw-r--r--)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2011-08-18 17:50:16.681528000 -0400
Modify: 2011-08-18 17:50:17.282932000 -0400
Change: 2011-08-18 17:57:58.964591559 -0400

thrace:/mnt/gluster_cage/sys_admin# stat B.OUT 
  File: `B.OUT'
  Size: 2216587   	Blocks: 4360       IO Block: 131072 regular file
Device: 16h/22d	Inode: 11714712    Links: 1
Access: (0644/-rw-r--r--)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2011-08-18 17:50:16.681528000 -0400
Modify: 2011-08-18 17:50:17.282932000 -0400
Change: 2011-08-18 17:57:58.964591559 -0400


If anyone can tell me what the expected behavior is...that will help me trouble shoot the problem.

Thanks,

Shain



More information about the Gluster-users mailing list