Re: migration on a non-openvz kernel [message #36224 is a reply to message #36144] |
Mon, 01 June 2009 07:36 |
khorenko
Messages: 533 Registered: January 2006 Location: Moscow, Russia
|
Senior Member |
|
|
Hi.
Well, such an operation is a bit tricky and not automated.
Yes, in general, you can copy the content of /vz/root/CTID on the source node to / of the destination one and this should work, but there are some interesting moments:
1) how will you copy? i won't bet that coping /bin, /sbin/, /usr and so on will go fine: coping is not atomic and if you substitute glibc files for example, and after that a process would like to reload some lib - it might fail. Ok, you can copy /usr to /usr1, etc, and then just move. Might work.
2) You need to check the template creation algorithm: there probably should some points, you need to check/undo, for example, when you create a template, you disable mingetty, remove /etc/mtab, and so on.
3) you have to think about first boot of the node: you need to make sure kernel is installed, recreate initrd before the reboot.
Most probably i forgot something else. In any case this task seems do-able, but you'll need to perform quite a lot of tricks to make it work.
Good luck!
--
Konstantin
If your problem is solved - please, report it!
It's even more important than reporting the problem itself...
|
|
|