Article ID: 126784, created on Sep 1, 2015, last review on Sep 1, 2015

  • Applies to:
  • Virtuozzo containers for Linux

Symptoms

An attempt to convert a container from VZFS to Ploop format fails due to inability to create Ploop image.

[root@hwnode ~]# vzctl convert 100 --velayout 5 
Moving/copying CT#100 -> CT#100, [], [] ...
The Container's file system will be converted to ext4.
Calculate disk usage...
Failed to create image: Error in init_dd (ploop.c:712): Can't create /vz/private/100/root.hdd/DiskDescriptor.xml: File exists [38]
vzctl2_create_image(/vz/private/100) error: Failed to create image: Error in init_dd (ploop.c:712): Can't create /vz/private/100/root.hdd/DiskDescriptor.xml: File exists [38]
vztt_pfcache_xattr : Error: opendir(/vz/root/100.ploop) error: No such file or directory
/usr/libexec/vztt_pfcache_xattr exited with code 1
/usr/libexec/vztt_pfcache_xattr clear /vz/root/100.ploop failed
rmdir(/vz/root/100.ploop) error : No such file or directory
Umounting CT#100 ...
/usr/sbin/vzctl exited with code 32
Can't move/copy CT#100 -> CT#100, [], [] : /usr/sbin/vzctl exited with code 32

Cause

The container's private area contains the directory root.hdd from the previous conversion attempt.

[root@hwnode ~]# ll /vz/private/100/ /vz/private/100/root.hdd/
/vz/private/100/:
total 24
drwxr-xr-x 2 root root 4096 Jun  2 11:53 dump
drwx------ 5 root root 4096 Sep  6  2012 fs
-rw------- 1 root root 2400 Jun  2 17:23 quota.fs
drwx------ 4 root root 4096 Jun  2 11:54 root.hdd
drwxr-xr-x 2 root root 4096 Sep  6  2012 scripts
lrwxrwxrwx 1 root root   12 Sep  6  2012 templates -> fs/templates
-rw-r--r-- 1 root root 1113 Jun  2 11:53 ve.conf

/vz/private/100/root.hdd/:
-rw-r--r-- 1 root root        791 Jun  2 11:54 DiskDescriptor.xml
-rw------- 1 root root          0 Jun  2 11:54 DiskDescriptor.xml.lck
-rw------- 1 root root 1909456896 Jun  2 11:54 root.hds
drwx------ 2 root root       4096 Jun  2 11:54 root.hds.mnt
drwxr-xr-x 2 root root       4096 Jun  2 11:54 templates

Resolution

Remove the directory with the Ploop image from the container's private area and retry the conversion:

~# rm -rf /vz/private/100/root.hdd
~# vzctl convert 100 --velayout 5

Search Words

convert

Failed to create image: Error in init_dd

vzctl convert

d02f9caf3e11b191a38179103495106f 2897d76d56d2010f4e3a28f864d69223 e8e50b42231236b82df27684e7ec0beb

Email subscription for changes to this article
Save as PDF