OpenVZ Forum


Home » General » Support » *SOLVED* vzctl restart problem with gentoo ve
*SOLVED* vzctl restart problem with gentoo ve [message #14347] Mon, 25 June 2007 08:17 Go to next message
swindmill is currently offline  swindmill
Messages: 57
Registered: April 2007
Member
I have a gentoo VE that the VE owner recently made some changes to which seem to have broken my ability to vzctl restart the VE.

I have edited the /etc/init.d/halt.sh script to skip filesystem unmounting and remounting in read only which seems to fix my ability to initiate runlevel 6 from inside of the VE.

I have replaced /sbin/reboot with a script that touches /reboot and then executes /sbin/rebootvps (renamed /sbin/reboot).

Everything works fine from inside of the VE.

I can not, however, vzctl restart VEID. It eventually times out, and the VE is still running with one process (init).

I am able to vzctl stop VEID and then vzctl start VEID without issue.

I am also able to vzctl restart my multiple debian based VEs.

What exactly is vzctl restart doing to a VE? Does it run a command inside of the VE? Can I somehow log what it's actually doing in an attempt to troubleshoot the issue?

I am running vzctl version 3.0.16-5dso1 under 2.6.18-028stab035.1-ovz-smp

Thanks in advance.

[Updated on: Mon, 25 June 2007 09:28] by Moderator

Report message to a moderator

Re: vzctl restart problem with gentoo ve [message #14348 is a reply to message #14347] Mon, 25 June 2007 08:41 Go to previous messageGo to next message
Vasily Tarasov is currently offline  Vasily Tarasov
Messages: 1345
Registered: January 2006
Senior Member
on `vzctl restart`, vzctl calls `reboot` command
on `vzctl stop`, vzctl calls `halt` command

This is the difference. Try to run `reboot` in VE. Will this action stop the VE?

HTH,
Vasily.
Re: vzctl restart problem with gentoo ve [message #14349 is a reply to message #14348] Mon, 25 June 2007 09:27 Go to previous message
swindmill is currently offline  swindmill
Messages: 57
Registered: April 2007
Member
I found the problem to be caused by my renaming /sbin/reboot to /sbin/rebootvps and replacing /sbin/reboot with a script touching /reboot and executing /sbin/rebootvps

After I moved /sbin/rebootvps back to /sbin/reboot and edited the /etc/init.d/reboot.sh to point to /sbin/reboot I can now use vzctl restart successfully.

Thank you for your clarification.
Previous Topic: *SOLVED* How to find data transfer usage of VPS?
Next Topic: *SOLVED* question regarding sharing of libraries etc
Goto Forum:
  


Current Time: Fri Nov 15 16:33:37 GMT 2024

Total time taken to generate the page: 0.03242 seconds