Sorry I have found the Bug:
* http://bugzilla.openvz.org/show_bug.cgi?id=881
Is there any workaround?
divB
/EDIT: Not the elegant way, but I resolved it this way:
--- /usr/sbin/vzmigrate 2009-07-06 16:41:51.000000000 +0200
+++ /usr/local/sbin/vzmigrate2 2009-07-08 01:17:45.000000000 +0200
@@ -446,6 +446,9 @@
if [ $online -eq 1 ]; then
log 1 "Live migrating VE"
+ log 1 "Stop apache2 if it is installed"
+ vzctl exec $VEID '[ -f /etc/init.d/apache2 ] && /etc/init.d/apache2 stop'
+
log 2 "Suspending VE"
time_suspend=$(date +%s.%N)
if ! logexec 2 vzctl chkpnt $VEID --suspend ; then
@@ -560,6 +563,9 @@
log 2 "Removing dumpfiles"
rm -f "$VE_DUMPFILE"
$SSH "root@$host" "rm -f $VE_DUMPFILE"
+
+ log 1 "Start apache2 again if it is installed"
+ $SSH root@$host vzctl exec $VEID "'[ -f /etc/init.d/apache2 ] && /etc/init.d/apache2 start'"
else
if [ "$state" = "running" ]; then
log 1 "Starting VE"
divB
[Updated on: Sat, 09 May 2009 22:02]
Report message to a moderator