Share a vmdk between 2 VMs?

Home Forums Virtualization VMware Virtualization Share a vmdk between 2 VMs?

This topic contains 8 replies, has 3 voices, and was last updated by Avatar Maish 5 years, 8 months ago.

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • Avatar
    shmengie
    Member
    #163284

    Hi there:

    So we have a 2003 VM SQL server that we need to upgrade to 2012. SQL and the OS are on C; data on E. E is a separate vmdk file. Rather than bring the server down, my plan is to build a new Server to run concurrently and then point everything there when complete.

    So, my question is: While configuring the new server, can it share the E drive vmdk with the current server?

    VSphere 4.1, if that matters.

    Thanks!

    Avatar
    joeqwerty
    Moderator
    #304251

    Re: Share a vmdk between 2 VMs?

    If by “share” you mean “access simultaneously” the answer is no. NTFS is not a clustered file system and an NTFS volume accessed by more than one system would quickly lead to data corruption.

    Avatar
    shmengie
    Member
    #247223

    Re: Share a vmdk between 2 VMs?

    Yes, I did mean “access simultaneously.” Well, too bad for me, then!

    Thanks!

    Avatar
    Maish
    Member
    #326199

    Re: Share a vmdk between 2 VMs?

    The way to do that would be to share the second drive on server1 and then access it through a shared drive on server2

    The only way to access the disk from both machines – is by using a Windows cluster – that is usually used for Application clusters.

    I think for your purpose you should use a network share.

    Avatar
    shmengie
    Member
    #247224

    Re: Share a vmdk between 2 VMs?

    Anybody know anything about this? Looks like just what I’m looking for…

    https://communities.vmware.com/blogs/Abhilash_hb/2013/08/25/clustering-using-sharing-of-vmdks-between-virtual-machines

    Avatar
    joeqwerty
    Moderator
    #304252

    Re: Share a vmdk between 2 VMs?

    That allows you to share the disk at the VMFS/VMDK level. It does not allow you to share it at the NTFS level. Using that method and having both SQL Servers accessing the NTFS volume will surely destroy your databases.

    Avatar
    shmengie
    Member
    #247225

    Re: Share a vmdk between 2 VMs?

    Joe, you’re killing me with bad news! Better that than hosing everything.

    Thanks!

    Avatar
    joeqwerty
    Moderator
    #304253

    Re: Share a vmdk between 2 VMs?

    Apologies. :(

    The only way to do it (AFAIK) is to use a clustered file system at the OS/Application level.

    Avatar
    shmengie
    Member
    #247226

    Re: Share a vmdk between 2 VMs?

    LOL, no need to apologize. I’d rather have accurate bad news, than inaccurate good news. Thanks again!

Viewing 9 posts - 1 through 9 (of 9 total)

You must be logged in to reply to this topic.