Re: Restore of VPS with mounted logical volume (LVM) [message #38897 is a reply to message #38318] |
Wed, 17 February 2010 01:44   |
Leandro Anthonioz
Messages: 5 Registered: May 2008
|
Junior Member |
|
|
Hi all, I still cann't solve this problem. I download vzctl source code and debug it with gdb and DDD, but code is difficult to interpret for me (I'm not a kernel hacker ;D).
After that, I use strace and found this:
----------------------
stat64("/etc/vz/conf/100.start", 0xbfc83f74) = -1 ENOENT (No such file or directory)
close(10) = 0
read(11, Error: undump failed: No such file or directory
Restoring failed:
Error: -2 mounting /mnt/volume ext3 40000000
Error: rst_namespace: -2
----------------------
According first line, seems that vzctl needs (in this case) a start script (100.start), but I cann't understand why. Well, I wrote 100.start script without any code (only "#!/bin/bash" and an "echo" command) an next attempt to do restore, I get this:
----------------------
Restoring VE ...
Starting VE ...
VE is mounted
undump...
Setting CPU units: 1000
Setting devices
Configure meminfo: 65536
VE start failed
Stopping VE ...
get context...
VE was stopped
VE is unmounted
----------------------
After create 100.start script, error "No such file or directory" disappears. However, I cann't restore VPS yet. What code I need write in 100.start script?
Any help will be greatly appreciated. Thank you very much!
|
|
|