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

[Xen-users] iscsi vs nfs for xen VMs


  • To: xen-users@xxxxxxxxxxxxxxxxxxx
  • From: Jia Rao <rickenrao@xxxxxxxxx>
  • Date: Fri, 7 Aug 2009 09:48:56 -0400
  • Delivery-date: Fri, 07 Aug 2009 06:49:36 -0700
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=tMwvjVKfQtZBu9h7XofHiYWBAt4CpemCZES1stOuHK0+0/Nl6KhzXZkjKqlsiV2WPr B+as/dUmYre3Q64EhbqsKOMRtrizdoAHVU2qM1L0gGRKtA+TAHnIsgbmjOHfLRs2r3u+ QaEPlxBRX8R1IYyhZn0FxIX88JDJlk/Bz5+wo=
  • List-id: Xen user discussion <xen-users.lists.xensource.com>

Hi all,

I used to host the disk images of my xen VMs in a nfs server and am considering move to iscsi for performance purpose.
Here is the problem I encountered:

For iscsi, there are two ways to export the virtual disk to the physical machine hosting the VMs.

1. Export the virtual disk (at the target side , it is either an img file or a lvm) as a physical device, e.g sdc, then boot the VMs using "phy:/dev/sdc".

2. Export the partition containing the virtual disks (in this case, the virtual disks are img files) to each physical machine as a physical device, and then on each physical machine I mount the new device to the file system. In this way, the img files are accessible from each physical machine (similar as nfs), and the VMs are booted using tapdisk "tap:aio/PATH_TO_IMGS_FILES".

I prefer the second approach because I need tapdisk (each virtual disk is a process in host machines) to control the IO priority among VMs.

However, there is a problem when I share the LUN containing all the VM img files among multiple hosts.
It seems that any modifications to the LUN (by writing some data to folder that mounted LUN ) is not immediate observable at other hosts sharing the LUN (In the case of nfs, the changes are immediate synchronized at all the nfs clients). The changes are only observable when I umount the LUN and remount it on other physical hosts.

I searched the Internet, it seems that iscsi is not intended for sharing a single LUN between multiple hosts.
Is it true or ,I need some specific configuration of the target or initiator to make the changes immediately synchronized at multiple initiator?

Thanks in advance,
Jia
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users

 


Rackspace

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