Skip to contentSkip to conversation

cat /proc/fs/nfs/exports hangs

DISCUSSION Richard Ems 2 participants 2 messages Sep 2, 2003 – Sep 4, 2003

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Hi all!

This is a dual Athlon system with SuSE 8.2.
Kernel is SuSE's k_smp-2.4.21-4.

After 32 days of uptime nfs exports stopped working.
While trying to restart the nfs server them I found that running "rcnfsserver restart" hangs on exportfs (process ind D state)

Also a simple "cat /proc/fs/nfs/exports" hangs (process in D state).

The last lines from "strace cat /proc/fs/nfs/exports" show:

munmap(0x40016000, 59621) = 0
open("/usr/lib/locale/locale-archive", O_RDONLY|O_LARGEFILE) = 3 fstat64(3, {st_mode=S_IFREG|0644, st_size=32058672, ...}) = 0 mmap2(NULL, 2097152, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40158000

close(3)                                = 0
brk(0)                                  = 0x804c68c
brk(0x804d68c)                          = 0x804d68c
brk(0)                                  = 0x804d68c
brk(0x804e000)                          = 0x804e000

fstat64(1, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 2), ...}) = 0 open("/proc/fs/nfs/exports", O_RDONLY|O_LARGEFILE) = 3 fstat64(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0 read(3, <unfinished ...>

Here the process hangs.

What's happening? The nfs server was running for 32 days and suddenly this!

Thanks, Richard

Signature · 16 lines
   Richard Ems
   ... e-mail: [email protected]
   ... Computer Science, University of Hamburg

   "Do or do not. There is no try" - Yoda
   Yoda never programmed in Java.



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
NFS maillist  -  [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs
#1 lore raw
Quoted 22 lines · On 2 Sep 2003 Richard Ems <[email protected]> wrote:

Hi all!

This is a dual Athlon system with SuSE 8.2.
Kernel is SuSE's k_smp-2.4.21-4.

After 32 days of uptime nfs exports stopped working. While trying to restart the nfs server them I found that running "rcnfsserver restart" hangs on exportfs (process ind D state)

Also a simple "cat /proc/fs/nfs/exports" hangs (process in D state).

The last lines from "strace cat /proc/fs/nfs/exports" show:

munmap(0x40016000, 59621) = 0
open("/usr/lib/locale/locale-archive", O_RDONLY|O_LARGEFILE) = 3 fstat64(3, {st_mode=S_IFREG|0644, st_size=32058672, ...}) = 0 mmap2(NULL, 2097152, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40158000

close(3)                                = 0
brk(0)                                  = 0x804c68c
brk(0x804d68c)                          = 0x804d68c
brk(0)                                  = 0x804d68c
brk(0x804e000)                          = 0x804e000
Quoted 4 lines

fstat64(1, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 2), ...}) = 0 open("/proc/fs/nfs/exports", O_RDONLY|O_LARGEFILE) = 3 fstat64(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0 read(3, <unfinished ...>

I don't know the answer, but you can get some more potentially interesting information by looking at the wait channel of cat and of other relevant processes.

  # ps axo pid,cmd,wchan
Signature · 10 lines
Martin 


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
NFS maillist  -  [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs