Skip to contentSkip to conversation

KVM, iSCSI and High Availability

DISCUSSION David Martin 3 participants 3 messages Mar 28, 2011 – Mar 29, 2011 1 message not in the archive KVM

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): 130305978.11419.1301329182740.JavaMail.root@mail1.martinsales.net

#1 lore raw

----- Original Message -----

Quoted 46 lines

----- Original Message -----

Quoted 37 lines · Marcin M. Jessa
Quoted 22 lines

Hi.

Over the last several days I've been reading, asking questions, searching the Internet to find a viable HA stack for Ubuntu with KVM
virtualization and shared iSCSI storage. And I'm nearly as confused
as
when I started.

Basically I'm trying to build a KVM enviroment with an iSCSI SAN and
I'm not quite sure what approach to use for storing the virtual guests.
What I understand to get max speed I should install directly to iSCSI
exported raw devices instead of backing disks.
I'm not sure creating many small LUNs, one for each of the guests is
a
good idea.
Would it be better to create just one big LUN and then use LVM to

Quoted 9 lines

devide it and assign one "chunk" for each of the guests? In the same setup I would also like to implement some kind of automatic failover so if one of the KVM hosts is down I could automatically move guests over to the other one. Or just perform live
migration and move one of the guest over to a different host with spare capacity.
What would be the best approach to implement a solution like that?

One LUN per image allows you to implement failover, LVM doesn't (but cluster-LVM does). I recommend using one LUN per image; it's much simpler.

Quoted 7 lines

--
error compiling committee.c: too many arguments to function

--
To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

Quoted 4 lines

CLVM was more complicated initially but is pretty once we got through that. Having to hack around in the SAN manager and then going to the hosts to mess with the multipath configs etc gets old fast. However if your setup is pretty static then I guess it wouldn't matter.

Oops for to cc the list

#2 lore raw

On 3/28/11 6:21 PM, David Martin wrote:

[...]

Quoted 4 lines
Quoted 4 lines

CLVM was more complicated initially but is pretty once we got through that. Having to hack around in the SAN manager and then going to the hosts to mess with the multipath configs etc gets old fast. However if your setup is pretty static then I guess it wouldn't matter.

So you would also use one LUN per guest?
My setup is pretty static but it is possible I would add additional guests and/or hosts to the setup.
What about high avaliability? Would it be reasonable to use OpenAIS + Pacemaker to bring up guests on a different hosts if the "main" hosts was down for maintenance or similar? How is OCFS2 compared to CLVM?

Signature · 1 line
Marcin M. Jessa
#3 lore raw
Quoted 1 line · Marcin M. Jessa

How is OCFS2 compared to CLVM?

different layers, can't compare.

CLVM (aka cLVM) is the cluster version of LVM, the volume manager. the addition of a userspace lock manager lets you do all volume management (create/delete volumes, resize them, add/remove physical devices, etc.) online on any machine and all others will see the change. since locks are only needed while modifying the volume layout, there's no overhead during normal operation.

OCFS2 is a filesystem. specifically, a Cluster filesystem. that means that the same storage can be mounted by several machines and all of them will see the same data consistently. distributed locks are needed for any modification, and cache strategies have to be complex and tied to such locks. scalability is good, since there's no central node; but ultimately limited to the lock performance.

Usually you store cluster filesystems on cluster volumes on cluster storage.

Signature · 1 line
Javier