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

Can't create ploop container on NFS share

    XMLWordPrintable

    Details

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

      Description

      Hello,

      I'm tryed to install ploop container on NFS. But I can't did it because got bug.

      I have nfs_v4 server mounted /vz/private_nfs nfs4:
      159.253.17.220:/technode4 /vz/private_nfs nfs4 rw,relatime,vers=4,rsize=1048576,wsize=1048576,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,clientaddr=159.xx.xx.xx,minorversion=0,local_lock=none,addr=159.xx.xx.xx 0 0


      vzctl create 7804--ostemplate debian-6.0-x86_64 --layout ploop --ipadd 5.45.120.1 --hostname fastvps-ip-parking.fastvps.ee --config vswap-2g --diskspace 10G --private /vz/private_nfs/7804
      Creating image: /vz/private_nfs/7804.tmp/root.hdd/root.hdd size=10485760K
      Creating delta /vz/private_nfs/7804.tmp/root.hdd/root.hdd bs=2048 size=20971520 sectors v1
      Storing /vz/private_nfs/7804.tmp/root.hdd/DiskDescriptor.xml
      Error in do_lock (lock.c:136): Error in flock(/vz/private_nfs/7804.tmp/root.hdd/DiskDescriptor.xml.lck): Bad file descriptor
      Failed to create image: Error in do_lock (lock.c:136): Error in flock(/vz/private_nfs/7804.tmp/root.hdd/DiskDescriptor.xml.lck): Bad file descriptor [23]
      Destroying container private area: /vz/private_nfs/7804
      Creation of container private area failed


      If we check code, found do_lock function did flock call, but with bad argument.

      U can see strace below:

      open("/vz/private_nfs/7804.tmp/root.hdd/DiskDescriptor.xml.lck", O_RDONLY) = 6
      fcntl(6, F_SETFD, FD_CLOEXEC) = 0
      clock_gettime(CLOCK_MONOTONIC, {22757, 261586208}) = 0
      rt_sigaction(SIGRT_2, {0x7f425ba3f5b0, [], SA_RESTORER, 0x7f425c0d1960}, {SIG_DFL, [], 0}, 8) = 0
      timer_create(CLOCK_MONOTONIC, {0x7fffd9d22d08, SIGRT_2, SIGEV_SIGNAL, {...}}, {0x1718cb000000000}) = 0
      timer_settime(0, 0, {it_interval={0, 0}, it_value={60, 0}}, NULL) = 0
      flock(6, LOCK_EX) = -1 EBADF (Bad file descriptor)
      timer_delete(0) = 0
      rt_sigaction(SIGRT_2, {SIG_DFL, [], SA_RESTORER, 0x7f425c0d1960}, NULL, 8) = 0
      write(2, "Error in do_lock (lock.c:136): E"..., 125Error in do_lock (lock.c:136): Error in flock(/vz/private_nfs/7804.tmp/root.hdd/DiskDescriptor.xml.lck): Bad file descriptor

      Could you fix it?

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: