Here's the 'strace -f' which might be more useful than the plain strace originally attached. Oliver Am Donnerstag, 29. Juli 2010 13:45:43 schrieb Oliver Heinz: > Am Donnerstag, 29. Juli 2010 13:27:09 schrieb Steven Whitehouse: > > Hi, > > > > On Thu, 2010-07-29 at 12:52 +0200, Oliver Heinz wrote: > > > Hi, > > > > > > I'm trying to get a pacemaker/gfs2 setup working. Everything works good > > > so far, but when applications try to do locks on the shared gfs2 > > > volumes I get "function not implemented". > > > > > > > > > For testing purposes I used the locktest script here: > > > http://nfsv4.bullopensource.org/tools/tests/locktest.php > > > > Was it trying to do mandatory locking? We don't support that. Can you > > strace the failing process and also show the exact error message that > > you are getting? > > That's what I get: > > root@server-c:~# ./locktests -n 2 -f /srv/data/shared/locktest > Init > process initalization > .... > -------------------------------------- > > TEST : TRY TO WRITE ON A READ LOCK:Master: can't set lock > > : Function not implemented > > Echec > > : Function not implemented > > strace output is attached. > > > The real world problem I'm facing is when I try to start vservers that > reside on the gfs2 Filesystem, strace output is also attached. > > root@server-c:~# vserver -v testshared start > secure-mount: lockf(): Function not implemented > Failed to update mtab-file > secure-mount: lockf(): Function not implemented > Failed to update mtab-file > secure-mount: lockf(): Function not implemented > Failed to update mtab-file > > > > > TIA, > Oliver
execve("./locktests", ["./locktests", "-n", "2", "-f", "/srv/data/shared/locktest"], [/* 16 vars */]) = 0 brk(0) = 0x6034d8 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f3eedef5000 access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory) open("/etc/ld.so.cache", O_RDONLY) = 3 fstat(3, {st_mode=S_IFREG|0644, st_size=21068, ...}) = 0 mmap(NULL, 21068, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f3eedeef000 close(3) = 0 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) open("/lib/libpthread.so.0", O_RDONLY) = 3 read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\340Y\0\0\0\0\0\0"..., 832) = 832 fstat(3, {st_mode=S_IFREG|0755, st_size=131260, ...}) = 0 mmap(NULL, 2208640, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f3eedabe000 mprotect(0x7f3eedad5000, 2093056, PROT_NONE) = 0 mmap(0x7f3eedcd4000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x16000) = 0x7f3eedcd4000 mmap(0x7f3eedcd6000, 13184, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f3eedcd6000 close(3) = 0 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) open("/lib/libc.so.6", O_RDONLY) = 3 read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0`\355\1\0\0\0\0\0"..., 832) = 832 fstat(3, {st_mode=S_IFREG|0755, st_size=1432968, ...}) = 0 mmap(NULL, 3541032, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f3eed75d000 mprotect(0x7f3eed8b5000, 2093056, PROT_NONE) = 0 mmap(0x7f3eedab4000, 20480, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x157000) = 0x7f3eedab4000 mmap(0x7f3eedab9000, 18472, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f3eedab9000 close(3) = 0 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f3eedeee000 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f3eedeed000 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f3eedeec000 arch_prctl(ARCH_SET_FS, 0x7f3eedeed700) = 0 mprotect(0x7f3eedab4000, 16384, PROT_READ) = 0 mprotect(0x7f3eedcd4000, 4096, PROT_READ) = 0 mprotect(0x7f3eedef7000, 4096, PROT_READ) = 0 munmap(0x7f3eedeef000, 21068) = 0 set_tid_address(0x7f3eedeed9d0) = 14628 set_robust_list(0x7f3eedeed9e0, 0x18) = 0 futex(0x7fff5fd07b7c, FUTEX_WAKE_PRIVATE, 1) = 0 futex(0x7fff5fd07b7c, FUTEX_WAIT_BITSET_PRIVATE|FUTEX_CLOCK_REALTIME, 1, NULL, 7f3eedeed700) = -1 EAGAIN (Resource temporarily unavailable) rt_sigaction(SIGRTMIN, {0x7f3eedac3860, [], SA_RESTORER|SA_SIGINFO, 0x7f3eedaccf60}, NULL, 8) = 0 rt_sigaction(SIGRT_1, {0x7f3eedac38f0, [], SA_RESTORER|SA_RESTART|SA_SIGINFO, 0x7f3eedaccf60}, NULL, 8) = 0 rt_sigprocmask(SIG_UNBLOCK, [RTMIN RT_1], NULL, 8) = 0 getrlimit(RLIMIT_STACK, {rlim_cur=8192*1024, rlim_max=RLIM_INFINITY}) = 0 fstat(1, {st_mode=S_IFREG|0600, st_size=3104, ...}) = 0 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f3eedef4000 brk(0) = 0x6034d8 brk(0x6244d8) = 0x6244d8 brk(0x625000) = 0x625000 pipe([3, 4]) = 0 pipe([5, 6]) = 0 write(0, ".", 1) = 1 clone(Process 14629 attached child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x7f3eedeed9d0) = 14629 [pid 14628] pipe([7, 8]) = 0 [pid 14629] write(0, ".", 1 <unfinished ...> [pid 14628] write(0, ".", 1 <unfinished ...> [pid 14629] <... write resumed> ) = 1 [pid 14628] <... write resumed> ) = 1 [pid 14628] clone( <unfinished ...> [pid 14629] read(5, Process 14630 attached (waiting for parent) Process 14630 resumed (parent 14628 ready) <unfinished ...> [pid 14628] <... clone resumed> child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x7f3eedeed9d0) = 14630 [pid 14630] write(0, ".", 1 <unfinished ...> [pid 14628] open("/srv/data/shared/locktest", O_RDWR|O_CREAT|O_SYNC, 0600 <unfinished ...> [pid 14630] <... write resumed> ) = 1 [pid 14628] <... open resumed> ) = 9 [pid 14630] read(7, <unfinished ...> [pid 14628] write(0, "TEST : TRY TO WRITE ON A READ L"..., 36) = 36 [pid 14628] write(9, "Ceci est une phrase test \303\251crite"..., 62) = 62 [pid 14628] fcntl(9, F_SETLK, {type=F_RDLCK, whence=SEEK_SET, start=0, len=0}) = -1 ENOSYS (Function not implemented) [pid 14628] dup(2) = 10 [pid 14628] fcntl(10, F_GETFL) = 0x8401 (flags O_WRONLY|O_APPEND|O_LARGEFILE) [pid 14628] close(10) = 0 [pid 14628] write(2, "Master: can't set lock\n: Functio"..., 50Master: can't set lock : Function not implemented ) = 50 [pid 14628] write(2, "Echec\n: Invalid argument\n", 25Echec : Invalid argument ) = 25 [pid 14628] write(1, "Init\nprocess initalization\n\n----"..., 68Init process initalization -------------------------------------- ) = 68 [pid 14628] exit_group(0) = ? Process 14629 detached Process 14630 detached
-- Linux-cluster mailing list Linux-cluster@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/linux-cluster