PLDWWW: Docs/Vserver
glen
glen at pld-linux.org
Fri Oct 3 14:14:12 CEST 2008
Author: glen Date: Fri Oct 3 12:14:12 2008 GMT
Module: PLDWWW URL: http://www.pld-linux.org/Docs/Vserver?action=diff&rev2=126&rev1=125
---- Log message:
---- Page affected: Docs/Vserver
---- Diffs:
================================================================
$ less /usr/share/doc/util-vserver-build-0.30.210/package-management.txt.gz
}}}
+ === DB version mismatch with host/guest ===
+
+ if you installed {{{ac}}} vserver under {{{th}}} and have internalized package management, you'll likely suffer db version mismatch errors:
+
+ {{{
+ rpmdb: Program version 4.5 doesn't match environment version 4.7
+ rpmdb: /var/lib/rpm/Packages: unsupported hash version: 9
+ }}}
+
+ To solve this, we need to dump rpmdb and restore it.
+
+ on {{{th}}} host, dump the db and install tools for guest:
+ {{{
+ # poldek -u db4.7-utils
+ # cd /vservers/test/var/lib/rpm
+ # db_dump Packages > Packages.dump
+ # vpoldek test -- -u db4.5-utils
+ }}}
+
+ on {{{ac}}} guest load the db:
+ {{{
+ # vserver test enter
+ # cd /var/lib/rpm
+ # rm -f __db.00*
+ # db_load Packages < Packages.dump
+ # rpm --rebuilddb
+ # rm -f Packages.dump
+ }}}
== Using plain init style ==
More information about the pld-cvs-commit
mailing list