store | blogs | forums | twitter | facebook | wiki | mailing lists | downloads | support portal
Atomic Secure Linux
It is currently Sat May 25, 2013 3:47 pm

» Feed - Atomicorp

All times are UTC - 5 hours [ DST ]




Post new topic Reply to topic Share/Bookmark  [ 6 posts ] 
Author Message
 Post subject: Help with Virtuozzo 4 vzmlocal command
Unread postPosted: Mon Jun 11, 2012 7:57 pm 
Offline
Forum Regular
Forum Regular

Joined: Mon Mar 19, 2007 3:47 pm
Posts: 220
I am trying to move a container to a new number on the same server and I don't understand the command. The bottom line is that I don't understand the instructions. I simply want to move 101 to 1001 using Virtuozzo 4. I appreciate any help. Thank you in advance.

I don't understand /my_dir and /ct111 because ct111 is not how the node is referenced. It is referenced as /vz/private/101 or /vz/root/101

Code:
Moving Container Within Hardware Node

The vzmlocal utility allows you to move Containers within your Hardware Node. Moving a Container within one and the same Hardware Node consists in changing the Container ID and its private area and root paths. So, you may use vzmlocal to change the ID of the corresponding Container only or to additionally modify its private area and root path.

Let us assume that you wish to change the ID of your Container from 101 to 111 and modify its private area and root paths from /vz/private/101 to /vz/private[b]/my_dir[/b] and from /vz/root/101 to /vz/root[b]/ct111[/b], respectively. To this effect, you should execute the following command on the Hardware Node:

# vzmlocal 101:111:/vz/private/my_dir:/vz/root/ct111

Moving/copying Container#101 -> Container#111,

[/vz/private/my_dir], [/vz/root/ct111] ...

...

Successfully completed


Code:
[root@hw006 ~]# vzmlocal 101:1001:/vz/private/101:/vz/root/1001 
Moving/copying CT#101 -> CT#1001, [/vz/private/101], [/vz/root/1001] ...
OfflineManagement CT#101 ...
done
Stopping CT#101 ...
vzctl : Failed to run vzquota off for Container 101 [11]
/usr/sbin/vzctl exited with code 66
can not stop/umount CT#101 : /usr/sbin/vzctl exited with code 66
Can't move/copy CT#101 -> CT#1001, [/vz/private/101], [/vz/root/1001] : can not stop/umount CT#101 : /usr/sbin/vzctl exited with code 66


Top
 Profile  
 
 Post subject: Re: Help with Virtuozzo 4 vzmlocal command
Unread postPosted: Wed Jun 13, 2012 1:18 pm 
Offline
Forum User
Forum User

Joined: Tue Apr 20, 2010 2:49 am
Posts: 74
My experience is from Virtuozzo 4.7 and doesn't amount to much but what I can tell you is that the stupid command won't work on running containers!

And I think you only need to specify the second set of parameters (from/to directories) if you're using non-standard paths. Certainly when I've cloned containers I've never bothered to specify it.


Top
 Profile  
 
 Post subject: Re: Help with Virtuozzo 4 vzmlocal command
Unread postPosted: Wed Jun 13, 2012 3:11 pm 
Offline
Long Time Forum Regular
Long Time Forum Regular

Joined: Thu Dec 09, 2004 11:19 am
Posts: 1846
Yeah, Paulie's right:

Code:
vzmlocal oldID:newID


...will change the countainer's ID. There's no need for the additional stuff.

From the manual: "Specifying the destination Container private area path (<dest_private>) and
root path (<dest_root>) is optional; it allows you to override the default paths."

Also from the manual: "You may run the vzmlocal utility on both running and stopped Containers" but I'm with Paulie on this -- I'd stop the container first!!!

_________________
--------------------------------
<advert>
If you want to rent a UK-based VPS that comes with friendly advice and support from a fellow ART fan, please get in touch.
</advert>


Top
 Profile  
 
 Post subject: Re: Help with Virtuozzo 4 vzmlocal command
Unread postPosted: Wed Jun 13, 2012 3:13 pm 
Offline
Forum Regular
Forum Regular

Joined: Mon Mar 19, 2007 3:47 pm
Posts: 220
You know, I knew there was a simple way! Why can't the Russians right in plain English :)


Top
 Profile  
 
 Post subject: Re: Help with Virtuozzo 4 vzmlocal command
Unread postPosted: Wed Jun 13, 2012 4:32 pm 
Offline
Long Time Forum Regular
Long Time Forum Regular

Joined: Thu Dec 09, 2004 11:19 am
Posts: 1846
:-) I know what you mean.

_________________
--------------------------------
<advert>
If you want to rent a UK-based VPS that comes with friendly advice and support from a fellow ART fan, please get in touch.
</advert>


Top
 Profile  
 
 Post subject: Re: Help with Virtuozzo 4 vzmlocal command
Unread postPosted: Thu Jun 14, 2012 3:52 pm 
Offline
Forum User
Forum User

Joined: Tue Apr 20, 2010 2:49 am
Posts: 74
But if they did it'd all be too easy!


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic Share/Bookmark  [ 6 posts ] 

» Feed - Atomicorp

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group