Why are two servers viewing the same drive unable to view the same files?

9,756

iSCSI presents block based storage to the Servers. In most scenarios the servers mount this storage with a filesystem (such as NTFS) that is owned and managed by one server only. NTFS (which is what you are probably using here) is not normally a cluster aware file system so if secondary hosts have visibility to the same volume they will either be locked out (hopefully) or will corrupt the volume.

For two separate machines to share an iSCSI volume concurrently you need to have a cluster aware file system that supports this. VMware's VMFS does this as does the Cluster Shared Volumes (CSV) clustered file system available in W2K8 R2 Hyper-V.

The simplest solution for you is to present the storage to one server and share that volume so that the second server can map to it using SMB.

Edited to add:
There's no real way around the double network hop if you opt for sharing out the volume via Windows but for most server applications you should be able to specify a UNC Path (\\Server\sharename) rather than a mapped drive letter. This will work if the service is running under an account that has rights to the share.

You don't say what sort of iSCSI target you have - it may be possible to configure it to act as (say) an SMB or NFS share directly. Windows Server 2008 R2 supports the Unix Interoperability components which includes an NFS client. This may provide you with a mechanism that avoids the double network hop but I can't comment on the performance, it might not be any better than the SMB share.

Share:
9,756

Related videos on Youtube

Russ
Author by

Russ

As a key member of any technology architecture team I do what it takes to accomplish technical and business goals with quality, efficiency, and accountability. I specialize in providing technology leadership that inspires while bringing new ideas, and technologies that result in high performance, high availability enterprise products. My primary goal has always been to improve efficiency and productivity for the company through direct contributions as well as the technical development and mentorship of the team working with me. I bridge the Communication gap with leadership, team leads, project managers, and internal partners to guarantee reliable and regular software delivery. While simultaneously bringing a broad level of expertise in both agile software development and system integration, as well as a big picture approach to development with organizational goals and measurable business results.

Updated on September 17, 2022

Comments

  • Russ
    Russ almost 2 years

    I have two windows 2008R2 servers. Both are pointing to the same iSCSI drive on our SAN, but both servers don't see the same data.

    Server 1 can write data to the SAN, and can immediately see what it wrote. Server 2, can NOT see what server 1 wrote after the last time server 2 was rebooted.

    The OS doesn't seem to be an issue here. I have Win2K3 servers, Win2008 servers, and 2008R2 systems, all with the same problems.

    Only the one that writes can read that data until the other one is rebooted.

    Where can I start looking to try and resolve this problem?

    I thought the whole point of clustering ( not what I am doing, but still ), was to have two systems point to the same SAN drive, and share common data. That leads me to believe that I should be able to read and write between the two systems sharing the same drive.

    What am I missing here?

  • David Mackintosh
    David Mackintosh over 14 years
    +1 don't do that. The reason why the second machine can't see the first machine's writes is because the second machine is maintaining its own cache of what's going on. Sharing iSCSI LUNs RW is a good way to corrupt things. iSCSI isn't for file sharing.
  • Oskar Duveborn
    Oskar Duveborn over 14 years
    +1 for CSV.. note that as far as I recall this is only supported for shared storage of hyper-v virtual machines right now - and is extremely basic (though working for this intended task) ^^
  • Helvick
    Helvick over 14 years
    @Oskar - you're 100% right there - CSV's are only used for Hyper-V sharing and can't be considered general purpose file systems in any sense. There's quite a good article about CSV's here: vcritical.com/2009/09/hands-off-that-csv . The backup problem is pretty serious but DPM 2010 is supposed to resolve that.
  • John Gardeniers
    John Gardeniers over 14 years
    Have another +1. It's nice when the first answer is so good that no further answers are required.