NFS problem with cloned hard disks



I have a computer that is attached to my network, and works just fine. I
cloned the hard disk, and installed this on a second computer, changing
the hostname and IP address. This to is on the network. I can telnet it,
and it can ping other stations, etc.

However, when I try to start the NFS client process using:

/etc/init.d/nfs start

I get an error as follows:

statd: Could not chdir: No such file or directory

I did a system trace, and have tracked this down to a difference in
behaviour between the first and second machine.

The system traces are identical up to a certain point.

Here is a section of the trace from the first (working) machine:

access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or
directory)
open("/etc/ld.so.cache", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=25907, ...}) = 0
mmap2(NULL, 25907, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7fda000
close(3) = 0
open("/lib/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\0@a\1\0004\0\0\0"...,
512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=1192036, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0xb7fd9000
mmap2(NULL, 1197520, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3,
0) = 0xb7eb4000
mmap2(0xb7fd3000, 12288, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x11f) = 0xb7fd3000
mmap2(0xb7fd6000, 9680, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7fd6000
close(3) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0xb7eb3000
set_thread_area({entry_number:-1 -> 6, base_addr:0xb7eb36c0,
limit:1048575, seg_32bit:1, contents:0, read_exec_only:0,
limit_in_pages:1, seg_not_present:0, useable:1}) = 0
mprotect(0xb7fd3000, 8192, PROT_READ) = 0
mprotect(0x8050000, 4096, PROT_READ) = 0
mprotect(0xb7ffb000, 4096, PROT_READ) = 0
munmap(0xb7fda000, 25907) = 0
getrlimit(RLIMIT_NOFILE, {rlim_cur=1024, rlim_max=1024}) = 0
pipe([3, 4]) = 0
clone(child_stack=0,
flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD,
child_tidptr=0xb7eb3708) = 2953
close(4) = 0
read(3, "\0", 1) = 1
exit_group(0) = ?

On the second machine, I get:

open("/lib/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\0@a\1\0004\0\0\0"...,
512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=1192036, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0xb7fc9000
mmap2(NULL, 1197520, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3,
0) = 0xb7ea4000
mmap2(0xb7fc3000, 12288, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x11f) = 0xb7fc3000
mmap2(0xb7fc6000, 9680, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7fc6000
close(3) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0xb7ea3000
set_thread_area({entry_number:-1 -> 6, base_addr:0xb7ea36c0,
limit:1048575, seg_32bit:1, contents:0, read_exec_only:0,
limit_in_pages:1, seg_not_present:0, useable:1}) = 0
mprotect(0xb7fc3000, 8192, PROT_READ) = 0
mprotect(0x8050000, 4096, PROT_READ) = 0
mprotect(0xb7feb000, 4096, PROT_READ) = 0
munmap(0xb7fca000, 25907) = 0
getrlimit(RLIMIT_NOFILE, {rlim_cur=1024, rlim_max=1024}) = 0
pipe([3, 4]) = 0
clone(statd: Could not chdir: No such file or directory
child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD,
child_tidptr=0xb7ea3708) = 3250
--- SIGCHLD (Child exited) @ 0 (0) ---
close(4) = 0
read(3, "", 1) = 0
exit_group(1) = ?

Notice that the clone call gives an error on the second machine.

What directory is is trying to chdir to?

This is a Gentoo based system initially built from stage 1.

Mark.

--
Mark Hobley,
393 Quinton Road West,
Quinton, BIRMINGHAM.
B32 1QE.
.



Relevant Pages

  • Login with valid password denied
    ... shell prompt, or attach the drive to a second computer to ... router but not setup as part of any domain. ... drive on a second machine? ...
    (microsoft.public.win2000.cmdprompt.admin)
  • explorer.exe using memory uncontrollably
    ... >I was having trouble setting up internet connection ... second machine). ... Pretty sure that I didn't need the network ... out of virtual memory and crashed. ...
    (microsoft.public.windowsxp.help_and_support)
  • RE: VPN and ISA server
    ... put a second machine on the network border - with 2 Network cards in it. ... build your tunnels to that machine. ... SurfControl E-mail Filter for SMTP & Exchange leverages multiple layers ...
    (Focus-Microsoft)
  • Re: connect to bastion host via WMI
    ... > Still no dice on the second machine. ... As next, this type of serverconfiguring is so restirctivly, that you have ... eventually setted a adminconnect via network to "Disabled". ... that a lot of groups/users to this user rights and ...
    (microsoft.public.win32.programmer.wmi)
  • Re: iTunes w/Remote Music
    ... hosted on a second machine. ... There isn't a caching option but tracked it down to the Network ... increase the buffer useful if you start chucking files about the ...
    (uk.comp.sys.mac)