Migration error: VPS config file does not exist [message #22512] |
Tue, 30 October 2007 06:02 |
Ian jonhson
Messages: 11 Registered: October 2007
|
Junior Member |
|
|
Hi,
I met a problem when I migrated a VE client from one host to another.
The two hosts are installed Debian 4 and OpenVZ. In one of the host, I
have installed successfully the VE client.
Then, I copied the directories and files in /vz/private/ to another
host. For example, I tared all
the file in /vz/private/101/ of host 1.
# tar cf 101.tgz 101
# ls 101.tgz
101.tgz
Copy the tgz file to another host,
# cd /vz/private/
# tar xzvf 101.tgz
Then I created a directory with the same name in /vz/root/
# cd /vz/root/
# mkdir 101
Ok, all are ready and I started the VE with the id, 101:
# vzctl start 101
VPS config file does not exist
I don't what is wrong with it. Maybe some configuration files are not
ready for this migration.
Could anybody give me some advices?
Thanks in advance.
Ian
|
|
|
|
Re: Migration error: VPS config file does not exist [message #22515 is a reply to message #22512] |
Tue, 30 October 2007 08:55 |
gblond
Messages: 64 Registered: May 2007
|
Member |
|
|
On 30 October 2007 09:02:31 Ian jonhson wrote:
> Hi,
>
> I met a problem when I migrated a VE client from one host to another.
I have to use vzmigrate utility.
> The two hosts are installed Debian 4 and OpenVZ. In one of the host, I
> have installed successfully the VE client.
> Then, I copied the directories and files in /vz/private/ to another
> host. For example, I tared all
> the file in /vz/private/101/ of host 1.
>
> # tar cf 101.tgz 101
> # ls 101.tgz
> 101.tgz
>
> Copy the tgz file to another host,
>
> # cd /vz/private/
> # tar xzvf 101.tgz
>
> Then I created a directory with the same name in /vz/root/
>
> # cd /vz/root/
> # mkdir 101
>
> Ok, all are ready and I started the VE with the id, 101:
>
> # vzctl start 101
> VPS config file does not exist
If you implement migration by hands you must also copy VE conf file
(/etc/vz/conf/veid.conf, where veid is ID of VE).
>
> I don't what is wrong with it. Maybe some configuration files are not
> ready for this migration.
> Could anybody give me some advices?
>
> Thanks in advance.
>
> Ian
--
Thank,
Vitaliy Gusev
|
|
|
Re: Migration error: VPS config file does not exist [message #22597 is a reply to message #22515] |
Wed, 31 October 2007 11:19 |
Ian jonhson
Messages: 11 Registered: October 2007
|
Junior Member |
|
|
Thank you very much
I have migrated successfully the VE.
On 10/30/07, Vitaliy Gusev <vgusev@openvz.org> wrote:
> On 30 October 2007 09:02:31 Ian jonhson wrote:
> > Hi,
> >
> > I met a problem when I migrated a VE client from one host to another.
>
> I have to use vzmigrate utility.
>
> > The two hosts are installed Debian 4 and OpenVZ. In one of the host, I
> > have installed successfully the VE client.
> > Then, I copied the directories and files in /vz/private/ to another
> > host. For example, I tared all
> > the file in /vz/private/101/ of host 1.
> >
> > # tar cf 101.tgz 101
> > # ls 101.tgz
> > 101.tgz
> >
> > Copy the tgz file to another host,
> >
> > # cd /vz/private/
> > # tar xzvf 101.tgz
> >
> > Then I created a directory with the same name in /vz/root/
> >
> > # cd /vz/root/
> > # mkdir 101
> >
> > Ok, all are ready and I started the VE with the id, 101:
> >
> > # vzctl start 101
> > VPS config file does not exist
> If you implement migration by hands you must also copy VE conf file
> (/etc/vz/conf/veid.conf, where veid is ID of VE).
>
> >
> > I don't what is wrong with it. Maybe some configuration files are not
> > ready for this migration.
> > Could anybody give me some advices?
> >
> > Thanks in advance.
> >
> > Ian
> --
> Thank,
> Vitaliy Gusev
>
|
|
|