KVM: two Guests running on two different Hosts mounting same qcow2 concurrently = corruption?
I have two KVM Guests running on two different Hosts that are mounting the same qcow2 via NFS at the same time. Will this lead to corruption of the qcow2? If so, is there a way to prevent this via some sort of locking mechanism?
|
If both mount it read only you should be ok.
Cluster aware filesystems took a long time to develop for a reason. It's called data consistency. Perhaps you shouldn't deliberately circumvent it. |
Why would you want 2 guests to mount the same image at the same time?
|
Have a look at copy on write in the Qemu documentation.
|
I don't think this is a qcow issue exactly but a nfs issue. No matter the basic filesystem or mount mechanism the issue is how nfs handles concurrent access. Samba and nfs are both good at that under some limits. The NFSv4.1 has some locks in place but if aggressive database access or other type of programs on it may be a problem.
|
Quote:
|
Samba and NFS handle SOHO uses of many users just fine.
|
Quote:
|
All times are GMT -5. The time now is 11:01 PM. |