OpenVZ Forum


Home » General » Support » *KNOWN ISSUE* Failed to dump VE on 028stab033 kernel
*KNOWN ISSUE* Failed to dump VE on 028stab033 kernel [message #13675] Fri, 01 June 2007 15:15 Go to next message
goeldi
Messages: 92
Registered: June 2006
Member
I tried again to vzmigrate online between 2 hn:

On both HN runs 2.6.18-ovz028stab033.1-smp

This is what happened:

# nice vzmigrate -r no --online -v 195.141.118.235 343
OPT:-r
OPT:--online
OPT:-v
OPT:195.141.118.235
Starting online migration of VE 343 on 195.141.118.235
OpenVZ is running...
Loading /etc/vz/vz.conf and /etc/vz/conf/343.conf files
Check IPs on destination node: 195.141.143.43
Preparing remote node
Copying config file
343.conf 100% 1378 1.4KB/s 00:00
Saved parameters for VE 343
Creating remote VE root dir
Creating remote VE private dir
Initializing remote quota
Quota init
vzquota : (warning) Quota file exists, it will be overwritten
Turning remote quota on
Syncing private
Live migrating VE
Suspending VE
Setting up checkpoint...
suspend...
get context...
Checkpointing completed succesfully
Dumping VE
Setting up checkpoint...
join context..
dump...
Can not dump VE: Invalid argument
iptables-save exited with 16180
Checkpointing failed
Error: Failed to dump VE
Resuming...

[Updated on: Mon, 04 June 2007 06:34] by Moderator

Report message to a moderator

Re: Failed to dump VE [message #13696 is a reply to message #13675] Mon, 04 June 2007 06:33 Go to previous messageGo to next message
Vasily Tarasov is currently offline  Vasily Tarasov
Messages: 1345
Registered: January 2006
Senior Member
Hello,

It's a known issue: on 028stab033 checkpointing is broken! Sad It's fixed in git already with the following patch:
http://git.openvz.org/?p=linux-2.6.18-openvz;a=commit;h=650723f83a8685111fb3dee7073454861c446193
So, in order to use checkpointing you can:
1) use 031 kernel before 034 is released
2) compile fresh kernel from git

Sorry for inconvenience!

Vasily.
Re: Failed to dump VE [message #13703 is a reply to message #13696] Mon, 04 June 2007 07:06 Go to previous messageGo to next message
goeldi
Messages: 92
Registered: June 2006
Member
Thank you. Unfortunately with 031 I have a massive I/O problem Sad
Re: Failed to dump VE [message #13704 is a reply to message #13703] Mon, 04 June 2007 07:09 Go to previous messageGo to next message
Vasily Tarasov is currently offline  Vasily Tarasov
Messages: 1345
Registered: January 2006
Senior Member
Yes, it's really a bad situation... Crying or Very Sad Sorry.
Re: Failed to dump VE [message #13810 is a reply to message #13696] Wed, 06 June 2007 09:11 Go to previous messageGo to next message
hernad is currently offline  hernad
Messages: 14
Registered: June 2007
Location: Bosnia and Herzegovina
Junior Member
I have built the newest kernel from git to fix this issue.
I am using ubuntu feisty, making packages with:

~/openvz/linux-2.6.18-openvz-033-b$ make-kpkg -initrd linux_image linux_headers --rootcmd fakeroot

Trying to boot new kernel, I'm getting boot error:

init_premount / udev 21
cannot create /proc/sys/kernel/hotplug ... operation not permited

After some time, I am getting boot prompt
(initramfs) ....

and message:
cannot find: /dev/mapper/Ubuntu-root

System obviously cannot find my SATA disk and LVM volumes.

I have used the same procedure and same .config to build kernel packages stable033 and stable031, and I had no problems.

Regards,
Ernad
Re: Failed to dump VE [message #13812 is a reply to message #13810] Wed, 06 June 2007 09:54 Go to previous messageGo to next message
Vasily Tarasov is currently offline  Vasily Tarasov
Messages: 1345
Registered: January 2006
Senior Member
Can you detect who and when does produce the message
"init_premount / udev 21
cannot create /proc/sys/kernel/hotplug ... operation not permitted"
Is it initrd? Or init already?
I can say you it if you post here the full log of kernel boot...

Thank you,
Vasily.
Re: Failed to dump VE [message #13819 is a reply to message #13812] Wed, 06 June 2007 10:48 Go to previous messageGo to next message
hernad is currently offline  hernad
Messages: 14
Registered: June 2007
Location: Bosnia and Herzegovina
Junior Member
It is initrd script.

Here is the script:

hernad@desk-h8:~/openvz/temp$ gzip -dc /boot/initrd.img-2.6.18-033-b | cpio -id
22897 blocks

hernad@desk-h8:~/openvz/temp$ cat scripts/init-premount/udev
#!/bin/sh -e
# initramfs premount script for udev

PREREQ=""

# Output pre-requisites
prereqs()
{
echo "$PREREQ"
}

case "$1" in
prereqs)
prereqs
exit 0
;;
esac


# It's all over netlink now
echo "" > /proc/sys/kernel/hotplug <<<< LINE 21

# Start the udev daemon to process events
/sbin/udevd --daemon

# Iterate sysfs and fire off everything; if we include a rule for it then
# it'll get handled; otherwise it'll get handled later when we do this again
# in the main boot sequence.
/sbin/udevtrigger

--------

I have checked, thre is no difference between initrd.img of this 033-HEAD, stab033 i stab031 kernel.

I don't know how to provide you log of initrd process.
System cannot acces root file system (/dev/mapper/Ubuntu-root).

Thank you.

Re: /proc entries can't be modified ! (was: Failed to dump VE) [message #13820 is a reply to message #13810] Wed, 06 June 2007 10:54 Go to previous messageGo to next message
curx
Messages: 739
Registered: February 2006
Location: Nürnberg, Germany
Senior Member

Hi,

it's a know issue, please check:
http://bugzilla.openvz.org/show_bug.cgi?id=604

Re: Failed to dump VE [message #13822 is a reply to message #13819] Wed, 06 June 2007 10:59 Go to previous messageGo to next message
Vasily Tarasov is currently offline  Vasily Tarasov
Messages: 1345
Registered: January 2006
Senior Member
Ouch!... Now I get the problem. The following patch from git:
http://git.openvz.org/?p=linux-2.6.18-openvz;a=commitdiff;h= 438dfab37c427b0ec6e35cc4898f240c84367c57
breaks the kernel: nobody can't write to /proc! Smile It's already fixed: http://bugzilla.openvz.org/show_bug.cgi?id=604. Please, get the patch from the bug report and compile the kernel with it.

Sorry for inconvenience,
Vasily
Re: /proc entries can't be modified ! (was: Failed to dump VE) [message #13824 is a reply to message #13820] Wed, 06 June 2007 11:06 Go to previous messageGo to next message
hernad is currently offline  hernad
Messages: 14
Registered: June 2007
Location: Bosnia and Herzegovina
Junior Member
Hm, It seems this patch is already applied to my source ?!


hernad@desk-h8:~/openvz/linux-2.6.18-openvz-033-b$ patch -p1 < 1.patch
patching file fs/proc/generic.c
Reversed (or previously applied) patch detected! Assume -R? [n]

I am using kernel master branch from git, last updated this morning:

hernad@desk-h8:~/openvz/git/linux-2.6.18-openvz$ git show-branch
[master] syslog: fix LTP failure in case of wrong args


Re: /proc entries can't be modified ! (was: Failed to dump VE) [message #13825 is a reply to message #13824] Wed, 06 June 2007 11:12 Go to previous messageGo to next message
Vasily Tarasov is currently offline  Vasily Tarasov
Messages: 1345
Registered: January 2006
Senior Member
I just attached to the bug report the right patch, that should be appliable to your kernel.
Re: /proc entries can't be modified ! (was: Failed to dump VE) [message #13890 is a reply to message #13825] Thu, 07 June 2007 08:20 Go to previous messageGo to next message
hernad is currently offline  hernad
Messages: 14
Registered: June 2007
Location: Bosnia and Herzegovina
Junior Member
Thank you Vasily,

with this patch, boot problem is resolved.

But checkpointing still doesn't work ?!


root@desk-h8:~# vzctl chkpnt 999 --dump --dumpfile /vz/999_dump
Setting up checkpoint...
join context..
dump...
Can not dump VE: Invalid argument
iptables-save exited with 255

Re: /proc entries can't be modified ! (was: Failed to dump VE) [message #13891 is a reply to message #13890] Thu, 07 June 2007 08:21 Go to previous messageGo to next message
hernad is currently offline  hernad
Messages: 14
Registered: June 2007
Location: Bosnia and Herzegovina
Junior Member
I reverted to stab031 kernel, and migration finally works.
Re: /proc entries can't be modified ! (was: Failed to dump VE) [message #13893 is a reply to message #13890] Thu, 07 June 2007 08:48 Go to previous messageGo to next message
Vasily Tarasov is currently offline  Vasily Tarasov
Messages: 1345
Registered: January 2006
Senior Member
Ahhhh... Sorry, I noted that current git doesn't content required patch... Please, wait till 034 kernel, it'll be very soon.
Re: /proc entries can't be modified ! (was: Failed to dump VE) [message #13894 is a reply to message #13893] Thu, 07 June 2007 09:10 Go to previous messageGo to next message
hernad is currently offline  hernad
Messages: 14
Registered: June 2007
Location: Bosnia and Herzegovina
Junior Member
No problem Smile
Re: /proc entries can't be modified ! (was: Failed to dump VE) [message #13968 is a reply to message #13893] Fri, 08 June 2007 15:34 Go to previous messageGo to next message
hernad is currently offline  hernad
Messages: 14
Registered: June 2007
Location: Bosnia and Herzegovina
Junior Member
I have not success with live migration with stab035 from git.

vzctl reported the sam problem as with stab033.

Maybe I should get the new vzctl ?

Regards,
Ernad


Re: /proc entries can't be modified ! (was: Failed to dump VE) [message #14124 is a reply to message #13893] Fri, 15 June 2007 08:36 Go to previous messageGo to next message
hernad is currently offline  hernad
Messages: 14
Registered: June 2007
Location: Bosnia and Herzegovina
Junior Member
2.6.18-stab036 kernel, problem remains Sad

..
Can not dump VE: Invalid argument
iptables-save exited with 255
...
Re: /proc entries can't be modified ! (was: Failed to dump VE) [message #14125 is a reply to message #13893] Fri, 15 June 2007 08:45 Go to previous message
hernad is currently offline  hernad
Messages: 14
Registered: June 2007
Location: Bosnia and Herzegovina
Junior Member
http://bugzilla.openvz.org/show_bug.cgi?id=621
Previous Topic: *SOLVED* VNC in VPS
Next Topic: One physical (HM) interface and multiple VE on different network
Goto Forum:
  


Current Time: Fri Mar 29 15:56:25 GMT 2024

Total time taken to generate the page: 0.01913 seconds