[Gluster-devel] error while reading from an open file

Brian Hirt bhirt at mobygames.com
Fri Aug 28 21:12:48 UTC 2009


Hi,

I'm running into some problems where one process is writing a log file  
to a and another is reading from it.  The process reading the file is  
not behaving as expected.

I've managed to reproduce the problem with some very simple commands:

Open two terminal windows on the same machine:

In one window run the following script:

$ perl -e 'while (1) { print STDERR  ("0123456789" x 8) . "\n"; }'   
2> /gfs/somefile

In another window, tail the file:

$ perl -e 'while (<>) { print; }' < /gfs/somefile  | grep -v  
'01234567890123456789012345678901234567890123456789012345678901234567890123456789 
'
234567890123456789
9012345678901234567890123456789
01234567890123456789
123456789
67890123456789012345678901234567890123456789
345678901234567890123456789012345678901234567890123456789
56789012345678901234567890123456789
6789012345678901234567890123456789
45678901234567890123456789012345678901234567890123456789
012345678901234567890123456789012345678901234567890123456789
789
7890123456789012345678901234567890123456789012345678901234567890123456789
567890123456789012345678901234567890123456789012345678901234567890123456789
12345678901234567890123456789
123456789
^C


My configuration is the same as I posted a few days ago.  I'm also  
continuing to get hundreds of the errors I mentioned in that message  
with rsync.

[2009-08-28 10:21:20] E [posix.c:1155:posix_chmod] posix: lstat on / 
gluster/exports/redacted/.1218486082-01.jpg.nkOkw9 failed: No such  
file or directory
[2009-08-28 10:26:19] E [posix.c:1193:posix_chown] posix: lchown on / 
redacted/.1220803666-01.jpg.WV6JhR failed: No such file or directory
[2009-08-28 10:26:19] E [posix.c:1147:posix_chmod] posix: chmod on / 
redacted/.1220803666-01.jpg.WV6JhR failed: No such file or directory
[2009-08-28 10:27:28] E [posix.c:1193:posix_chown] posix: lchown on / 
redacted/.1221412507-00.jpg.NTakNW failed: No such file or directory
[2009-08-28 10:27:28] E [posix.c:1147:posix_chmod] posix: chmod on / 
redacted/.1221412507-00.jpg.NTakNW failed: No such file or directory
[2009-08-28 10:30:57] E [posix.c:1147:posix_chmod] posix: chmod on / 
redacted/.1223283509-00.jpg.fSZUDq failed: No such file or directory
[2009-08-28 10:48:47] E [posix.c:1193:posix_chown] posix: lchown on / 
redacted/.1232807159-00.jpg.wGAsfq failed: No such file or directory
[2009-08-28 10:48:47] E [posix.c:1147:posix_chmod] posix: chmod on / 
redacted/.1232807159-00.jpg.wGAsfq failed: No such file or directory
[2009-08-28 11:02:30] E [posix.c:1193:posix_chown] posix: lchown on / 
redacted/.1242295341-00.jpg.LExLre failed: No such file or directory
[2009-08-28 11:02:30] E [posix.c:1147:posix_chmod] posix: chmod on / 
redacted/.1242295341-00.jpg.LExLre failed: No such file or directory
[2009-08-28 11:12:43] E [posix.c:1298:posix_utimens] posix: utimes on / 
gluster/exports/redacted/.1249259086-00.jpg.C2x2t4 failed: No such  
file or directory
[2009-08-28 11:15:50] E [posix.c:1298:posix_utimens] posix: utimes on / 
gluster/exports/redacted/.938651825-00.jpg.fNFWcu failed: No such file  
or directory


Any advice that you can give would be helpful.

--brian





More information about the Gluster-devel mailing list