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

mounting a drive from hpux to linux

GaneshrajS
Advisor

mounting a drive from hpux to linux

Will any one please explain how to map a drive from remote hpux to any flavours of local linux machine (mainly redhat and rdevsuse)?

Thanks,
Ganeshraj.S
10 REPLIES
GaneshrajS
Advisor

Re: mounting a drive from hpux to linux

Using NFS
likid0
Honored Contributor

Re: mounting a drive from hpux to linux

U can you NFS or SAMBA.

With nfs is easy, you need nfs server on HP-UX, then in the /etc/exports add the dir you wan't to export, for example:

/my/hpux/dir access=mylinuxhost

then refresh the config #exportfs -av


then in the linux box:
check if you can see it
#showmount -e hpuxbox
#mount -t nfs hpuxbox:/my/hpux/dir /mnt

Windows?, no thanks
GaneshrajS
Advisor

Re: mounting a drive from hpux to linux

Hi,

I was into a situation like follows

/my mentioned above is already in /etc/exports but still I need to configure a directory under /my how I need to do. Presently I am getting the error as below
"mount: RPC: Timed out".

----------------------------------------------
In remote hpux machine:-
/my access=mylinuxhost

then in the linux box: I need to mount a directory "/my/hpux/dir" is it possible?
#mount -t nfs hpuxbox:/my/hpux/dir /mnt
--------------------------------------------

Thanks,
Ganeshraj.S
Ganesan R
Honored Contributor

Re: mounting a drive from hpux to linux

Hi Ganeshraj,

You need to keep in mind the following two conditions related to your situation.

1.We cannot export either a parent directory or a subdirectory of an already exported directory that resides within the same file
System. It is not possible, for instance, to export both /usr and /usr/local, if both directories reside in the same file system.

2.But Clients may choose to mount the entire directory which is exported by NFS server or any subdirectory or file within the dirctory.

In your case, you have already exported /my directory on NFS server. So you can very well mount /my/hpux/dir on linux client.
Make sure necessary NFS client services are running on linux, and you have given necessary client access on NFS server.

Best wishes,

Ganesh.
likid0
Honored Contributor

Re: mounting a drive from hpux to linux

can you mount /my in the linux host ?

whatdoes showmount -e linuxserver output ?



on ther server try:


Can you mount /


Try:

/usr/bin/rpcinfo -p servername

ï § The rpcinfo command should display the following processes:
o rpcbind
o nfs
o mountd
o status
o nlockmgr
o llockmgr
If any of these processes is not running, follow these steps:
7. Make sure the /etc/rc.config.d/nfsconf file on the NFS server contains the following lines:

NFS_SERVER=1
START_MOUNTD=1

10. Make sure that the /etc/inetd.conf file on the NFS server does not contain a line to start rpc.mountd. If it does, make sure the START_MOUNTD variable in /etc/rc.config.d/nfsconf is set to 0.
11. Issue the following command on the NFS server to start all the necessary NFS processes:

/sbin/init.d/nfs.server start

ï § Issue the following command on the NFS client to make sure the rpc.mountd process on the NFS server is available and responding to RPC requests:

/usr/bin/rpcinfo -u servername mountd

ï § If the rpcinfo command returns RPC_TIMED_OUT, the rpc.mountd process may be hung. Issue the following commands on the NFS server to restart rpc.mountd (PID is the process ID returned by the ps command):

/usr/bin/ps -ef | /usr/bin/grep mountd
/usr/bin/kill PID
/usr/sbin/rpc.mountd

ï § You can receive "server not responding" messages when the server or network is heavily loaded and the RPC requests are timing out. Try doubling the timeo mount option for the directory, as in the following example from the /etc/fstab file, which changes the timeo value from 7 (the default) to 14. (The timeo option is in tenths of a second.)

cabbage:/usr /usr nfs nosuid,timeo=14 0 0
Windows?, no thanks
Steven E. Protter
Exalted Contributor

Re: mounting a drive from hpux to linux

Shalom,

mount -t nfs hostname:/path

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
GaneshrajS
Advisor

Re: mounting a drive from hpux to linux

I am still getting "mount: RPC: Timed out". error. I am not sure all services required for NFS in local linux is running.
Instead of NFS I have tried using SMBFS also
while using that I got the following error

"13291: session setup failed: Call timed out: server did not respond after 20000 milliseconds
SMB connection failed"

From local windows machine I can able to create a network drive for a share in the same remote hpux machine.

Step by step method of debugging will be nice. Kindly point me to a document which consist of those steps.

-Ganeshraj.S
likid0
Honored Contributor

Re: mounting a drive from hpux to linux

On your linux client you need to see this:

[root@:~]# rpcinfo -p
program vers proto port
100000 2 tcp 111 portmapper
100000 2 udp 111 portmapper
100024 1 udp 886 status
100024 1 tcp 889 status

on your hp-ux nfs server you need to see this:

# rpcinfo -p sdprinte
program vers proto port
100000 4 tcp 111 portmapper
100000 3 tcp 111 portmapper
100000 2 tcp 111 portmapper
100000 4 udp 111 portmapper
100000 3 udp 111 portmapper
100000 2 udp 111 portmapper
100005 1 udp 59176 mountd
100005 3 udp 59176 mountd
100005 1 tcp 49398 mountd
100005 3 tcp 49398 mountd
100003 2 udp 2049 nfs
100003 3 udp 2049 nfs
100003 2 tcp 2049 nfs
100003 3 tcp 2049 nfs
100024 1 tcp 60161 status
100024 1 udp 51925 status
100021 1 tcp 60162 nlockmgr
100021 1 udp 51927 nlockmgr
100021 3 tcp 60163 nlockmgr
100021 3 udp 51928 nlockmgr
100021 4 tcp 60164 nlockmgr
100021 4 udp 51929 nlockmgr
100020 1 udp 4045 llockmgr
100020 1 tcp 4045 llockmgr
100021 2 tcp 60165 nlockmgr
100068 2 udp 50886
100068 3 udp 50886
100068 4 udp 50886
100068 5 udp 50886
100083 1 tcp 53055
100001 2 udp 50887 rstatd
100001 3 udp 50887 rstatd
100001 4 udp 50887 rstatd

Windows?, no thanks
GaneshrajS
Advisor

Re: mounting a drive from hpux to linux

I was able to mount the directory in local Linux machine using NFS by logging as root, but If I login as a user and check the same mapdrive, I dont see anything inside that drive. Now what should I change so that other users can view all the files with all permissions.

I have mounted the same remote directory in the local windows machine also, there in local windows machine I am having all permission in accessing that mapdrive.

Any help here will be really useful.

Thanks,
Ganeshraj.S
Predator
Trusted Contributor

Re: mounting a drive from hpux to linux

Hi Ganesh,

you need to mount the filesystem in a way your user be able to see it, with this command:
"mount /dev/hda1 /mnt/Win98 -t vfat -o uid="