Subject: Re: [vserver] copied vservers to a new host, and now can't use vyum
From: "Roderick A. Anderson" <raanders@cyber-office.net>
Date: Mon, 23 Feb 2009 16:07:19 -0800

Eric Jorgensen wrote:
> Hello,
> 
> Unfortunately, your suggestion didn't work.  BUT - it got me thinking in 
> a new direction.  Here's what I did to fix the problem:
> 
> 
> # cd /vservers/.pkg/<vservername>/rpm/state
> # rm __db*
> # vyum <vservername> -- --rebuilddb

Interesting!  I was going to suggest this but the file command doesn't 
report __*.db as BerkleyDB files.  All the others in the directory are 
though.

I've used this method at a pre-vserver time.

Well maybe not pre-vserver.  I have a couple still running ctx kernels:

Linux version 2.4.21ctx-17a (root@remtk.solucorp.qc.ca) (version gcc 
3.2.2 20030222 (Red Hat Linux 3.2.2-5)) #5 ven jui 18 09:53:21 EDT 2003

Linux version 2.4.20ctx-17 (root@plastic.solucorp.qc.ca) (version gcc 
3.2 20020903 (Red Hat Linux 8.0 3.2-7)) #1 dim mar 30 12:32:24 EST 2003

Anyway I glad you discovered this.


Rod
-- 
> 
> 
> Has worked on the 6 or so vservers I've tried so far.  Thanks for the 
> pointer.
> 
> Eric
> 
> 
> ------------------------------------------------------------------------
> *From:* Roderick A. Anderson <raanders@cyber-office.net>
> *To:* vserver@list.linux-vserver.org
> *Sent:* Monday, February 23, 2009 12:53:09 PM
> *Subject:* Re: [vserver] copied vservers to a new host, and now can't 
> use vyum
> 
> Eric Jorgensen wrote:
>  > Hello,
>  >
>  > Thanks for the suggestion - unfortunately I'm still getting the same 
> error.  Any idea on how to upgrade an rpmdb by  hand?
> 
> Sorry to take so long to get back to you.  I changed/upgrade my mail 
> server and the account lists were going to and forgot to tell 
> Thunderbird to check for messages in the Vserver folder.  :-(
> 
> Here is what my searches indicate.
> 
> On the old system install the db3-utils package and export the databases 
> in /vservers/$GUEST/var/lib/rpm.
> 
> Copy/move them over to the new system (some place private) and use the 
> db4-utils to import.
> 
> I got this from:
> 
> http://lists.andrew.cmu.edu/pipermail/info-cyrus/2007-July/026507.html
> 
> Which is talking about cyrus but the process should be the same ... 
> hopefully.
> 
> 
> Good luck,
> Rod
> 
> 
>