Article ID: 120500, created on Mar 11, 2014, last review on May 10, 2014

  • Applies to:
  • Virtuozzo containers for Linux 4.6

Symptoms

It's impossible to clone a container, it fails with the following errors:

[root@vz root]# vzmlocal -C 101:1101
...
vzctl : Running vzquota off failed for Container 101 [3]
/usr/sbin/vzctl exited with code 66
can not stop/umount CT#101 : /usr/sbin/vzctl exited with code 66
Can't move/copy CT#101 -> CT#1101, [], [] : can not stop/umount CT#101 : /usr/sbin/vzctl exited with code 66
stop_track : ioctl on '/vz/root/101' : Inappropriate ioctl for device

In /var/log/vzctl.log the following or similar messages appear:

2014-03-11T11:53:01+0100 vzctl : Container 101 : vzquota : (error) Quota off syscall for id 101: Device or resource busy
2014-03-11T11:53:01+0100 vzctl : Container 101 : vzquota : (error)      Possible reasons:
2014-03-11T11:53:01+0100 vzctl : Container 101 : vzquota : (error)      - Container's root is not unmounted
2014-03-11T11:53:01+0100 vzctl : Container 101 : vzquota : (error)      - there are opened files inside Container's root/prvate area
2014-03-11T11:53:01+0100 vzctl : Container 101 : vzquota : (error)      - your current working directory is inside Container's
2014-03-11T11:53:01+0100 vzctl : Container 101 : vzquota : (error)        root/private area
2014-03-11T11:53:01+0100 vzctl : Container 101 : vzquota : (error)      Currently used file(s):
2014-03-11T11:53:01+0100 vzctl : Container 101 : /vz/private/101/fs/cow
2014-03-11T11:53:01+0100 vzctl : Container 101 : /vz/private/101/fs/root/root
2014-03-11T11:53:01+0100 vzctl : Container 101 : /vz/private/101/fs/root/usr/X11R6/._vzlnk_.
2014-03-11T11:53:01+0100 vzctl : Container 101 : /vz/private/101/fs/root/usr/sbin/._vzlnk_.
2014-03-11T11:53:01+0100 vzctl : Container 101 : /vz/private/101/fs/root/usr/share/locale/es/._vzlnk_.
2014-03-11T11:53:01+0100 vzctl : Container 101 : /vz/private/101/fs/root/usr/share/locale/._vzlnk_.

Cause

The issue is recognized as a product bug PCLIN-25815: it is impossible to run vzquota off for a stopped container, due to several files still being in use by a process.

Resolution

It is possible to clone the container in online mode, but it will still stop the source container:

# vzctl clone 101:1101 --online

To avoid the issue with used files, it is required to reboot the node.

The product bug is actual for PVC 4.0/4.6 only, so it is advised to upgrade to PVC >= 4.7 in order to solve the problem permanently.

Search Words

vzctl clone

/usr/sbin/vzctl exited with code 66

Inappropriate ioctl for device

36627b12981f68a16405a79233409a5e 2897d76d56d2010f4e3a28f864d69223 d02f9caf3e11b191a38179103495106f e8e50b42231236b82df27684e7ec0beb

Email subscription for changes to this article
Save as PDF