OpenVZ Forum


Home » General » Support » *SOLVED* Broken VPS problem
*SOLVED* Broken VPS problem [message #7142] Wed, 04 October 2006 23:49 Go to next message
ferp2 is currently offline  ferp2
Messages: 29
Registered: May 2006
Junior Member
Hello,

I'm running openvz with 2.6.8-022stab064-up using debian sarge on the hardware node for several months. Everything has worked fine until I did an apt-get update and an apt-get upgrade on the hardware node. One of the programs being upgraded was vzctl.

When I rebooted, the virtual private servers did NOT boot.
When I did:

vzctl status 101
VPSID 101 deleted unmounted down

vzctl start 101
VPS config file does not exist

Both /vz/private/101 and /etc/vz/101.conf still exist, so thankfully the files haven't been deleted.

Could someone help me correct this problem.

Thank you.

[Updated on: Fri, 06 October 2006 10:30] by Moderator

Report message to a moderator

Re: Broken VPS problem [message #7145 is a reply to message #7142] Thu, 05 October 2006 06:44 Go to previous messageGo to next message
Vasily Tarasov is currently offline  Vasily Tarasov
Messages: 1345
Registered: January 2006
Senior Member
Hello,

So, what version of vzctl is now on your node?
Can you post strace of vzctl here, please.

Thanks.
Re: Broken VPS problem [message #7152 is a reply to message #7145] Thu, 05 October 2006 13:01 Go to previous messageGo to next message
ferp2 is currently offline  ferp2
Messages: 29
Registered: May 2006
Junior Member
Thank you for responding. Here is the strace output.

strace vzctl
execve("/usr/sbin/vzctl", ["vzctl"], [/* 17 vars */]) = 0
uname({sys="Linux", node="cveil", ...}) = 0
brk(0) = 0x8050000
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0
x40017000
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.preload", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/vzctl/lib/tls/i686/mmx/cmov/libvzctl.so.0.0.2 ", O_RDONLY) = -1 EN
OENT (No such file or directory)
stat64("/usr/lib/vzctl/lib/tls/i686/mmx/cmov", 0xbffff2a8) = -1 ENOENT (No such
file or directory)
open("/usr/lib/vzctl/lib/tls/i686/mmx/libvzctl.so.0.0.2", O_RDONLY) = -1 ENOENT
(No such file or directory)
stat64("/usr/lib/vzctl/lib/tls/i686/mmx", 0xbffff2a8) = -1 ENOENT (No such file
or directory)
open("/usr/lib/vzctl/lib/tls/i686/cmov/libvzctl.so.0.0.2", O_RDONLY) = -1 ENOENT
(No such file or directory)
stat64("/usr/lib/vzctl/lib/tls/i686/cmov", 0xbffff2a8) = -1 ENOENT (No such file
or directory)
open("/usr/lib/vzctl/lib/tls/i686/libvzctl.so.0.0.2", O_RDONLY) = -1 ENOENT (No
such file or directory)
stat64("/usr/lib/vzctl/lib/tls/i686", 0xbffff2a8) = -1 ENOENT (No such file or d
irectory)
open("/usr/lib/vzctl/lib/tls/mmx/cmov/libvzctl.so.0.0.2", O_RDONLY) = -1 ENOENT
(No such file or directory)
stat64("/usr/lib/vzctl/lib/tls/mmx/cmov", 0xbffff2a8) = -1 ENOENT (No such file
or directory)
open("/usr/lib/vzctl/lib/tls/mmx/libvzctl.so.0.0.2", O_RDONLY) = -1 ENOENT (No s
uch file or directory)
stat64("/usr/lib/vzctl/lib/tls/mmx", 0xbffff2a8) = -1 ENOENT (No such file or di
rectory)
open("/usr/lib/vzctl/lib/tls/cmov/libvzctl.so.0.0.2", O_RDONLY) = -1 ENOENT (No
such file or directory)
stat64("/usr/lib/vzctl/lib/tls/cmov", 0xbffff2a8) = -1 ENOENT (No such file or d
irectory)
open("/usr/lib/vzctl/lib/tls/libvzctl.so.0.0.2", O_RDONLY) = -1 ENOENT (No such
file or directory)
stat64("/usr/lib/vzctl/lib/tls", 0xbffff2a8) = -1 ENOENT (No such file or direct
ory)
open("/usr/lib/vzctl/lib/i686/mmx/cmov/libvzctl.so.0.0.2", O_RDONLY) = -1 ENOENT
(No such file or directory)
stat64("/usr/lib/vzctl/lib/i686/mmx/cmov", 0xbffff2a8) = -1 ENOENT (No such file
or directory)
open("/usr/lib/vzctl/lib/i686/mmx/libvzctl.so.0.0.2", O_RDONLY) = -1 ENOENT (No
such file or directory)
stat64("/usr/lib/vzctl/lib/i686/mmx", 0xbffff2a8) = -1 ENOENT (No such file or d
irectory)
open("/usr/lib/vzctl/lib/i686/cmov/libvzctl.so.0.0.2", O_RDONLY) = -1 ENOENT (No
such file or directory)
stat64("/usr/lib/vzctl/lib/i686/cmov", 0xbffff2a8) = -1 ENOENT (No such file or
directory)
open("/usr/lib/vzctl/lib/i686/libvzctl.so.0.0.2", O_RDONLY) = -1 ENOENT (No such
file or directory)
stat64("/usr/lib/vzctl/lib/i686", 0xbffff2a8) = -1 ENOENT (No such file or direc
tory)
open("/usr/lib/vzctl/lib/mmx/cmov/libvzctl.so.0.0.2", O_RDONLY) = -1 ENOENT (No
such file or directory)
stat64("/usr/lib/vzctl/lib/mmx/cmov", 0xbffff2a8) = -1 ENOENT (No such file or d
irectory)
open("/usr/lib/vzctl/lib/mmx/libvzctl.so.0.0.2", O_RDONLY) = -1 ENOENT (No such
file or directory)
stat64("/usr/lib/vzctl/lib/mmx", 0xbffff2a8) = -1 ENOENT (No such file or direct
ory)
open("/usr/lib/vzctl/lib/cmov/libvzctl.so.0.0.2", O_RDONLY) = -1 ENOENT (No such
file or directory)
stat64("/usr/lib/vzctl/lib/cmov", 0xbffff2a8) = -1 ENOENT (No such file or direc
tory)
open("/usr/lib/vzctl/lib/libvzctl.so.0.0.2", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0`K\0\000"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=144408, ...}) = 0
old_mmap(NULL, 143328, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40018000
old_mmap(0x4003a000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x220
00) = 0x4003a000
close(3) = 0
open("/usr/lib/vzctl/lib/libvzctl-simfs.so.0.0.2", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\0\f\0\000"..., 512) = 5
12
fstat64(3, {st_mode=S_IFREG|0644, st_size=6488, ...}) = 0
old_mmap(NULL, 9548, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x4003b000
old_mmap(0x4003d000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x100
0) = 0x4003d000
close(3) = 0
open("/usr/lib/vzctl/lib/libdl.so.2", O_RDONLY) = -1 ENOENT (No such file or dir
ectory)
open("/etc/ld.so.cache", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=11552, ...}) = 0
old_mmap(NULL, 11552, PROT_READ, MAP_PRIVATE, 3, 0) = 0x4003e000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/lib/tls/libdl.so.2", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\320\32"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=9872, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0
x40041000
old_mmap(NULL, 8632, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40042000
old_mmap(0x40044000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x200
0) = 0x40044000
close(3) = 0
open("/usr/lib/vzctl/lib/libutil.so.1", O_RDONLY) = -1 ENOENT (No such file or d
irectory)
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/lib/tls/libutil.so.1", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0000\16\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=7828, ...}) = 0
old_mmap(NULL, 10652, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40045000
old_mmap(0x40047000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x100
0) = 0x40047000
close(3) = 0
open("/usr/lib/vzctl/lib/libc.so.6", O_RDONLY) = -1 ENOENT (No such file or dire
ctory)
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/lib/tls/libc.so.6", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0`Z\1\000"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=1254660, ...}) = 0
old_mmap(NULL, 1264972, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40048000
old_mmap(0x40172000, 36864, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x12
9000) = 0x40172000
old_mmap(0x4017b000, 7500, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONY
MOUS, -1, 0) = 0x4017b000
close(3) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0
x4017d000
set_thread_area({entry_number:-1 -> 6, base_addr:0x4017d080, limit:1048575, seg_
32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, usea
ble:1}) = 0
munmap(0x4003e000, 11552) = 0
brk(0) = 0x8050000
brk(0x8071000) = 0x8071000
brk(0) = 0x8071000
rt_sigaction(SIGPIPE, {SIG_IGN}, NULL, Cool = 0
fstat64(1, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 0), ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40
03e000
write(1, "vzctl version 3.0.11-dso\n", 25vzctl version 3.0.11-dso
) = 25
write(1, "Copyright (C) 2000-2006 SWsoft.\n", 32Copyright (C) 2000-2006 SWsoft.
) = 32
write(1, "This program may be distributed "..., 73This program may be distribute
d under the terms of the GNU GPL License.

) = 73
write(1, "Usage: vzctl [options] <command>"..., 1024Usage: vzctl [options] <comm
and> <veid> [parameters]
vzctl destroy | mount | umount | stop | status | enter <veid>
vzctl create <veid> {--ostemplate <name>] [--config <name>]
[--private <path>] [--root <path>] [--ipadd <addr>] | [--hostname <name>]
vzctl start <veid> [--force]
vzctl exec | exec2 <veid> <command> [arg ...]
vzctl runscript <veid> <script>
vzctl chkpnt <vpsid> [--dumpfile <name>]
vzctl restore <vpsid> [--dumpfile <name>]
vzctl set veid [--save] [--setmode restart|ignore]
[--ipadd <addr>] [--ipdel <addr>|all] [--hostname <name>]
[--nameserver <addr>] [--searchdomain <name>] [--onboot yes|no]
[--userpasswd <user>:<passwd>] [--cpuunits <N>] [--cpulimit <N>] [--cpus <N>]
[--diskspace <soft>[:<hard>]] [--diskinodes <soft>[:<hard>]]
[--quotatime <N>] [--quotaugidlimit <N>]
[--noatime yes|no] [--capability <name>:on|off ...]
[--devices b|c:major:minor|all:r|w|rw]
[--devnodes device:r|w|rw|none]
[--veth_add dev_name,dev_addr,dev_name_vps,dev_addr_vps]
[--veth_del dev_nam) = 1024
write(1, "e]\n", 3e]
) = 3
write(1, " [--applyconfig <name>]\n", 26 [--applyconfig <name>]
) = 26
write(1, " [--name <vename>]\n", 21 [--name <vename>]
) = 21
write(1, " [--iptables <name>] [--disabl"..., 45 [--iptables <name>] [--disa
bled <yes|no>]
) = 45
write(1, " [UBC parameters]\nUBC paramete"..., 605 [UBC parameters]
UBC parameters (N - items, P - pages, B - bytes):
Two numbers divided by colon means barrier:limit.
In case the limit is not given it is set to
...

Re: Broken VPS problem [message #7158 is a reply to message #7145] Thu, 05 October 2006 15:37 Go to previous messageGo to next message
ferp2 is currently offline  ferp2
Messages: 29
Registered: May 2006
Junior Member
Here are a few more details about how I set up openvz:

I performed the installation in the month of April, 2006

I used the the howto available at Howtoforge called:
Building A Virtual Server (VPS) With Debian 3.1 (Sarge) And OpenVZ

I added the following repository for the OpenVZ Tools to /etc/apt/sources.list:

deb http://debian.systs.org/ stable openvz


As per the howto, I initially installed these packages:
apt-get install vzctl vzquota vzctl-template


On October 4, 2006 I performed the first apt-get update && apt-get upgrade on the hardware node.

During the upgrade I noticed upgrades for 1 or more of the OpenVZ tools, I'm not sure which ones.

Since rebooting, vzctl reports
VPSID 101 deleted unmounted down
VPSID 102 deleted unmounted down
VPSID 103 deleted unmounted down

Note the files for these virtual private servers still exist

Here are today's results of:
apt-get -s install --reinstall vzctl vzquota vzctl-template
Reading Package Lists... Done
Building Dependency Tree... Done
Note, selecting vzctl-template-debian instead of vzctl-template
The following extra packages will be installed:
  vzctl-template-debian
The following NEW packages will be installed:
  vzctl-template-debian
0 upgraded, 1 newly installed, 2 reinstalled, 0 to remove and 0 not upgraded.
Inst vzctl [3.0.11-1dso5] (3.0.11-1dso5 debian.systs.org archive:stable)
Inst vzctl-template-debian (0.1-1dso8 debian.systs.org archive:stable)
Inst vzquota [3.0.8-1dso3] (3.0.8-1dso3 debian.systs.org archive:stable)
Conf vzctl (3.0.11-1dso5 debian.systs.org archive:stable)
Conf vzctl-template-debian (0.1-1dso8 debian.systs.org archive:stable)
Conf vzquota (3.0.8-1dso3 debian.systs.org archive:stable)


Thank you for your attention in this matter.
Re: Broken VPS problem [message #7170 is a reply to message #7145] Thu, 05 October 2006 17:13 Go to previous messageGo to next message
ferp2 is currently offline  ferp2
Messages: 29
Registered: May 2006
Junior Member
Quote:

So, what version of vzctl is now on your node?


vzctl --version
vzctl version 3.0.11-dso

Looking at the results from:
apt-get -s install --reinstall vzctl vzquota vzctl-template
Reading Package Lists... Done
Building Dependency Tree... Done
Note, selecting vzctl-template-debian instead of vzctl-template
The following extra packages will be installed:
  vzctl-template-debian
The following NEW packages will be installed:
  vzctl-template-debian
0 upgraded, 1 newly installed, 2 reinstalled, 0 to remove and 0 not upgraded.
Inst vzctl [3.0.11-1dso5] (3.0.11-1dso5 debian.systs.org archive:stable)
Inst vzctl-template-debian (0.1-1dso8 debian.systs.org archive:stable)
Inst vzquota [3.0.8-1dso3] (3.0.8-1dso3 debian.systs.org archive:stable)
Conf vzctl (3.0.11-1dso5 debian.systs.org archive:stable)
Conf vzctl-template-debian (0.1-1dso8 debian.systs.org archive:stable)
Conf vzquota (3.0.8-1dso3 debian.systs.org archive:stable)


It looks like newer versions of vzctl and vzquota were installed in the recent apt-get upgrade. Meanwhile, the apt-get upgrade did not install a newer version vzctl-template. Nevertheless, a newer version of vzctl-template exists, namely vzctl-template-debian.

Perhaps the solution is to install vzctl-template-debian. My only concern is that my existing openvz files and settings may be overwritten during the installation.

I would appreciate if you could confirm this as a possible solution.

Thank you.
Re: Broken VPS problem [message #7171 is a reply to message #7152] Thu, 05 October 2006 17:30 Go to previous messageGo to next message
ferp2 is currently offline  ferp2
Messages: 29
Registered: May 2006
Junior Member
I ran strace again using the following parameters:

strace -o strace.out -ff vzctl status 101
execve("/usr/sbin/vzctl", ["vzctl", "status", "101"], [/* 17 vars */]) = 0
uname({sys="Linux", node="cveil", ...}) = 0
brk(0)                                  = 0x8050000
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40017000
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/etc/ld.so.preload", O_RDONLY)    = -1 ENOENT (No such file or directory)
open("/usr/lib/vzctl/lib/tls/i686/mmx/cmov/libvzctl.so.0.0.2", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/lib/vzctl/lib/tls/i686/mmx/cmov", 0xbffff298) = -1 ENOENT (No such file or directory)
open("/usr/lib/vzctl/lib/tls/i686/mmx/libvzctl.so.0.0.2", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/lib/vzctl/lib/tls/i686/mmx", 0xbffff298) = -1 ENOENT (No such file or directory)
open("/usr/lib/vzctl/lib/tls/i686/cmov/libvzctl.so.0.0.2", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/lib/vzctl/lib/tls/i686/cmov", 0xbffff298) = -1 ENOENT (No such file or directory)
open("/usr/lib/vzctl/lib/tls/i686/libvzctl.so.0.0.2", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/lib/vzctl/lib/tls/i686", 0xbffff298) = -1 ENOENT (No such file or directory)
open("/usr/lib/vzctl/lib/tls/mmx/cmov/libvzctl.so.0.0.2", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/lib/vzctl/lib/tls/mmx/cmov", 0xbffff298) = -1 ENOENT (No such file or directory)
open("/usr/lib/vzctl/lib/tls/mmx/libvzctl.so.0.0.2", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/lib/vzctl/lib/tls/mmx", 0xbffff298) = -1 ENOENT (No such file or directory)
open("/usr/lib/vzctl/lib/tls/cmov/libvzctl.so.0.0.2", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/lib/vzctl/lib/tls/cmov", 0xbffff298) = -1 ENOENT (No such file or directory)
open("/usr/lib/vzctl/lib/tls/libvzctl.so.0.0.2", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/lib/vzctl/lib/tls", 0xbffff298) = -1 ENOENT (No such file or directory)
open("/usr/lib/vzctl/lib/i686/mmx/cmov/libvzctl.so.0.0.2", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/lib/vzctl/lib/i686/mmx/cmov", 0xbffff298) = -1 ENOENT (No such file or directory)
open("/usr/lib/vzctl/lib/i686/mmx/libvzctl.so.0.0.2", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/lib/vzctl/lib/i686/mmx", 0xbffff298) = -1 ENOENT (No such file or directory)
open("/usr/lib/vzctl/lib/i686/cmov/libvzctl.so.0.0.2", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/lib/vzctl/lib/i686/cmov", 0xbffff298) = -1 ENOENT (No such file or directory)
open("/usr/lib/vzctl/lib/i686/libvzctl.so.0.0.2", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/lib/vzctl/lib/i686", 0xbffff298) = -1 ENOENT (No such file or directory)
open("/usr/lib/vzctl/lib/mmx/cmov/libvzctl.so.0.0.2", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/lib/vzctl/lib/mmx/cmov", 0xbffff298) = -1 ENOENT (No such file or directory)
open("/usr/lib/vzctl/lib/mmx/libvzctl.so.0.0.2", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/lib/vzctl/lib/mmx", 0xbffff298) = -1 ENOENT (No such file or directory)
open("/usr/lib/vzctl/lib/cmov/libvzctl.so.0.0.2", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/lib/vzctl/lib/cmov", 0xbffff298) = -1 ENOENT (No such file or directory)
open("/usr/lib/vzctl/lib/libvzctl.so.0.0.2", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0`K\0\000"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=144408, ...}) = 0
old_mmap(NULL, 143328, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40018000
old_mmap(0x4003a000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x22000) = 0x4003a000
close(3)                                = 0
open("/usr/lib/vzctl/lib/libvzctl-simfs.so.0.0.2", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\0\f\0\000"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=6488, ...}) = 0
old_mmap(NULL, 9548, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x4003b000
old_mmap(0x4003d000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x1000) = 0x4003d000
close(3)                                = 0
open("/usr/lib/vzctl/lib/libdl.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY)      = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=11552, ...}) = 0
old_mmap(NULL, 11552, PROT_READ, MAP_PRIVATE, 3, 0) = 0x4003e000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/lib/tls/libdl.so.2", O_RDONLY)   = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\320\32"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=9872, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40041000
old_mmap(NULL, 8632, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40042000
old_mmap(0x40044000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x2000) = 0x40044000
close(3)                                = 0
open("/usr/lib/vzctl/lib/libutil.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/lib/tls/libutil.so.1", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0000\16\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=7828, ...}) = 0
old_mmap(NULL, 10652, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40045000
old_mmap(0x40047000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x1000) = 0x40047000
close(3)                                = 0
open("/usr/lib/vzctl/lib/libc.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/lib/tls/libc.so.6", O_RDONLY)    = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0`Z\1\000"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=1254660, ...}) = 0
old_mmap(NULL, 1264972, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40048000
old_mmap(0x40172000, 36864, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x129000) = 0x40172000
old_mmap(0x4017b000, 7500, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x4017b000
close(3)                                = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4017d000
set_thread_area({entry_number:-1 -> 6, base_addr:0x4017d080, limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, useable:1}) = 0
munmap(0x4003e000, 11552)               = 0
brk(0)                                  = 0x8050000
brk(0x8071000)                          = 0x8071000
brk(0)                                  = 0x8071000
rt_sigaction(SIGPIPE, {SIG_IGN}, NULL, 8) = 0
open("/etc/vz/vz.conf", O_RDONLY)       = 3
stat64("/etc/vz/vz.conf", {st_mode=S_IFREG|0644, st_size=764, ...}) = 0
fstat64(3, {st_mode=S_IFREG|0644, st_size=764, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4003e000
read(3, "## Global parameters\n#\nVIRTUOZZO"..., 4096) = 764
read(3, "", 4096)                       = 0
close(3)                                = 0
munmap(0x4003e000, 4096)                = 0
open("/var/log/vzctl.log", O_WRONLY|O_APPEND|O_CREAT, 0666) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=583260, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4003e000
fstat64(3, {st_mode=S_IFREG|0644, st_size=583260, ...}) = 0
_llseek(3, 583260, [583260], SEEK_SET)  = 0
stat64("/etc/vz/conf//101.conf", 0xbffff7c4) = -1 ENOENT (No such file or directory)
fcntl64(0, F_GETFL)                     = 0x8002 (flags O_RDWR|O_LARGEFILE)
fcntl64(1, F_GETFL)                     = 0x8002 (flags O_RDWR|O_LARGEFILE)
fcntl64(2, F_GETFL)                     = 0x8002 (flags O_RDWR|O_LARGEFILE)
open("/dev/vzctl", O_RDWR)              = 4
ioctl(4, 0x400c2e05, 0xbffff5b0)        = 0
stat64("/var/lib/vz/private/101", 0xbffff294) = -1 ENOENT (No such file or directory)
open("/proc/mounts", O_RDONLY)          = 5
fstat64(5, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4003f000
read(5, "/dev/root.old /initrd cramfs ro "..., 1024) = 352
read(5, "", 1024)                       = 0
close(5)                                = 0
munmap(0x4003f000, 4096)                = 0
ioctl(4, 0x400c2e05, 0xbffff370)        = -1 ESRCH (No such process)
fstat64(1, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 0), ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4003f000
write(1, "VPSID 101 deleted unmounted down"..., 33) = 33
close(4)                                = 0
close(3)                                = 0
munmap(0x4003e000, 4096)                = 0
munmap(0x4003f000, 4096)                = 0
exit_group(0)                           = ?
Re: Broken VPS problem [message #7187 is a reply to message #7171] Fri, 06 October 2006 09:49 Go to previous messageGo to next message
Valmont is currently offline  Valmont
Messages: 225
Registered: September 2005
Senior Member
Please correct me, if I'm wrong. As I think, conf files should be in /etc/vz/conf/ (But I use redhat like system, not debian)

# rpm -qa | grep vz
vzctl-3.0.11-1
vzquota-3.0.8-1
vzctl-lib-3.0.11-1
# ls -la /etc/vz/
total 10
drwxr-xr-x   4 root root  144 Aug 31 01:26 ./
drwx--x--x  45 root root 4312 Oct  1 22:03 ../
lrwxrwxrwx   1 root root   23 Aug 14 22:44 conf -> ../sysconfig/vz-scripts/
drwxr-xr-x   3 root root 1520 Aug 14 22:44 dists/
drwxr-xr-x   2 root root   48 Aug  8 17:17 names/
-rw-r--r--   1 root root  709 Aug 31 01:26 vz.conf

# ls -la /etc/vz/conf/
total 101
drwx-wx-wt  3 root root  808 Oct  6 13:44 ./
drwxr-xr-x  7 root root  800 Sep 28 04:23 ../
-rw-r--r--  1 root root  995 Aug  8 17:17 0.conf
-rw-------  1 root root 1434 Aug 11 13:05 101.conf
-rw-------  1 root root 1731 Sep 11 23:10 102.conf
-rw-------  1 root root 1536 Sep 22 17:33 103.conf
-rw-------  1 root root 1536 Sep 22 17:32 103.conf~
-rw-------  1 root root 1456 Aug 11 13:06 104.conf
-rw-------  1 root root 1435 Feb 13  2006 105.conf.destroyed
-rw-------  1 root root 1475 Feb  8  2006 106.conf
-rw-------  1 root root 1433 Feb  8  2006 107.conf.destroyed
-rw-------  1 root root 1520 Aug 23 21:38 108.conf
-rw-------  1 root root 1491 Jun 22 12:26 109.conf
-rw-------  1 root root 1535 Feb 25  2006 110.conf.destroyed
-rw-------  1 root root 1475 Feb  9  2006 111.conf
-rw-------  1 root root 1435 Feb 20  2006 112.conf.destroyed
-rw-------  1 root root 2137 Sep  4 21:40 113.conf
-rw-------  1 root root 1775 Sep  4 02:53 114.conf
-rw-------  1 root root 1411 Aug 11 13:05 115.conf
-rw-------  1 root root 1968 Sep 22 17:33 120.conf
-rw-------  1 root root 1757 Sep  4 03:18 121.conf
-rw-------  1 root root 1921 Sep  9 01:28 122.conf
drwx------  3 root root  152 Jun  7 20:50 dists/
-rw-------  1 root root 1464 Dec 11  2005 ve-101.conf.conf-sample
-rw-r--r--  1 root root 1536 Aug  8 17:17 ve-light.conf-sample
-rw-r--r--  1 root root 1558 Aug  8 17:17 ve-vps.basic.conf-sample
-rwx------  1 root root 4967 Sep  9 04:29 vps.mount*



So, if it's right for debian system, you can create additional catalogs, and copy *.conf file there. Then try start vps again.


Well. I'm right. Look at this message:
stat64("/etc/vz/conf//101.conf", 0xbffff7c4) = -1 ENOENT (No such file or directory)

[Updated on: Fri, 06 October 2006 09:49]

Report message to a moderator

Re: Broken VPS problem [message #7192 is a reply to message #7171] Fri, 06 October 2006 10:19 Go to previous messageGo to next message
Vasily Tarasov is currently offline  Vasily Tarasov
Messages: 1345
Registered: January 2006
Senior Member
ferp,

I suppose Valmount is right. Old versions of vzctl used
not /etc/vz/conf/, but /etc/sysconfig/vz-scripts. So I suppose debian OpenVZ package doesn't provide right update: doesn't copy file or creat symlink. You should do it manually. And you can also post a bug to Debian package mantainer.

Thanks,
vass.
Re: Broken VPS problem [message #7193 is a reply to message #7192] Fri, 06 October 2006 10:23 Go to previous messageGo to next message
Valmont is currently offline  Valmont
Messages: 225
Registered: September 2005
Senior Member
Maybe rename topic to *SOLVED* ? )
Re: Broken VPS problem [message #7208 is a reply to message #7193] Fri, 06 October 2006 13:37 Go to previous message
ferp2 is currently offline  ferp2
Messages: 29
Registered: May 2006
Junior Member
Yes, consider it solved. Previously, the templates were located in /vz, whereas now they are found in /var/lib/vz. A symlink solved this problem. Furthermore, the vps config files (eg. 101.conf) were located in /etc/vz, whereas now they are found in /etc/vz/conf. Again I symlinked and was able to restart my vps successfully. Thanks for your suggestions.

Ferp2
Previous Topic: *SOLVED* vzuym: ERROR: No such OS template: install
Next Topic: *SOLVED* Firewall rule don't allow ftp while port 21 is open
Goto Forum:
  


Current Time: Tue Aug 13 05:18:14 GMT 2024

Total time taken to generate the page: 0.02895 seconds