NFS problem with cloned hard disks
- From: markhobley@xxxxxxxxxxxxxxxxxxxxxxxxxxx (Mark Hobley)
- Date: Tue, 30 Sep 2008 05:29:30 +0100
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.
.
- Follow-Ups:
- Re: NFS problem with cloned hard disks
- From: Maxwell Lol
- Re: NFS problem with cloned hard disks
- Prev by Date: Re: Weird problem, only one port, 80, is blocked.
- Next by Date: Re: Weird problem, only one port, 80, is blocked.
- Previous by thread: firewall outgoing mail
- Next by thread: Re: NFS problem with cloned hard disks
- Index(es):
Relevant Pages
|