Subject: incompatible new vserver guest layout
From: Eugen Leitl <eugen@leitl.org>
Date: Sun, 7 Sep 2008 20:57:27 +0200


I'm moving vservers from an old production system (one dead disk
in the RAID).

Source:       2.6.18-5-vserver-amd64 vserver 0.30.213 (etch)
Destination:  2.6.26-1-vserver-amd64 vserver 0.30.216-pre2772 (lenny)

I'm migrating by instantiating a dummy vserver on the destination
machine by means of running the following shell script:


#!/bin/sh
set -x
IP=$1

vserver v${IP} build --force -n v${IP} --hostname v${IP}.ativel.com --context ${IP}
--interface eth0:85.10.225.${IP}/24 -m debootstrap -- -d lenny
echo ${IP} > /etc/vservers/v${IP}/context
echo "default" > /etc/vservers/v${IP}/apps/init/mark

then deleting the newly instantiated vserver and
expanding the vserver tarball built on the source machine.
I'm getting gratuitious errors like 

WARNING: '/etc/vservers/v74/etc/apt/trustdb.gpg' does not end on newline
WARNING: '/etc/vservers/v74/etc/apt/trusted.gpg' does not end on newline
WARNING: '/etc/vservers/v74/etc/ld.so.cache' does not end on newline
WARNING: '/etc/vservers/v74/etc/pear/pear.conf' does not end on newline
WARNING: '/etc/vservers/v74/etc/aliases.db' does not end on newline
/usr/lib/util-vserver/vserver.functions: line 794: pushd: /etc/vservers/v74/vdir: No
such file or directory

It seems the layout has changed, vdir is not present in the source
vserver setup. The newline warnings are also rare, one of the couple
places they are mentioned is the following IRC transcript:
http://irc.13thfloor.at/LOG/2007-06/LOG_2007-06-10.txt

Any idea how I can migrate the vservers to the new production
machine?

-- 
Eugen* Leitl <a href="leitlhttp://leitl.org">leitl</a> http://leitl.org
______________________________________________________________
ICBM: 48.07100, 11.36820 http://www.ativel.com http://postbiota.org
8B29F6BE: 099D 78BA 2FD3 B014 B08A  7779 75B0 2443 8B29 F6BE