Ubuntu 7.10 & 8.04 fail to reboot or shutdown [message #30599] |
Thu, 29 May 2008 20:00  |
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 #30638 is a reply to message #30621] |
Fri, 30 May 2008 14:02   |
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 #30702 is a reply to message #30700] |
Wed, 04 June 2008 10:13   |
ByteBeam
Messages: 4 Registered: May 2008
|
Junior Member |
|
|
No problem my friend 
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 ...
|
|
|
|
|
|
|