On Fri, 18 Jan 2008 10:58:33 -0000, Mio Nilsson <email@example.com> wrote:
>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.
-- From Ben Green