Hello,
I'm coding a front-end for our company, and I stumbled across a very strange problem.
"vzctl stop" (and restart) hangs for 2 minutes exactly when executed, thing is. This only happens through "sudo", e.g "sudo /usr/sbin/vzctl stop 100". This problem does not occur through regular root-login.
But ofcourse, we have to use sudo for our project. Is there any resolution to this problem?
Template is a precreated one fetched from the wiki, running on an 64bit machine, "debian-5.0-x86_64.tar.gz".
Using strace, I can see that the following code is repeating over and over:
04:55:44.954194 rt_sigprocmask(SIG_SETMASK, [], NULL, = 0
04:55:44.954259 ioctl(4, 0x400c2e05, 0x7fff65e26e70) = 0
04:55:44.954315 rt_sigprocmask(SIG_BLOCK, [CHLD], [], = 0
04:55:44.954360 rt_sigaction(SIGCHLD, NULL, {SIG_IGN, [], SA_RESTORER|SA_NOCLDSTOP, 0x3834a30280}, = 0
04:55:44.954409 nanosleep({1, 0}, {1, 0}) = 0
04:55:45.955141 rt_sigprocmask(SIG_SETMASK, [], NULL, = 0
04:55:45.955204 ioctl(4, 0x400c2e05, 0x7fff65e26e70) = 0
04:55:45.955253 rt_sigprocmask(SIG_BLOCK, [CHLD], [], = 0
04:55:45.955304 rt_sigaction(SIGCHLD, NULL, {SIG_IGN, [], SA_RESTORER|SA_NOCLDSTOP, 0x3834a30280}, = 0
04:55:45.955354 nanosleep({1, 0}, {1, 0}) = 0
04:55:46.956110 rt_sigprocmask(SIG_SETMASK, [], NULL, = 0
04:55:46.956171 ioctl(4, 0x400c2e05, 0x7fff65e26e70) = 0
04:55:46.956214 rt_sigprocmask(SIG_BLOCK, [CHLD], [], = 0
04:55:46.956255 rt_sigaction(SIGCHLD, NULL, {SIG_IGN, [], SA_RESTORER|SA_NOCLDSTOP, 0x3834a30280}, = 0
04:55:46.956298 nanosleep({1, 0}, {1, 0}) = 0
Any help would really be appreciated!
Thanks
UPDATE: This seems to be related to the provided debian/ubuntu templates. Centos-5-x86_64.tar.gz template does not freeze. Reboot takes 9-10 seconds.
[Updated on: Sat, 11 July 2009 03:43] Report message to a moderator
|