1 storage accessable from two KVM-VMs

Jun 25, 2009
31
0
6
Zurich, Switzerland
after googling and searching the proxmox-forum we have a question.

we want migrate our suse 9.3 smb/ldap server to debian smb/ldap, both kvm and in a proxmox machine.

is it possible, that both VMs have access to a physical partition? the VMs never are up at the same time. in that partition is the data, that should be overtaked instantely by the new smb/ldap server (debian). We cannot use NFS as it cancels all extended file attributes.

help :(
 
if you access a file system from two servers you need a cluster file system, e.g. ocfs2. otherwise you will get corrupted data if both are accessing it.

if you do not have a cluster file system you can still assign the disk to both VM´s, but take care that never both VM are up.
 
thank you for your time, we appriciate it very much.

if you access a file system from two servers you need a cluster file system, e.g. ocfs2. otherwise you will get corrupted data if both are accessing it.
yes, i know
if you do not have a cluster file system you can still assign the disk to both VM´s, but take care that never both VM are up.
this is what we want, without NFS, but in the storage model and after trying we did not find how "you can still assign the disk to both VM´s"
when we add a new LVM HD to a VMs, every VM make a HD for its own, its not the same HD. Sorry, must be a boring question.
 
try editing the VM config files directly, see /etc/qemu-server/VMID.conf
 
just add the partition to both VM? (e.g. /dev/sdb1)

see 'man qm' for the syntax used in VMID.conf files.