[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#406902: kernel-source: NFS data loss



Package: kernel-source
Version: 2.6.8_16sarge6
Severity: important

Maybe this is related to http://bugs.debian.org/255931 (and concomitant
discussion on nfs@lists.sourceforge.net). I only guess that this is caused
by a "spurious" ESTALE error return.

Running on machine "rome", as "plain user" psz:

while :; do date; perl -e 'mkdir "tdir"; chdir "tdir"; open F, ">tscr"; print F "echo hello; sleep 2; /bin/pwd; echo bye\n"; close F; system "sh tscr"; mkdir("dir$_"),rmdir("dir$_") foreach 1..100; system "sh tscr"; unlink "tscr"; chdir ".."; rmdir "tdir"'; done

and (also on "rome"), as root:

while :; do date; lsof | grep psz | grep -E 'cwd|deleted|dir' | grep -v xterm; sleep 1; done

occasionally produces

Mon Jan 15 08:12:40 EST 2007
hello
/pisa/users/amstaff/psz/tdir
bye
shell-init: could not get current directory: getcwd: cannot access parent directories: No such file or directory
hello
/bin/pwd: cannot get current directory: No such file or directory
bye
Mon Jan 15 08:12:45 EST 2007
hello
/pisa/users/amstaff/psz/tdir
bye
hello
Mon Jan 15 08:12:48 EST 2007

Mon Jan 15 08:12:41 EST 2007
bash      13107      psz  cwd       DIR       0,15     8192    5800001 /pisa/users/amstaff/psz (pisa:/usr/users)
perl      13963      psz  cwd       DIR       0,15     4096    5800702 /pisa/users/amstaff/psz/tdir (pisa:/usr/users)
sh        13964      psz  cwd       DIR       0,15     4096    5800702 /pisa/users/amstaff/psz/tdir (pisa:/usr/users)
sh        13964      psz  255r      REG       0,15       40    5800712 /pisa/users/amstaff/psz/tdir/tscr (pisa:/usr/users)
sleep     13965      psz  cwd       DIR       0,15     4096    5800702 /pisa/users/amstaff/psz/tdir (pisa:/usr/users)
Mon Jan 15 08:12:42 EST 2007
bash      13107      psz  cwd       DIR       0,15     8192    5800001 /pisa/users/amstaff/psz (pisa:/usr/users)
perl      13963      psz  cwd   unknown       0,15                     /pisa/users/amstaff/psz/tdir (pisa:/usr/users)
Mon Jan 15 08:12:44 EST 2007
bash      13107      psz  cwd       DIR       0,15     8192    5800001 /pisa/users/amstaff/psz (pisa:/usr/users)
perl      13963      psz  cwd   unknown       0,15                     /pisa/users/amstaff/psz/tdir (deleted) (pisa:/usr/users)
sh        13984      psz  cwd   unknown       0,15                     /pisa/users/amstaff/psz/tdir (deleted) (pisa:/usr/users)
sh        13984      psz  255r      REG       0,15       40    5800712 /pisa/users/amstaff/psz/tdir/tscr (pisa:/usr/users)
sleep     13985      psz  cwd   unknown       0,15                     /pisa/users/amstaff/psz/tdir (deleted) (pisa:/usr/users)
Mon Jan 15 08:12:45 EST 2007
bash      13107      psz  cwd       DIR       0,15     8192    5800001 /pisa/users/amstaff/psz (pisa:/usr/users)
perl      13995      psz  cwd       DIR       0,15     4096    5800702 /pisa/users/amstaff/psz/tdir (pisa:/usr/users)
sh        13996      psz  cwd       DIR       0,15     4096    5800702 /pisa/users/amstaff/psz/tdir (pisa:/usr/users)
sh        13996      psz  255r      REG       0,15       40    5800712 /pisa/users/amstaff/psz/tdir/tscr (pisa:/usr/users)
sleep     13997      psz  cwd       DIR       0,15     4096    5800702 /pisa/users/amstaff/psz/tdir (pisa:/usr/users)
Mon Jan 15 08:12:46 EST 2007

Settings:

rome# grep psz /etc/passwd
psz:x:1001:1001:Paul Szabo:/users/amstaff/psz:/bin/bash
rome# ls -l /users/amstaff
lrwxrwxrwx  1 root root 19 Jan 19  2005 /users/amstaff -> /pisa/users/amstaff
rome# mount | grep pisa/users
pisa:/usr/users on /pisa/users type nfs (rw,bg,rsize=8192,wsize=8192,addr=129.78.69.136)

(pisa uses default root_squash in its /etc/exports).

Cheers,

Paul Szabo   psz@maths.usyd.edu.au   http://www.maths.usyd.edu.au/u/psz/
School of Mathematics and Statistics   University of Sydney    Australia


-- System Information:
Debian Release: 3.1
Architecture: i386 (i686)
Kernel: Linux 2.6.8-spm1.7
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)



Reply to: