2

I am sorry, but know virtually nothing about SAN.

If we have two or more (heterogeneous Linux) servers connected to a SAN: is it possible to allocate the same storage area (i.e. file system) to all servers and all servers have read/write access to that file system? What will happen if two processes running on two different servers write concurrently into the same file residing on that shared file system (e.g. a log file)? Is data corruption possible or even immanent?

What will be the best practice here? If I mount it only on one server and export it to all the others, I have introduced a single point of failure. Unless I also make use of some clustering solution which I tend to avoid if possible.

2 Answers 2

4

Short answer: no.

Technical answer: yes.

Long answer: In general a section of the SAN will be allocated for specific hosts. Each host will attach and view those blocks as being owned by only itself. It will format that space and in most ways it will be effectively treated as local storage. There are however filesystems (e.g., GFS) that will allow multiple hosts to use the same set of blocks on a shared SAN without clobbering each other.

You will need to use a filesystem that has been explicitly designed for this purpose (neither ext nor ntfs are). And doing this is somewhat new. The last time I checked (about a year ago) there were significant bugs in GFS that I wasn't willing to deal with in production.

2
  • Thanks a lot for your answer. The short answer was my fear, the technical my hope and the long answer expresses my understanding of how a SAN may work in the first half, but opens options in the second half, which brings me to the question: How does a cluster FS solve the concurrency? Is there some IPC involved, where all clients that share the FS talk to each other?
    – struppi
    Feb 3, 2011 at 21:09
  • For a simplistic answer, it locks the blocks before writing them. Other members can't write to the block while a lock is in place.
    – bahamat
    Feb 4, 2011 at 5:49
0

The better question would be to start asking what is a SAN, LAN, or a WAN?

a LAN consists of servers, printers, network L2 switches, vlan's, laptops, desktops, coffee machine and host of other devices today

a SAN consist of storage array's, fiber channel switches, HBA, iSCI netowkr cards, iscsi switch (regular L2 switches)

a WAN consist of routers, L3 devices, MPLS circuits, L2 circuits, dark fiber switches et cetera

a SAN doesnt write to disk, the array inside the SAN writes and maintains data. common misconception

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .