Hi,

I'm trying to use the "rpc.statd --name" option but it doesn't appear
to work. I need to specify the name of my cluster hostname, not that
of the node(gethostname).

I've modified the startup portion of rpc.statd in /etc/init.d/nfslock
to:

daemon "rpc.statd -n cluster-nfs"

Pertinent info:
Red Hat 7.3
nfs-utils-0.3.3-6.73

strace output:

[root@nfsnode1 root]# strace rpc.statd --name cluster-nfs
execve("/sbin/rpc.statd", ["rpc.statd", "--name", "cluster-nfs"], [/*
27 vars */]) = 0
uname({sys="Linux", node="nfsnode1.edusoftbeta.com", ...}) = 0
brk(0) = 0x804faa8
open("/etc/ld.so.preload", O_RDONLY) = -1 ENOENT (No such file or
directory)
open("/etc/ld.so.cache", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=117730, ...}) = 0
old_mmap(NULL, 117730, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40014000
close(3) = 0
open("/lib/libnsl.so.1", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0`:\ 0\000"...,
1024) = 1024
fstat64(3, {st_mode=S_IFREG|0755, st_size=89424, ...}) = 0
old_mmap(NULL, 84636, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) =
0x40031000
mprotect(0x40043000, 10908, PROT_NONE) = 0
old_mmap(0x40043000, 4096, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED, 3, 0x12000) = 0x40043000
old_mmap(0x40044000, 6812, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x40044000
close(3) = 0
open("/lib/i686/libc.so.6", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0Pv\ 1B4\0"...,
1024) = 1024
fstat64(3, {st_mode=S_IFREG|0755, st_size=1402035, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS,
-1, 0) = 0x40046000
old_mmap(0x42000000, 1264960, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0)
= 0x42000000
mprotect(0x4212c000, 36160, PROT_NONE) = 0
old_mmap(0x4212c000, 20480, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED, 3, 0x12c000) = 0x4212c000
old_mmap(0x42131000, 15680, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x42131000
close(3) = 0
munmap(0x40014000, 117730) = 0
brk(0) = 0x804faa8
brk(0x804fad8) = 0x804fad8
brk(0x8050000) = 0x8050000
fork() = 2029
_exit(0) = ?


Cheers,
Eddy