[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-API] Storage Repository FileSR on ZFS won't work - Linux


  • To: Xen API mailing list <xen-api@xxxxxxxxxxxxx>
  • From: Dawid Kowalski <dkadds2@xxxxxxxxx>
  • Date: Tue, 30 Dec 2014 18:11:14 +0100
  • Delivery-date: Tue, 30 Dec 2014 17:11:33 +0000
  • List-id: User and development list for XCP and XAPI <xen-api.lists.xen.org>

Hi Guys,

Just wanted to report that file based Storage Repository won't work on Linux systems as td-util is required O_DIRECT when creating image file not supported on ZFS (Linux).

When creating vm, i.e. vm-import it calls td-util similar to below:
td-util create vhd 2048 /path/to/file

Strace shows:
open("/path/to/file", O_WRONLY|O_CREAT|O_TRUNC|O_DIRECT, 0644) = -1 EINVAL (Invalid argument)

I'll try to patch td.c to skip O_DIRECT flag but this is rather dirty hack than proper solution of the problem.

Regards,
Dawid

_______________________________________________
Xen-api mailing list
Xen-api@xxxxxxxxxxxxx
http://lists.xen.org/cgi-bin/mailman/listinfo/xen-api


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.