Operating System - HP-UX
1825990 Members
3178 Online
109690 Solutions
New Discussion

Not able to access the another machine mount point.

 
prasathc
Frequent Advisor

Not able to access the another machine mount point.

Hi All
I have a problem here like i am having 2 machine name it as test45(9000/889/K360)and test37(9000/785/J6000). I have exported the "/" and "/TEST"(its a separate harddisk) dirs in test45.
exportfs
/
/TEST


when i tried to mount the dir as follows

cd /net/test45
sh: /net/test45: not found.
In test45 automount is running and nfs daemons also running.

What could be the reson. While surf in the net i found to do the following steps
/sbin/init.d/nfs.core stop
/sbin/init.d/nfs.client stop
/sbin/init.d/nfs.server stop

/sbin/init.d/nfs.core start
/sbin/init.d/nfs.client start
/sbin/init.d/nfs.server start

but still its not working.

Can anybody help me in this regards.

Thanks in Advance
Prasath C

5 REPLIES 5
Robert-Jan Goossens
Honored Contributor

Re: Not able to access the another machine mount point.

# mount -F nfs test45:/TEST /net

Rajeev  Shukla
Honored Contributor

Re: Not able to access the another machine mount point.

Are you trying to mount both / and /test using automounter?

Also for automounter you need create the maps files
/etc/auto.direct
and then put entries in
/etc/auto_master

Let me know what you want to acheive
prasathc
Frequent Advisor

Re: Not able to access the another machine mount point.

Hi

I am trying to mount the dirs vai automount.
I have the /etc/auto_master file.
But i don't have the file /etc/auto.direct.

cat /etc/auto_master
/net -hosts -soft


cat /etc/auto_master
/net -hosts -soft


Any guess how to proceed.

Thanks in Advance
Todd Whitcher
Esteemed Contributor

Re: Not able to access the another machine mount point.

Hi,

This sounds like a name resolution issue. The not found is refering to the hostname. You are using the default built in map /net so you don't need to set up an alternate map file in /etc/ unless you decide to do that. Verify your name service is set up correctly, /etc/hosts, dns, nis etc. and that your /etc/nsswitch.conf file has files first for the hosts entry.

Here is an example host line for a server using DNS and /etc/hosts resolution.
# cat /etc/nsswitch.conf
hosts: files [NOTFOUND=continue] dns

Verify your name resolution works, you want to reference whichever format of the hostname that responds to nslookup, meaning either the fully qualified name or the shortname.

From test37:

# nslookup test45

Do you get an answer? and in what format.

From test37
Verify you can see what test45 is exporting, test using the format returned from nslookup, you can test with the IP address also.

# showmount -e test45.domain.com

If this fails, verify test45 is running /usr/sbin/rpc.mountd and /usr/sbin/nfsd. These are started with the nfs.server scripts you referenced.

If the above works, test manually mounting the file as referenced earlier as root.

# mkdir /testmnt
# mount test45.domain.com:/TEST /testmnt

Does this work?

If this works, umount it and test automount again.

# cd /net/test45.domain.com

The key is to get name resolution working or to use the correct name.

If you still have problems reference the troubleshooting section of this manual.

http://www.docs.hp.com/hpux/onlinedocs/B1031-90048/B1031-90048.html

Hope this helps

Todd
PVR
Valued Contributor

Re: Not able to access the another machine mount point.

Do an nslookup for test45 and test 37. from both machines. hope your /etc/hosts file (for both machines)having the entry for test45 and test 37.

If this works, check whether u have configured the test 37 as nfs client. if not do ..

test 37#/sbin/init.d/nfs.client start

You can try mounting the directory /test using the followng options
#mount -F nfs test45:/test /testdir.
Don't give up. Try till success...