Tag Archives: OpenVZ

Restarting network (via systemctl): Job for network.service canceled

service network restart
Restarting network (via systemctl): Job for network.service canceled.
[FAILED]

systemctl restart network
Job for network.service canceled.

If cyberpanel server network is down (venet0: mtu 1500 qdisc noop state DOWN) after server reboot, make sure:

vi /etc/fstab
#/usr/.tempdisk /tmp ext4 loop,rw,noexec,nosuid,nodev,nofail 0 0
#/tmp /var/tmp none bind 0 0

service network restart
Restarting network (via systemctl):
[ OK ]

Error: unsupported deleted submount: (deleted)/dev/log

Setting up checkpoint…
set CPU flags..
suspend…
Can not suspend container: Invalid argument
Error: unsupported deleted submount: (deleted)/dev/log
Checkpointing failed
Error in run_cmd (pcopy.c:334): Command date ‘+%s.%N’ > /tmp/tmp.sJn0B2zf0e; vzctl –skiplock chkpnt 31581 –suspend –flags 161183 1>&2 failed with code 16
Error: ploop copy -s /dev/ploop45973 failed
Error: Failed to copy top ploop delta
Killed by signal 15.

To find issue:
grep /dev/log /proc/*/mountinfo 2>/dev/null
/proc/20518/mountinfo:259 239 0:85 /log /dev/log rw,nosuid,relatime shared:161 – devtmpfs devtmpfs rw,size=1792000k,nr_inodes=448000,mode=755

lsof -p 20518
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
mysqld 30264 mysql cwd DIR 182,735569 4096 5768267 /var/lib/mysq

Too many open files in system openvz

id: cannot find name for user ID 0
-bash: cannot make pipe for command substitution: Too many open files in system
-bash: /etc/profile.d/less.sh: Too many open files in system
-bash: /etc/profile.d/mc.sh: Too many open files in system
-bash: /etc/profile.d/vim.sh: Too many open files in system
-bash: /etc/profile.d/which-2.sh: Too many open files in system
-bash: /root/.bash_profile: Too many open files in system
-bash-3.2# logout
-bash: /root/.bash_logout: Too many open files in system
-bash: /etc/bash.bash_logout: Too many open files in system
exited from CT XXXX

Fast fix:
vzctl restart XXXX

Error in e2fsck (fsutils.c:288): e2fsck failed (exit code 4)

vzctl mount XXXX
Opening delta /vz/private/XXXX/root.hdd/root.hdd
Adding delta dev=/dev/ploopXXXX img=/vz/private/XXXX/root.hdd/root.hdd (rw)

/dev/ploop15649p1: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY.
(i.e., without -a or -p options)
Error in e2fsck (fsutils.c:288): e2fsck failed (exit code 4)

Failed to mount image: Error in e2fsck (fsutils.c:288): e2fsck failed (exit code 4)
[41]

ploop check -F /vz/private/CID/root.hdd/root.hdd
ploop mount /vz/private/CID/root.hdd/DiskDescriptor.xml
fdisk -l /dev/ploopXXXXX
e2fsck -y /dev/ploopXXXX

ploop umount /vz/private/XXXX/root.hdd/DiskDescriptor.xm

Error: Package: kmod-kvdo vdo ( Requires: kernel dm_put_device)

Error: Package: kmod-kvdo-6.1.0.181-17.el7_5.x86_64 (updates)
Requires: kernel(dm_unregister_target) = 0x35ba4186
Installed: kernel-3.10.0-862.el7.x86_64 (@anaconda)
kernel(dm_unregister_target) = 0x62b8c739
Installed: vzkernel-3.10.0-862.9.1.vz7.63.3.x86_64 (@openvz-os)
kernel(dm_unregister_target) = 0x97f3d3e0
Available: kernel-debug-3.10.0-862.el7.x86_64 (base)
kernel(dm_unregister_target) = 0x9fea9142
Available: kernel-debug-3.10.0-862.2.3.el7.x86_64 (updates)
kernel(dm_unregister_target) = 0x9fea9142
Available: kernel-debug-3.10.0-862.3.2.el7.x86_64 (updates)
kernel(dm_unregister_target) = 0x9fea9142
Available: kernel-debug-3.10.0-862.3.3.el7.x86_64 (updates)
kernel(dm_unregister_target) = 0x9fea9142
Available: kernel-debug-3.10.0-862.6.3.el7.x86_64 (updates)
kernel(dm_unregister_target) = 0xe573fa0d
Available: kernel-debug-3.10.0-862.9.1.el7.x86_64 (updates)
kernel(dm_unregister_target) = 0xe573fa0d
Available: kernel-debug-3.10.0-862.11.6.el7.x86_64 (updates)
kernel(dm_unregister_target) = 0xe573fa0d
Available: vzkernel-debug-3.10.0-862.9.1.vz7.63.3.x86_64 (openvz-os)
kernel(dm_unregister_target) = 0x854b76de
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest

Fix:

yum --disablerepo=* --enablerepo=base install vdo kmod-kvdo

Error in ioctl(CPT_TEST_VECAPS): Resource temporarily unavailable

OpenVZ is running…
Checking for CPT version compatibility
Checking for CPU flags compatibility
Error: CT is locked
Error in ioctl(CPT_TEST_VECAPS): Resource temporarily unavailable
Error: CPU capabilities check failed!
Error: Destination node CPU is not compatible
Error: Can’t continue live migration

Reboot not help:

vzctl restart CTID
Restarting container
Stopping container …
Child 441850 exited with status 7
Killing container …
Child 441851 exited with status 7
Unable to stop container

Fix:

vzctl chkpnt CTID --kill