OpenVZ Forum


Home » General » Support » Ubuntu 7.10 & 8.04 fail to reboot or shutdown
Ubuntu 7.10 & 8.04 fail to reboot or shutdown [message #30599] Thu, 29 May 2008 20:00 Go to next message
ByteBeam is currently offline  ByteBeam
Messages: 4
Registered: May 2008
Junior Member
I've installed OpenVZ on Ubuntu 7.10 & 8.04 using fzakernel-2.6.18-686 for testing purposes (I'm not very versed in Linux).

I've setup two VE's, one running a LAMP (VE 101), and one SAMBA (VE 102). Everything runs just fine until I issue either a reboot, shutdown or poweroff, in which case only the VE with the highest numeric ID is stopped.

Issuing a "vzlist --all" tells me that SAMBA is unmounted, while LAMP is running. If I stop manually the VE's before issuing a reboot, shutdown or poweroff, then the system acts as expected.

The behavior is exactly the same on both distros. The machine is an IBM x345 8670-31X with 1 GB ram, Xeon 2.4 Ghz and two SCSI 36Gb disks in RAID1 config. I've also tried ubuntu distros + various OpenVZ kernels on noname servers and the behavior is exactly the same.

Hence I've written a tiny scripts which stop all the running VE's that I call manually before issuing a reboot, shutdown or poweroff. But I'm just concerned if the problem could leave anything related to the VE's or the filesystem in an inconsistent state for the times an operator would forget to manually stop the VE's.

Is this behavior something I should worry about ?
Re: Ubuntu 7.10 & 8.04 fail to reboot or shutdown [message #30621 is a reply to message #30599] Fri, 30 May 2008 10:44 Go to previous messageGo to next message
maratrus is currently offline  maratrus
Messages: 1495
Registered: August 2007
Location: Moscow
Senior Member
Hi,

could you please answer some questions:

1.
Quote:


until I issue either a reboot, shutdown or poweroff


I didn't catch if you issue this command inside VE or inside HN?

2.
Quote:


If I stop manually the VE's before issuing a reboot, shutdown or poweroff, then the system acts as expected.



What does it mean?
At first, "vzctl stop VE_ID" and then "reboot" on the HN?

3. If it's possible could you please provide us with the commands output to clarify the situation. Thank You very much.
Re: Ubuntu 7.10 & 8.04 fail to reboot or shutdown [message #30638 is a reply to message #30621] Fri, 30 May 2008 14:02 Go to previous messageGo to next message
ByteBeam is currently offline  ByteBeam
Messages: 4
Registered: May 2008
Junior Member
> At first, "vzctl stop VE_ID" and then "reboot" on the HN?

Correct, all the commands are issued on the HN.

Concerning the output, it's quite difficult for me to provide anything meaningful since the reboot, shutdown or poweroff procedure appears simply to stop without printing out any error message if I don't stop the VE's manually before calling these commands.

[Updated on: Fri, 30 May 2008 14:04]

Report message to a moderator

Re: Ubuntu 7.10 & 8.04 fail to reboot or shutdown [message #30700 is a reply to message #30638] Wed, 04 June 2008 09:25 Go to previous messageGo to next message
maratrus is currently offline  maratrus
Messages: 1495
Registered: August 2007
Location: Moscow
Senior Member
I haven't still understand you.
Let's assume you have typed "reboot" on your HN. How do you know that
Quote:


only the VE with the highest numeric ID is stopped.



Quote:


Issuing a "vzlist --all" tells me that SAMBA is unmounted, while LAMP is running.


In what moment do you execute that commands? After reboot?
Sorry for my stupidity but I really cannot catch you. Thank You for the patient.
Re: Ubuntu 7.10 & 8.04 fail to reboot or shutdown [message #30702 is a reply to message #30700] Wed, 04 June 2008 10:13 Go to previous messageGo to next message
ByteBeam is currently offline  ByteBeam
Messages: 4
Registered: May 2008
Junior Member
No problem my friend Wink

It goes like that:

I've a hardware node running Ubuntu 8.04 & OpenVZ. I've created two VE's and both run perfectly fine:

VE 101 is a LAMP+SSH server based on Ubuntu 7.1
VE 102 is a SAMBA+SSH server based on Ubuntu 7.1

Without having any shell open in the VE's, when I issue a poweroff, shutdown or reboot on the hardware node, the display prints that the system will shutdown, reboot or poweroff, but later on NOTHING happens.

When I check afterwards "vzlist --all", I can see that VE 102 is stopped, but not VE 101 which is still running.

If instead I stop manually the VE's with "vzctl stop 101 && vzctl stop 102" and wait until both VE's are stopped BEFORE issuing either a reboot, shutdown or poweroff on the HN, then everything works fine: the systems reboots, shutdown or poweroff.

It looks like if the reboot/shutdown/poweroff start to run, bring VE 102 down correctly, but then is unable to stop VE 101, and remain idle.

When this happen, if I issue "vzctl stop 101", then I can reboot/shutdown/poweroff without problems.

I've tried this on two complete different machines, using different OpenVZ kernels, and used both Ubuntu 7.1 & 8.04 for the HN, and used exactly the same VE's. Still the same behavior. I'm wondering if there might be something wrong on the VE 101 which prevents the HN to shut it down, but it does not make sense since I've no problem stopping that VE 101 down with a vzctl command Confused ...

Re: Ubuntu 7.10 & 8.04 fail to reboot or shutdown [message #30703 is a reply to message #30702] Wed, 04 June 2008 10:43 Go to previous messageGo to next message
maratrus is currently offline  maratrus
Messages: 1495
Registered: August 2007
Location: Moscow
Senior Member
Hi,

Is "/etc/init.d/vz stop" stops both of your VEs?
Re: Ubuntu 7.10 & 8.04 fail to reboot or shutdown [message #30745 is a reply to message #30703] Thu, 05 June 2008 17:46 Go to previous messageGo to next message
ByteBeam is currently offline  ByteBeam
Messages: 4
Registered: May 2008
Junior Member
Yes, it correctly stops both VE's. What is interesting is that it start first to shut down VE 102, and then VE 101.

Is it possible that the OS is doing something in parallel which would interfere with shutting down the second VE ?
Re: Ubuntu 7.10 & 8.04 fail to reboot or shutdown [message #30752 is a reply to message #30745] Fri, 06 June 2008 07:22 Go to previous messageGo to next message
maratrus is currently offline  maratrus
Messages: 1495
Registered: August 2007
Location: Moscow
Senior Member
Hi,

Quote:


it start first to shut down VE 102, and then VE 101.



I guess it looks through /proc/vz/vestat.

Ok, if somebody stops one of your VE then I guess /etc/init.d/vz scripts starts working but why it doesn't stop the second one... Have you any chance to investigate deeply?
There is stop_ves() function in /etc/init.d/vz script. Could you possibly put any debug messages there to make sure that it tries to stop your VEs.
It would be useful to find out the values of the appropriate variables there.
There are several ways to do that:
we can use either simple "echo" function or "set -x"
Here is the command that should stop your VEs:
$VZCTL --skiplock stop $veid >/dev/null 2>&1 &

For example, we can don't redirect its output to dev/null
Anyway any information would be very appreciated.
Re: Ubuntu 7.10 & 8.04 fail to reboot or shutdown [message #31820 is a reply to message #30745] Thu, 10 July 2008 12:27 Go to previous message
dboucard is currently offline  dboucard
Messages: 3
Registered: July 2008
Location: Evry
Junior Member

Hello,

Do you have any logs ? (typically in /var/log/vzctl.log)
Previous Topic: cPanel + OpenVZ ?
Next Topic: iptables help please
Goto Forum:
  


Current Time: Mon Aug 04 09:01:53 GMT 2025

Total time taken to generate the page: 1.18266 seconds