Centos,  Distributions,  Linux,  openvz,  Virtualisation

vzyum upgrade failed

Impossible d’effectuer la mise à jour d’un VPS sous FC5 + openVZ

Message d’erreur:

[root@openvz ~]# vzyum 102 upgrade
exec /usr/share/vzyum/bin/yum -c /vz/template/fedora-core/5/i386/config/yum.conf –installroot /vz/root/102 –vps=102 upgrade
rpmdb: unable to initialize mutex: Argument invalide
rpmdb: PANIC: Argument invalide
rpmdb: PANIC: DB_RUNRECOVERY: Fatal error, run database recovery
error: db4 error(-30977) from dbenv->open: DB_RUNRECOVERY: Fatal error, run database recovery
error: cannot open Packages index using db3 – (-30977)
error: cannot open Packages database in /vz/root/102/var/lib/rpm
Traceback (most recent call last):
File « /usr/share/vzyum/bin/yum », line 28, in ?
yummain.main(sys.argv[1:])
File « /usr/share/vzyum/yum-cli/yummain.py », line 75, in main
base.getOptionsConfig(args)
File « /usr/share/vzyum/yum-cli/cli.py », line 172, in getOptionsConfig
self.doConfigSetup(fn=opts.conffile, root=root, vps=opts.vps)
File « /usr/share/vzyum/lib/yum/__init__.py », line 82, in doConfigSetup
self.conf = config.yumconf(configfile=fn, root=root, vps=vps)
File « /usr/share/vzyum/lib/yum/config.py », line 271, in __init__
self.yumvar[‘releasever’] = self._getsysver()
File « /usr/share/vzyum/lib/yum/config.py », line 384, in _getsysver
idx = ts.dbMatch(‘provides’, self.getConfigOption(‘distroverpkg’))
TypeError: rpmdb open failed

La solution:

[root@openvz ~]# vzctl enter 102
entered into VE 102
[root@db01 /]# cd
[root@db01 ~]# rpm -vv –initdb
D: opening db environment /var/lib/rpm/Packages create:cdb:mpool
D: opening db index /var/lib/rpm/Packages create mode=0x42
D: locked db index /var/lib/rpm/Packages
D: closed db index /var/lib/rpm/Packages
D: closed db environment /var/lib/rpm/Packages
D: May free Score board((nil))

Listage:

[root@db01 ~]# ls -la /var/lib/rpm/
total 5784
drwxr-xr-x 2 rpm rpm 4096 Apr 3 18:32 .
drwxr-xr-x 7 root root 4096 Apr 3 18:30 ..
-rw-r–r– 1 rpm rpm 708608 Mar 29 16:34 Basenames
-rw-r–r– 1 rpm rpm 12288 Mar 29 16:34 Conflictname
-rw-r–r– 1 rpm rpm 167936 Mar 29 16:34 Dirnames
-rw-r–r– 1 rpm rpm 655360 Mar 29 16:34 Filemd5s
-rw-r–r– 1 rpm rpm 12288 Mar 29 16:34 Group
-rw-r–r– 1 rpm rpm 8192 Mar 29 16:34 Installtid
-rw-r–r– 1 rpm rpm 12288 Mar 29 16:34 Name
-rw-r–r– 1 rpm rpm 4272128 Mar 29 16:34 Packages
-rw-r–r– 1 rpm rpm 90112 Mar 29 16:34 Providename
-rw-r–r– 1 rpm rpm 28672 Mar 29 16:34 Provideversion
-rw-r–r– 1 rpm rpm 12288 Apr 25 2006 Pubkeys
-rw-r–r– 1 rpm rpm 45056 Mar 29 16:34 Requirename
-rw-r–r– 1 rpm rpm 32768 Mar 29 16:34 Requireversion
-rw-r–r– 1 rpm rpm 12288 Mar 29 16:34 Sha1header
-rw-r–r– 1 rpm rpm 12288 Mar 29 16:34 Sigmd5
-rw-r–r– 1 rpm rpm 12288 Mar 29 16:34 Triggername
-rw-r–r– 1 root root 0 Apr 3 18:32 __db.000
-rw-r–r– 1 root root 24576 Apr 3 18:32 __db.001
-rw-r–r– 1 root root 1318912 Apr 3 18:32 __db.002
-rw-r–r– 1 root root 450560 Apr 3 18:32 __db.003

VZYUM OK

[root@openvz ~]# vzyum 102 upgrade
exec /usr/share/vzyum/bin/yum -c /vz/template/fedora-core/5/i386/config/yum.conf –installroot /vz/root/102 –vps=102 upgrade
Setting up Upgrade Process
Setting up repositories
fc5-base 100% |=========================| 1.1 kB 00:00
fc5-vz-addons 100% |=========================| 951 B 00:00
fc5-updates-released 100% |=========================| 1.2 kB 00:00
Reading repository metadata in from local files
No Packages marked for Update/Obsoletion

Commentaires fermés sur vzyum upgrade failed