- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- nfs server
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2002 06:56 AM
07-23-2002 06:56 AM
i want to enable nfs server on my redhat 7.2 box in order to export a directory.
I'm not sure if during installation i have installed nfs, however there's installed nfs-utils-0.3.1-13. I checked if there's a nfs-server installed but it doesn't seem to be.
I followed the following steps:
On the server:
- configured /etc/exports
/home/tarek myws(rw)
-exportfs -a
- started /etc/rc.d/init.d/nfs daemon.
On the client: (another RH 7.2 box)
- mkdir /mnt/myws
- chmod 755 myws
- mount myws:/home/tarek /mnt/myws
But i get this error:
mount: RPC: Unable to receive; errno = Connection refused
Am i'm missing something?
All these actions i've performed them as root.
Thanks in advance
Tarek
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2002 07:01 AM
07-23-2002 07:01 AM
Re: nfs server
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2002 07:44 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2002 08:42 AM
07-23-2002 08:42 AM
Re: nfs server
For nfs to work you must have the following
rpms installed :
[root@hive root]# rpm -qa |grep nfs
nfs-utils-0.3.1-13
[root@hive root]# rpm -qa | grep portmap
portmap-4.0-38
nfs-utils-0.3.1-13.i386.rpm
portmap-4.0-38.i386.rpm
install them with rpm -ivh
then you must first start portmap &
after that nfs
service portmap start
service nfs start
See also you have the same stuff running
at your client.
Like mentioned above, if that doesnt work
check your firewall settings.
regards
Steven
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2002 10:19 PM
07-23-2002 10:19 PM
Re: nfs server
But now i've got another error:
mount: myws:/home/tarek failed, reason given by server: Permission denied
On the server the directory is exported as rw for myws..
Another thing just to understand how nfs works under linux.
Under othere unix systems you can start two services, nfs.client and nfs.server. Here, as i've seen, there's only nfs and you told me to start it also on the client. So, potentially, also my client is a server and it has started the nfsd server daemon, right??
Thanks again
Tarek
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2002 10:43 PM
07-23-2002 10:43 PM
Re: nfs server
It's very important that Portmap is started first.
That being said, if you run the command 'rpcinfo -p', what does it report?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2002 10:56 PM
07-23-2002 10:56 PM
Re: nfs server
rpcinfo -p
program vers proto port
100000 2 tcp 111 portmapper
100000 2 udp 111 portmapper
100011 1 udp 967 rquotad
100011 2 udp 967 rquotad
100011 1 tcp 970 rquotad
100011 2 tcp 970 rquotad
100005 3 udp 32877 mountd
100005 3 tcp 50511 mountd
100003 2 udp 2049 nfs
100003 3 udp 2049 nfs
100021 1 udp 32878 nlockmgr
100021 3 udp 32878 nlockmgr
100021 4 udp 32878 nlockmgr
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2002 11:32 PM
07-23-2002 11:32 PM
Re: nfs server
Now, you mentioned somewhere above that you've got a firewall in place. That command lists the ports that the various servers are listening on. Are they being blocked by your firewall?
It's probably going to come down to resolving however. You've used the name 'myws'. Make sure that the name you use int he exports file is what your NFS server thinks it is. You might need to play with FQDN's to get it right.
If that still doesn't work, umm.. Have you read the NFS howto? :)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2002 12:00 AM
07-24-2002 12:00 AM
Re: nfs server
Now everything's ok... thanks for your help.
Tarek
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2002 12:36 AM
07-24-2002 12:36 AM
Re: nfs server
I mount the directory as root and i want that user oracle can work on that directory.
On the server the directory is oracle's property, while on the client it's tarek property.
Now i've seen that on the server there are these id's:
oracle:502:302
tarek:500:300
On the client:
oracle:300:302
tarek:502:100
So I think the problem is id's related.
Now is there a way to change id's without causing problems to the system?? I want that the match exactly on the two ws. If i change them i have to make a chown -R on all files right? Can this be done automatically while i modify id's?
Thanks again..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2002 11:52 AM
07-24-2002 11:52 AM
Re: nfs server
When you use nfs, the savest is always
use the same uid and gid for users on all
your systems. If you change the ownership
off the nfsmounted fs on the client to
oracle , you will see on the server that
the owersship changed to the uid of user oracle on the client.
I would change the uid on the client from
user oracle.
Steven
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2002 03:29 PM
07-24-2002 03:29 PM
Re: nfs server
find . -user
could always be useful.. Don't forget groups.