> > Can you try running strace and paste the output? That error could be
> coming from several different places within
> update_file().
> 
> Thanks for the reply Nick. Below is the strace of running the 
> vadddomain
> command.
> 
> 
> execve("/home/vpopmail/bin/vadddomain",
> ["/home/vpopmail/bin/vadddomain", "domain5.com", "password"], [/* 20
> vars */]) = 0
> uname({sys="Linux", node="manage.readyhosting.com", ...}) = 0
> brk(0)                                  = 0x8350000
> open("/etc/ld.so.preload", O_RDONLY)    = -1 ENOENT (No such file or
<snip unimportant strace output>
> rt_sigaction(SIGCHLD, NULL, {SIG_DFL}, 8) = 0
> rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
> nanosleep({2, 0}, {2, 0})               = 0
> fcntl64(5, F_SETLK, {type=F_WRLCK, whence=SEEK_SET, start=0, len=0}) =
> -1 ENOLCK (No locks available)
> rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
> rt_sigaction(SIGCHLD, NULL, {SIG_DFL}, 8) = 0
> rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
> nanosleep({2, 0}, {2, 0})               = 0
> fcntl64(5, F_SETLK, {type=F_WRLCK, whence=SEEK_SET, start=0, len=0}) =
> -1 ENOLCK (No locks available)
> rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
> rt_sigaction(SIGCHLD, NULL, {SIG_DFL}, 8) = 0
> rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
> nanosleep({2, 0}, {2, 0})               = 0
> fcntl64(5, F_SETLK, {type=F_WRLCK, whence=SEEK_SET, start=0, len=0}) =
> -1 ENOLCK (No locks available)
> rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
> rt_sigaction(SIGCHLD, NULL, {SIG_DFL}, 8) = 0
> rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
> nanosleep({2, 0}, {2, 0})               = 0
> fcntl64(5, F_SETLK, {type=F_WRLCK, whence=SEEK_SET, start=0, len=0}) =
> -1 ENOLCK (No locks available)
> rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
> rt_sigaction(SIGCHLD, NULL, {SIG_DFL}, 8) = 0
> rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
> nanosleep({2, 0}, {2, 0})               = 0
> fcntl64(5, F_SETLK, {type=F_WRLCK, whence=SEEK_SET, start=0, len=0}) =
> -1 ENOLCK (No locks available)
> rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
> rt_sigaction(SIGCHLD, NULL, {SIG_DFL}, 8) = 0
> rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
> nanosleep({2, 0}, {2, 0})               = 0
> fcntl64(5, F_SETLK, {type=F_WRLCK, whence=SEEK_SET, start=0, len=0}) =
> -1 ENOLCK (No locks available)
> write(2, "File busy try again later!\n", 27) = 27
> write(2, "Failed while attempting to updat"..., 57) = 57
> chdir("/home/vpopmail")                 = 0
The problem is definitely acquiring the lock. Have you restarted nfs and 
nfs-locking on both sides post power outage? This is almost definitely a 
straight-forward NFS locking issue.
Hope that helps,
Nick

Reply via email to