[Bugs] [Bug 1811907] New: different glusterfs client see different file content but when check brick, the data are same.
bugzilla at redhat.com
bugzilla at redhat.com
Tue Mar 10 07:17:39 UTC 2020
https://bugzilla.redhat.com/show_bug.cgi?id=1811907
Bug ID: 1811907
Summary: different glusterfs client see different file content
but when check brick, the data are same.
Product: GlusterFS
Version: 7
Hardware: x86_64
OS: Linux
Status: NEW
Component: fuse
Severity: high
Assignee: bugs at gluster.org
Reporter: zz.sh.cynthia at gmail.com
CC: bugs at gluster.org
Target Milestone: ---
Classification: Community
Description of problem:
cat show different file content from different glusterfs client.
Version-Release number of selected component (if applicable):
gluster7
How reproducible:
Steps to Reproduce:
1. on sn0 node, change time +30 days
2. touch a file in one volume
3. echo sth to that file
4. change time +30 day on sn0 again
5. restore time back (should -60 day), and check that the data is back to
normal now
6. append sth to the file on sn0
7. log to sn1 append sth to the file from sn1 client
8. cat the file from sn0 and sn1 , the content is different on two nodes.
Actual results:
file content should are not the same
Expected results:
file content should be the same
///////////////////operation steps////////////////////////
Log on sn0 node(mn-0 On my env)
[root at mn-0:/mnt/log/master/fsaudit]
# date -s "+30 day"
Thu Apr 9 08:59:47 EEST 2020
[root at mn-0:/mnt/log/master/fsaudit]
# ls
alarms auth.log internal-ssh.log
[root at mn-0:/mnt/log/master/fsaudit]
# touch testfile
[root at mn-0:/mnt/log/master/fsaudit]
# echo "from mn-0">testfile
[root at mn-0:/mnt/log/master/fsaudit]
# cat testfile
from mn-0
[root at mn-0:/mnt/log/master/fsaudit]
# stat testfile
File: testfile
Size: 10 Blocks: 1 IO Block: 131072 regular file
Device: 2ah/42d Inode: 10674483048284813578 Links: 1
Access: (0644/-rw-r--r--) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2020-04-09 08:59:51.729843706 +0300
Modify: 2020-04-09 08:59:59.259739585 +0300
Change: 2020-04-09 08:59:59.259739585 +0300
Birth: -
[root at mn-0:/mnt/log/master/fsaudit]
# date -s "+30 day"
Sat May 9 09:00:29 EEST 2020
[root at mn-0:/mnt/log/master/fsaudit]
# date -s "-30 day"
Thu Apr 9 09:00:34 EEST 2020
[root at mn-0:/mnt/log/master/fsaudit]
# date -s "-30 day"
Tue Mar 10 08:00:37 EET 2020
[root at mn-0:/mnt/log/master/fsaudit]
# date
Tue Mar 10 08:00:38 EET 2020
[root at mn-0:/mnt/log/master/fsaudit]
# ls
alarms auth.log internal-ssh.log testfile
[root at mn-0:/mnt/log/master/fsaudit]
# stat testfile
File: testfile
Size: 10 Blocks: 1 IO Block: 131072 regular file
Device: 2ah/42d Inode: 10674483048284813578 Links: 1
Access: (0644/-rw-r--r--) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2020-04-09 08:59:51.729843706 +0300
Modify: 2020-04-09 08:59:59.259739585 +0300
Change: 2020-04-09 08:59:59.259739585 +0300
Birth: -
[root at mn-0:/mnt/log/master/fsaudit]
# echo "append after change time back">>testfile
[root at mn-0:/mnt/log/master/fsaudit]
# stat testfile
File: testfile
Size: 40 Blocks: 1 IO Block: 131072 regular file
Device: 2ah/42d Inode: 10674483048284813578 Links: 1
Access: (0644/-rw-r--r--) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2020-04-09 08:59:51.729843706 +0300
Modify: 2020-04-09 08:59:59.259739585 +0300
Change: 2020-04-09 08:59:59.259739585 +0300
Birth: -
[root at mn-0:/mnt/log/master/fsaudit]
# cat testfile
from mn-0
append after change time back
Log in sn1 (mn-1 in my env):
[root at mn-1:/mnt/log/master/fsaudit]
# date
Tue Mar 10 07:59:34 EET 2020
[root at mn-1:/mnt/log/master/fsaudit]
# cat testfile
from mn-0
append after change time back
[root at mn-1:/mnt/log/master/fsaudit]
# echo "append from mn-1">>testfile
[root at mn-1:/mnt/log/master/fsaudit]
# stat testfile
File: testfile
Size: 57 Blocks: 1 IO Block: 131072 regular file
Device: 29h/41d Inode: 10674483048284813578 Links: 1
Access: (0644/-rw-r--r--) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2020-04-09 08:59:51.729843706 +0300
Modify: 2020-04-09 08:59:59.259739585 +0300
Change: 2020-04-09 08:59:59.259739585 +0300
Birth: -
[root at mn-1:/mnt/log/master/fsaudit]
# cat testfile
from mn-0
append after change time back
append from mn-1
[root at mn-0:/mnt/log/master/fsaudit]
# cat testfile
from mn-0
append after change time back
Additional info:
--
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.
More information about the Bugs
mailing list