Uploaded image for project: 'OpenVZ'
  1. OpenVZ
  2. OVZ-6002

Can't place ploop container on ZFS

    XMLWordPrintable

    Details

    • Type: Feature Request
    • Status: Closed
    • Priority: Minor
    • Resolution: Won't Fix
    • Fix Version/s: OpenVZ-legacy
    • Component/s: Containers::Userspace
    • Security Level: Public
    • Environment:
      Operating System: Other
      Platform: Other

      Description

      Hello!

      After migration to ploop by default we can't create containers on OpenZFS (ZFS on Linux).

      cat /proc/mounts|grep zfs
      vz /vz zfs rw,relatime,xattr 0 0

      uname -a
      Linux CentOS-65-64-minimal 2.6.32-042stab088.4 #1 SMP Thu Apr 3 17:41:05 MSK 2014 x86_64 x86_64 x86_64 GNU/Linux

      ploop-1.11-1.x86_64
      vzctl-4.7-1.x86_64

      vzctl create 113 --ostemplate centos-6-x86_64 --layout ploop
      Creating image: /vz/private/113.tmp/root.hdd/root.hdd size=2306867K
      Creating delta /vz/private/113.tmp/root.hdd/root.hdd bs=2048 size=4614144 sectors v2
      Error in do_create_delta (ploop.c:325): Can't open /vz/private/113.tmp/root.hdd/root.hdd: Invalid argument
      Failed to create image: Error in do_create_delta (ploop.c:325): Can't open /vz/private/113.tmp/root.hdd/root.hdd: Invalid argument [1]
      Destroying container private area: /vz/private/113
      Creation of container private area failed

      I found code on this line and isolate problem to external snippet: https://gist.github.com/pavel-odintsov/11140995

      And got: Can't create file with flags: O_RDWR|O_CREAT|O_DIRECT|O_EXCL errno 22 errtext: Invalid argument

      Could you add support for filesystems without O_DIRECT or it's not possible by design?

      simfs was more agile for selecting filesystem but with ploop we locked to ext4 which is not so excellent fs :( I will be happy if you add another filesystem support to ploop :)

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              kir Kir Kolyshkin
              Reporter:
              pavel.odintsov@gmail.com Pavel Odintsov
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: