Re: [vserver] Vserver in a file

From: Ben Green <ben_at_bristolwireless.net>
Date: Fri 18 Jan 2008 - 12:35:00 GMT
Message-ID: <op.t44k8mp40bw284@spinach>

Hi list,

I must apologize for the random attachment I sent with the last email, it's about my sons schooling and nothing to do with vserver at all, it wasn't meant for his mum. If everyone could delete it I would be most greatful, and it would be good if it could be removed from the archives too.

I also am repeating the text of the mail I accidentally added the attachment too below, so you have a copy I don't mind people keeping:

On Fri, 18 Jan 2008 10:58:33 -0000, Mio Nilsson <mio@beepsend.se> wrote:

> Hi,
> I'm wondering if it is at all possible to put a vserver in a file which would then
> be mounted with the loopback-device to the appropriate folders? I've read in
> previous posts about having vservers on separate physical drives, so this should
> work in about the same way, right?
> Which problems could be expected?
> The reason I would want to do this is ofcourse to make it easier to move a vserver
> between physical hosts.

I don't think you'll have any problems with this approach. Format your loopback device with a file system of your choice and off you go. I guess you would be able to move the tagxid data then, which I don't think an rsync does, though it's simple to recreate.

$rsync --numeric-ids /guestpath/ otherhost:/guestpath/

Has always moved hosts fine for me. There are disk space disadvantages to the loopback idea, and further you couldn't use the hashify functions to reduce disk space and memory use further.

Cheers,

-- 
 From Ben Green
Received on Fri Jan 18 19:13:06 2008
[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Fri 18 Jan 2008 - 19:13:17 GMT by hypermail 2.1.8