Operating System - Linux
1832991 Members
2488 Online
110048 Solutions
New Discussion

Re: mount linux directory

 
kamal_15
Regular Advisor

mount linux directory

hi all
i have hp-ux version 10.20
i want to mount directory from (linux redhat v 9) on hp-ux server using nfs

hp-ux has nfs v2 and linux has nfs v2and 3

when i run rpcinfo -p (linux _machine name) from hp-ux
an error appear:
**************************************************
rpcinfo: can't contact portmapper: RPC_SYSTEM_ERROR - Connection refused
***************************************************
when i run (rpcinfo -u hp-ux_name nfs 2) on hp-ux:
***************************************************
program 100003 version 2 ready and waiting
***************************************************

and when i run rpcinfo -p (hp-ux machine name) from linux
it works good.
and when i run (rpcinfo -u linux_name nfs 2)from linux
it works good also.

now nfs services are running in both machines
i can't mount directory any machine to another

i don't know what is the error
please help?
kamal
7 REPLIES 7
kamal_15
Regular Advisor

Re: mount linux directory

i forget thingwhen i run (rpcinfo -t hp-ux_name nfs 2) on linux.an error appear:***********************************************rpcinfo: RPC: Program not registeredprogram 100003 version 2 is not available***********************************************
Vitaly Karasik_1
Honored Contributor

Re: mount linux directory

let's start from linux side:
- are you able to mount linux dir on linux itself? - mount localhost:/dir /mnt/tmp_mnt_point
- if it doesn't work, check portmap, lock, nfsd on linux

http://nfs.sourceforge.net/nfs-howto/interop.html - it may help too...
Kodjo Agbenu
Honored Contributor

Re: mount linux directory

Hello Kamal,

Have you exported the directory to be mounted ? Check /etc/exports on Linux box, or type exportfs -v.

Good luck.
Kodjo
Learn and explain...
kamal_15
Regular Advisor

Re: mount linux directory

i can mount linux directory on linux itselfi tryed it and works good.i edit /etc/exportsand insert this line (/tmp/test localhost)and exportfs -amount localhost:/tmp/test /home/dirand work ok.do u think where is the problem?
kamal_15
Regular Advisor

Re: mount linux directory

when i execute rpcinfo -p hp-ux (from linux)it is work ok.when i execute rpcinfo -p linux (from hp-ux)the error appear:rpcinfo: can't contact portmapper: RPC_SYSTEM_ERROR - Connection refused????
Andrew Cowan
Honored Contributor

Re: mount linux directory

Is the Linux portmapper protected by TCP-Wrappers of iptables? Try "iptables --list" and "cat /etc/hosts.allow" and "/etc/hosts.deny".
kamal_15
Regular Advisor

Re: mount linux directory

firewall option was selected in securety level
in linux
when i remove it
mount works goog

thank you