Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

How to create a shared disk across two or more virtual machines setup on ESX 4.1 ?

My setup : 1. Created three virtual machines on ESX 4.1 2. All the virtual machines have RHEL5U3 installed.

Question : I wanted to create one disk of size 2GB and make it shared across above three virtual machines.

share|improve this question
    
Are you trying to create a template or do you want all three of your virtual machines to mount the same block level device (disk) simultaneously? –  gravyface Jun 16 '11 at 12:45
    
Yes I wanted to mount same block level device on all the virtual machines (guest os) simultaneously. –  manas k Jun 16 '11 at 12:49
add comment

1 Answer

Big giant caveat. You need to disable caching on the vm's to get a consistent view of the shared disk.

disable caching! disk.locking = "FALSE" diskLib.dataCacheMaxSize = "0"

This would still require a clustered file system.

While yes it is possible, numerous vmware support documents mention corruption as a recurring theme. They also recommend you use a RAW LUN instead of vmdk. I would use something like drbd to do this.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.