Quoting zoolook (nbensa+lxcus...@gmail.com):
> Hello,
> 
> I'm testing a little cluster of lxc hosts where /var/lib/lxc (actually
> /srv/lxc) is on nfs (rootfs are on lvm over iscsi). Using
> ppa:ubuntu-lxc/daily, lxc-create fails with:
> 
> 
> sysadmin@lxc0:~$ sudo lxc-create -n test1 -P /srv/lxc -B lvm --vgname
> vg_vmstorage --lvname lxc-test1-root --fssize 2G -t ubuntu -- -r
> precise
> [sudo] password for sysadmin:
> lxc-create: Bad file descriptor - Error locking partial file
> /srv/lxc/test1/partial
> lxc-create: _recursive_rmdir_onedev: failed to delete /srv/lxc/test1
> lxc-create: Error creating container test1
> 
> 
> I can't find any error on dmesg or /var/log in the hosts or the nfs
> server that points me in the right direction.
> 
> nfs server is ubuntu precise, lxc hosts are precise and raring.
> 
> Anyone has any idea?

grrr.  flock doesn't work on nfs?  might have to do some ioctl
funkiness.  I'll have to look at this, but not today, so if you
can get a patch before I do that'd be great.

as a workaround in the meantime, I'd suggest

        sudo mkdir -p /srv/lxc/locks
        sudo mount -t tmpfs tmpfs /srv/lxc/locks

so the lockfiles aren't on nfs :)

------------------------------------------------------------------------------
How ServiceNow helps IT people transform IT departments:
1. A cloud service to automate IT design, transition and operations
2. Dashboards that offer high-level views of enterprise services
3. A single system of record for all IT processes
http://p.sf.net/sfu/servicenow-d2d-j
_______________________________________________
Lxc-users mailing list
Lxc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxc-users

Reply via email to