Operating System - HP-UX
1753687 Members
5203 Online
108799 Solutions
New Discussion юеВ

Re: Can we mount a device on more than one machine at a time ?

 
Masthan
Advisor

Can we mount a device on more than one machine at a time ?


Hi All,

On any operating system(unix/linux/solaris), if a device is shared by more than one machine, Can we mount that device on all the machines?

If so how? if not why ?

7 REPLIES 7
Torsten.
Acclaimed Contributor

Re: Can we mount a device on more than one machine at a time ?

It depends on the file system used.

Some file systems are able to be shared between several machines - some not.

The problem is, if you share a file system that is not able to do this, one host will modify the file system while another is doing the same without any knowledge about this - you will have a perfectly corrupted system then.

Possible workarounds are read-only mounts or nfs.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Yogeeraj_1
Honored Contributor

Re: Can we mount a device on more than one machine at a time ?

hi,

Using NFS you can mount the same share (as defined in your /etc/exports) on several machines. This is quite easy to implement. see "man nfs" and "man exports"

hope this helps!

kind regards
yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)
Steven E. Protter
Exalted Contributor

Re: Can we mount a device on more than one machine at a time ?

Shalom,

NFS does seem to be the best tool for the job.

The machine acting as NFS server will have to access the file locally, but this will work.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Torsten.
Acclaimed Contributor

Re: Can we mount a device on more than one machine at a time ?

Your profile says:
I have assigned points to 0 of 49 responses to my questions.



Please read
http://forums1.itrc.hp.com/service/forums/helptips.do?#33

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
A. Clay Stephenson
Acclaimed Contributor

Re: Can we mount a device on more than one machine at a time ?

Veritas makes an extension to its vxfs filesystem called the Clustered File System which does just what you want and is available for a number of platforms. This CFS product is available directly from HP.

The problem with trying to mount the same filesystem on multiple hosts is buffer cache consistency. Normally server A won't have a clue about what is in server B's buffer cache and absolute chaos is assured. CFS maintains a link between all hosts so that the filesystem appears to be a local vxfs filesystem on all hosts.

Now, it is possible to "mount" raw devices on multiple hosts and since raw devices bypass the buffer cache, it is possible for these to read and write to the same device from multiple host but the software must handle device contention itself. In addition to disk devices, tape devices can be shared among multiple hosts.
If it ain't broke, I can fix that.
Geoff Wild
Honored Contributor

Re: Can we mount a device on more than one machine at a time ?

Yes it is possible - either via NFS or Cluster File System.

Course, with CFS, you need ServiceGuard:

http://docs.hp.com/en/T1859-90048/ch03s11.html


Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Jan van den Ende
Honored Contributor

Re: Can we mount a device on more than one machine at a time ?

Masthan,

>>>
On any operating system ...
<<<

Well, if you are willing to include OpenVMS in your definition of "any", then that is your answer.

In VMS (as it is still called by its afficionados) that is the normal behavior.
Always. In any access mode. The systems can be VAX, Alpha, and Itanium, or emulations on X86 or X84-64. Simultaniously. Officially supported up to 96 systems maximum, the number for unsupported but functioning configs gets wat into 3 digits.

hth

Proost.

Have one on me.

jpe
Don't rust yours pelled jacker to fine doll missed aches.