Home > Ask the Data Storage Experts > SAN management Questions & Answers > Achieving concurrent write access to a storage-area network (SAN) without corruption
Ask The Storage UK Expert: Questions & Answers
EMAIL THIS

Achieving concurrent write access to a storage-area network (SAN) without corruption

Steve Pinder EXPERT RESPONSE FROM: Steve Pinder

Pose a Question
Other Storage UK Categories
Meet all Storage UK Experts
Become an Expert for this site


Storage UK Tips and Expert Advice
Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us    Add to Google


>
QUESTION POSED ON: 14 December 2009
Our business has two load-balanced Web servers trying to access the same LUN of a storage-area network (SAN). Both Web servers need to read and write to the same LUN. We use Microsoft Windows 2003 Standard Edition for our operating system and an EMC SAN. How can we achieve concurrent write access to our SAN without corruption?

>
To ensure that storage-area network (SAN) corruption doesn't occur, both hosts need to be aware of all data changes. This arbitration takes place at the application layer and has nothing to do with the underlying SAN hardware. A disk array merely allows hosts to access logical devices through logical unit number (LUN) masking; once this is achieved, the array's job is finished. Similarly, the operating system carries out a discovery cycle when it boots up and, if the shared LUN is available, will assume it has exclusive access to the LUN.

The intelligent layer that allows multiple hosts to access the same data set without corruption is the application that the Web servers are running. If the data set is read-only, then many hosts are allowed to access the data at once, as there's no possibility of them attempting to change the data while more than one host has the data open. If the data set is read/write, then the access control is different and there are alternative ways to ensure data consistency:

Alternative ways to ensure data consistency

  • Locking records after access, denying requests from other hosts. This guarantees that only the first host is allowed to access the data. This is fairly simple but can cause issues with records being open for extended periods of time (for example, somebody closes a browser without releasing the application, etc.). To a certain extent, timeouts can mitigate these issues, but an explicit lock isn't an ideal solution.
  • Using a timestamp on the record. Any host is allowed to access any record but must save the timestamp of the record when it's accessed. If a host wants to update a record, it must read the timestamp of the record again and compare it against the copy of the timestamp it saved earlier. If they match, the record hasn't been updated since it was opened and the update can be applied in the safe knowledge that the data is consistent. If the timestamp is different, then the record has been updated by somebody else. In this scenario, the updated record must be read and fed back into the calculation before another write is attempted. This must go on until the timestamps match and the update can be written safely.
  • Raising a flag when an access attempt is made. This states that the record is being updated and read-only access is currently allowed. This also leaves the host to make a decision on whether read-only access is acceptable or if it would prefer to wait until exclusive access is granted.

When deciding on which access method to implement, you will need to consider the needs of the application being built.


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us    Add to Google



RELATED CONTENT
SAN management
LUN masking or LUN zoning: Which one is a better fit for a SAN fabric?
SAN purchase factors include cloud storage and I/O performance
What are the key shared storage options available to SMBs/SMEs for document management?
Storage-area network (SAN) fabrics: Mesh versus core-edge topology
How to calculate the optimum fan-out ratio on a storage-area network (SAN) array
What are the main steps when configuring a storage-area network (SAN) switch?
What is thin provisioning and how does it work?
Key steps in purchasing/implementing a shared data storage subsystem
What issues are likely to arise when merging SAN fabrics with switches from different vendors?
How to choose the right RAID configuration for a new storage-area network (SAN)

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary



Search and Browse the Expert Answer Center
Search and browse more than 25,000 question and answer pairs from more than 250 TechTarget industry experts.
Browse our Expert Advice



Enterprise Storage Solutions - SAN or NAS
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 2008 - 2010, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts