System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

Mount point shared between two different HP-UX box - any thought

SOLVED
Go to solution
Jeeshan
Honored Contributor

Mount point shared between two different HP-UX box - any thought

Hi All

I have two HP-UX machine (whatever it could be), e.g server s1 and s2 and mount point is d1.

my requirement is, if I want d1 to declare in s1 server as full permission to access and mount s2 as readonly permission. Is it possible?

N.B. please do not reply likely NFS or Cluster thought. I do want to apply any procedure apart from this. I have EMC clariion box as my storage box.
a warrior never quits
5 REPLIES
Kapil Jha
Honored Contributor

Re: Mount point shared between two different HP-UX box - any thought

I think you can put specific permissions in /etc/fstab of particular server.
BR,
Kapil
I am in this small bowl, I wane see the real world......
Jeeshan
Honored Contributor

Re: Mount point shared between two different HP-UX box - any thought

thanks Kapil for your response.

But I need exact docs or procedure for this.

I mean step by step procedure
a warrior never quits
Wim Rombauts
Honored Contributor
Solution

Re: Mount point shared between two different HP-UX box - any thought

Without NFS, CIFS or a cluster filesystem, there is no supported way to mount 1 single filesystem on 2 systems at the same time.

However, if you use LVM and have your filesystems in logical volumes, and server s1 is the server that has the volumegroup and filesystem mounted in read/write, you can execute "vgchange -a r" on server s2 to activate the volumegroup in read-only mode, and then "mount -o ro" to mount the filesystem readonly.

The problem with this procedure is that server s2 will cache the contents of filesystem d1, and thus updates made by server s1 will not be seen by server s2 unless you can find a way to clear (or disable) that cache and force server s2 to read the disk-contents. That again however will seriously degrade filesystem performance.

Since this is unsupported, you will not find any good documentation or procedure. You will have to find yourself the correct mount options.
Steven E. Protter
Exalted Contributor

Re: Mount point shared between two different HP-UX box - any thought

Shalom,

With HP-UX you have two choices.

NFS is the simple one. man /etc/exports will show you how to do hostname based limitation on exports.

CIFS/9000 Samba is a better choice because it offers potential windows integration and access list.

Example:

[winora]
comment = Windows Oracle Install point
path = /home/software/softlib/ORACLE/WINDOWS
writable = no
browseable = yes
read only = yes

comment = Blah blah project directory
path = /users/blahblah
public = no
writeable = yes
printable = no
browseable = yes
write list = @blahblah
create mode = 0770
case sensitive=no

Take note of the write list. This relies on group permissions to limit who can write and who can not.

Shmuel
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
Jeeshan
Honored Contributor

Re: Mount point shared between two different HP-UX box - any thought

idea is great!!!!
a warrior never quits