OpenVZ Forum


Home » General » Support » moved hd and vzyum dosn't work
moved hd and vzyum dosn't work [message #30794] Fri, 06 June 2008 17:22 Go to next message
lcslouis is currently offline  lcslouis
Messages: 26
Registered: September 2006
Junior Member
i have a problem with vzyum

/etc/sysconfig/vz-scripts//102.conf: line 16: USA: command not found
exec /usr/share/vzyum/bin/yum -c /vz/template/fedora-core/4/i386/config/yum.conf --installroot /vz/root/102 --vps=102 install libssl.so
rpmdb: unable to initialize mutex: Invalid argument
rpmdb: PANIC: Invalid argument
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


i moved the vz to vz2/private/102/

how can i fix this?
Re: moved hd and vzyum dosn't work [message #30801 is a reply to message #30794] Sat, 07 June 2008 09:06 Go to previous messageGo to next message
maratrus is currently offline  maratrus
Messages: 1495
Registered: August 2007
Location: Moscow
Senior Member
Hi,

Quote:


i moved the vz to vz2/private/102/



What does it mean? Did you move the whole /vz partition or just moved /vz/private/102 files to /vz2/private/102 and then change VE_PRIVATE parameter in /etc/vz/conf/102.conf file?
Could you possibly show 102.conf file?

Did you start then the VE and just issue on the HN (vzyum 102 instal libssl)?
Re: moved hd and vzyum dosn't work [message #30822 is a reply to message #30794] Sat, 07 June 2008 13:38 Go to previous messageGo to next message
lcslouis is currently offline  lcslouis
Messages: 26
Registered: September 2006
Junior Member
i moved the 102 files to a different HD /vz2 is a different HD


#  Copyright (C) 2000-2006 SWsoft. All rights reserved.
#
#  This program is free software; you can redistribute it and/or modify
#  it under the terms of the GNU General Public License as published by
#  the Free Software Foundation; either version 2 of the License, or
#  (at your option) any later version.
#
#  This program is distributed in the hope that it will be useful,
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#  GNU General Public License for more details.
#
#  You should have received a copy of the GNU General Public License
#  along with this program; if not, write to the Free Software
#  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307
USA
#

ONBOOT="yes"

# UBC parameters (in form of barrier:limit)
# Primary parameters
AVNUMPROC="40:40"
NUMPROC="512:768"
NUMTCPSOCK="1000:2000"
NUMOTHERSOCK="1000:2000"
VMGUARPAGES="131072:150000"
# Secondary parameters
KMEMSIZE="536870912:536870912"
TCPSNDBUF="11000000:12000000"
TCPRCVBUF="2000000:4000000"
OTHERSOCKBUF="1000000:2000000"
DGRAMRCVBUF="1000000:2000000"
OOMGUARPAGES="131072:150000"
# Auxiliary parameters
LOCKEDPAGES="32:32"
SHMPAGES="32768:49152"
PRIVVMPAGES="524288:600000"
NUMFILE="10240:11264"
NUMFLOCK="100:110"
NUMPTY="512:1024"
NUMSIGINFO="3000:3000"
DCACHESIZE="10485760:11000000"

PHYSPAGES="0:200000"
NUMIPTENT="640:640"

# Disk quota parameters (in form of softlimit:hardlimit)
DISKSPACE="167772160:167772160"
DISKINODES="2000000:2200000"
QUOTATIME="0"

# CPU fair sheduler parameter
CPUUNITS="10000"
OSTEMPLATE="fedora-core-4-i386-minimal"
VE_ROOT="/vz2/root/$VEID"
VE_PRIVATE="/vz2/private/$VEID"
ORIGIN_SAMPLE="vps.basic"
IP_ADDRESS="208.110.71.251 208.110.71.249 208.110.71.250 208.110.71.252"
HOSTNAME="main.ucc-hq.org"
NAMESERVER="69.30.249.2"
NAMESERVER="69.30.192.15"
NAmESERVER="208.100.64.5"

QUOTAUGIDLIMIT="500"
IPTABLES="iptable_filter iptable_mangle ipt_limit ipt_multiport ipt_tos ipt_TOS ipt_REJECT ipt_TCPMSS ipt_tcpmss ipt_ttl ipt_LOG ipt_length ip_conntrack ipt_state iptable_nat ip_nat_ftp "
Re: moved hd and vzyum dosn't work [message #30826 is a reply to message #30822] Sat, 07 June 2008 14:22 Go to previous messageGo to next message
maratrus is currently offline  maratrus
Messages: 1495
Registered: August 2007
Location: Moscow
Senior Member
Hi,

try to apply this patch
http://git.openvz.org/?p=vzpkg;a=commit;h=491d4b09b09bb8a633442faff7dfa60ffcac976d
does it help?
Re: moved hd and vzyum dosn't work [message #30827 is a reply to message #30794] Sat, 07 June 2008 14:29 Go to previous messageGo to next message
lcslouis is currently offline  lcslouis
Messages: 26
Registered: September 2006
Junior Member
how? it doesn't say what to apply it just reports the problem
Re: moved hd and vzyum dosn't work [message #30830 is a reply to message #30827] Sat, 07 June 2008 15:18 Go to previous message
maratrus is currently offline  maratrus
Messages: 1495
Registered: August 2007
Location: Moscow
Senior Member
Hi,

please go there, then press "diff" - here is the patch.
then press "raw" save the patch.
then apply it to /usr/share/vzpkg/functions
(patch -p1 /usr/share/vzpkg/functions < PATCH_NAME)

P.S. If it's some problem with applying pay attention to the order of arches in this string
ARCHES="i386 x86_64 ia64 x86"

Everything should work.
Previous Topic: /proc/user_beancounters not reset after VE restart.
Next Topic: How do I reset root password.
Goto Forum:
  


Current Time: Sat Aug 03 18:20:05 GMT 2024

Total time taken to generate the page: 0.02538 seconds