Operating Systems > Linux and UNIX

NFS (mount problems)

(1/2) > >>

mskarl:
Ok now I've been on Linux for a little bit I want to network them my two computers together.  

I'm running SuSE 7.3 on both of them.

I checked to make sure thatNFS is running by the
'rpcinfo' command.

On Linux01 I have 3 nic cards.  eth1 10.10.32.11/255.255.255.0 as the one with a cross connect to the hpserver.
On hpserver I have 2 nic cards.  One is setup for DCHP for the net and eth1 is setup up as 10.10.32.1/255.255.255.0


my user name is msk  (on both computers)

I've set up the 'ect/exports' file with the following information on hpserver.
/export/home                msk(rw)

On linux01 I have nothing in the 'ect/exports' file

I read in a book that if I type
'mount -o rw,bg,intr,soft hpserver:/export/home'

I sould be able to mount the network folder.

But when I type that on Linux01 as user msk I get

'mount: only root can do that'

same command as su
'mount: can't get address for hpserver'

so I tried
'mount -o rw,bg,intr,soft 10.10.32.1:/export/home /home

I get messages
'mount: RCP: Unable to recieve; errno = Connection Refused
mount: backgrounding "10.10.32.1:/export/home"'


I have a feeling this is because of user stuff.

voidmain:
First of all, the exports file uses hostname/ip addresses and not userids. Try making your /etc/exports file look like this on hpserver:

/export/home 10.10.32.11(rw)

Then from Linux01 do a "showmount -e hpserver" (or use IP address if you don't have name resolution).  This command shows what the server actually has shared via NFS. It's best to add entries to your /etc/hosts file for all of your addresses (if you don't want to set up named that is) so then you can use names in all of your config files rather than IP addresses.

And I assume you ran the "exportfs" command after modifying the /etc/exports file, and you have mountd, portmap, and nfsd running.

Let me know if it still fails. Also look in your /var/log/messages after trying to mount the share and see what IP address is actually being used on your Linux01 box (also you can telnet/ssh into hpserver and do a "who -l" to see what IP you are coming in from since you have multiple addresses).

Another note about NFS.  In order for the permissions to be correct across the NFS shares you have to make sure your users have the same user number on both machines (in /etc/passwd).  That why NIS/YP are usually used in combination with NFS.

Also, once you get it where you can mount it manually you can add it to your /etc/fstab so it mounts on bootup automatically. If you get really froggy you can set up the auto_home or other automount features.

[ March 26, 2002: Message edited by: VoidMain ]

mskarl:

quote:Originally posted by VoidMain:
First of all, the exports file uses hostname/ip addresses and not userids. Try making your /etc/exports file look like this on hpserver:

/export/home 10.10.32.11(rw)

Then from Linux01 do a "showmount -e hpserver" (or use IP address if you don't have name resolution).  This command shows what the server actually has shared via NFS. It's best to add entries to your /etc/hosts file for all of your addresses (if you don't want to set up named that is) so then you can use names in all of your config files rather than IP addresses.

And I assume you ran the "exportfs" command after modifying the /etc/exports file, and you have mountd, portmap, and nfsd running.

Let me know if it still fails. Also look in your /var/log/messages after trying to mount the share and see what IP address is actually being used on your Linux01 box (also you can telnet/ssh into hpserver and do a "who -l" to see what IP you are coming in from since you have multiple addresses).

Another note about NFS.  In order for the permissions to be correct across the NFS shares you have to make sure your users have the same user number on both machines (in /etc/passwd).  That why NIS/YP are usually used in combination with NFS.

Also, once you get it where you can mount it manually you can add it to your /etc/fstab so it mounts on bootup automatically. If you get really froggy you can set up the auto_home or other automount features.

[ March 26, 2002: Message edited by: VoidMain ]
--- End quote ---



I just noticed you posed a message are you online?  If so do you have a chat program that I can talk to you on.  I still can't get it to work

voidmain:
Is one of your boxes connected directly to the internet and have talkd running?
If so, PM me the address and your logon name and I'll hook up with you. I really need to get some more coding done but could take a break...

mskarl:

quote:Originally posted by VoidMain:
Is one of your boxes connected directly to the internet and have talkd running?
If so, PM me the address and your logon name and I'll hook up with you. I really need to get some more coding done but could take a break...
--- End quote ---



talkd running???


I don't know what that is.
ICQ has a chat thing that I don't have to download anything on. If you are willing to do that the link is
http://groups.icq.com/Computing/irc.asp?no=700917
and no one is in the chat room

Navigation

[0] Message Index

[#] Next page

Go to full version