Operating System - HP-UX
1822552 Members
3008 Online
109642 Solutions
New Discussion юеВ

Multiple mounts of a single disk

 
SOLVED
Go to solution
Enrico Venturi
Super Advisor

Multiple mounts of a single disk

Colleagues,
can I currently mount the same disk on two different machines simply using HP-UX 11.x ? Do I need any other software?
Don't take care of the physical shareability of the disk: it is guarantee by a SCSI bus (SC10) or by a Fiber Channel system (DS2405)
Thanks a lot
Enrico
5 REPLIES 5
Bill McNAMARA_1
Honored Contributor

Re: Multiple mounts of a single disk

you can't have a PV actively shared between 2 boxes under LVM .

It could be prefered to use exported NFS file systems instead.

Later,
Bill
It works for me (tm)
Chuck J
Valued Contributor
Solution

Re: Multiple mounts of a single disk

You can mount it on one system then export is using the "exportfs" command, then mount on another system using an NFS mount:
"mount G??F nfs ..."

If you want more details let me know.
A. Clay Stephenson
Acclaimed Contributor

Re: Multiple mounts of a single disk

As read-write on even one of the nodes - no; as read-only one multiple nodes - yes.

You can acxtually mount the filesystems rw using just HP-UX commands but as soon as writes to the filesystem occur absolute chaos is guaranteed.

If you are using only raw/io AND the application takes care of any synchronization then you can do this but if any 'cooked' (filesystem) i/o is invovled then the answer is only is read-only for all hosts.
If it ain't broke, I can fix that.
Chuck J
Valued Contributor

Re: Multiple mounts of a single disk

For some reason that didn't turn out properly. Here's the commands again to do an NFS mount:

On local machine (server1) there are 2 ways;
1: exportfs G??i G??o root=server2 /db-backups2
That will export /db-backups2 for use by user G??rootG?? on host G??server2G??

2: vi /etc/exports
/db-backups2 G??root=server2 (add that line to give root full access)
/db-backups2 G??user=server2,ro (add that line to give user read access)

Now you have to export them physically:

/usr/sbin/exportfs G??av (add & verify export directories from /etc/exports file)
/usr/sbin/exportfs G??auv (unexport all currently exported directories, if you are not the only administrator
of the server, then don't use this command because if someone else has exported something you will unexport their directories, just use:
/usr/sbin/exportfs G??uv /db-backups2

Now on the remote host (server2). You don't have to use the same mount point name:
1. mkdir /db-backups2
mount G??F nfs server1:/db-backups2 /db-backups2
or
2. mkdir /tmpbkup2
mount G??F nfs server1:/db-backups2 /tmpbkup2

If you want the new nfs volume to mount at boot time, add the following to /etc/fstab
server1:/db-backups2 /db-backups2 nfs rw,hard 0 2
Chuck J
Valued Contributor

Re: Multiple mounts of a single disk

Don't know why it's coming all garbled. Those garbled characters are just a minus sign "-"

Chuck J