1

I am in the process of deploying a two-node CentOS+Xen with iSCSI for live migration. The idea is to create a 600GB iSCSI lun, mount it on one of the servers and partition it with LVM. Each VM will have its own logical volume in the LUN. I will do a vgchange -a y on the other server to activate the logical volumes.

The question is: Am I going to need a clustered file system? (GFS2,OCFS) or its going to be fine? Also, in case I add 2-3 more servers will this deployment still work or there is no way of doing it without a clustered file system? In each logical volume only one VM will write at the time and it will switch to another server only when it will migrate.

I want to keep it as simple as possible, no RHCS or any other similar solution.

U. Windl
  • 286
  • 2
  • 13
  • It has been two years since this question was asked. Does anyone have an update? Still not necessary to have a clustered FS? What are the current best practices for Xen + iSCSI + multiple hosts (and MPIO)? – Jed Daniels May 16 '11 at 23:18

2 Answers2

3

No, you don't need a clustering filesystem, but you will need clustered LVM to manage the shared LVM metadata. If you really want to avoid that complexity, you'll need to put each VM in it's own LUN.

womble
  • 95,029
  • 29
  • 173
  • 228
  • Actually non-clustered LVM might work if you never change the LVM configuration while more than one node is active. Interestingly that also applies to GPT-partitioned disks (which might be an interesting alternative to LVM as it allows theoretically infinite number of partitions). – U. Windl Mar 24 '22 at 11:36
0

This article on Xen Live migration with Debian and iSCSI covers pretty much everything you need to do, though you might need to change a couple of paths, but the short answer is no you don't need a clustered filesystem with iSCSI, as it's a block-based protocol rather than a file-based one like CIFS or NFS.

Ewan Leith
  • 1,695
  • 8
  • 7