hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Hosting Security and Technology : Hosting Security and Technology Tutorials : setting up NFS share
Reply

Hosting Security and Technology Tutorials Tutorials related to server security or the like.
Forum Jump

setting up NFS share

Reply Post New Thread In Hosting Security and Technology Tutorials Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 08-12-2005, 12:30 PM
caligal caligal is offline
New Member
 
Join Date: Aug 2005
Location: Moonachie, New Jersey
Posts: 3
*

setting up NFS share



I've been practicing how to set up an NFS share. i was told at first to set up one on my own box and i did. i merely had 2 accounts with to home dirs and made an entry in the /etc/exports file using the NFS server config tool. However, i have tried to set up a share on a co-workers box with permissions of course. But is not working. I have even tried to follow pre-exisiting entries in the /etc/exports file of one of our servers and the fstab and mtab entries of a former employee working on the box I now have. There must be somthing i just don't understand except everything. I will change names and numbers for security in my example.
Sever (coworker's)= radon IP=xx.xx.xx.1
client(myself)= iron IP = xxx.xx.xx.0

radon /etc/export entry

#this is to export my home directory from this machine "radon" ip=xx.xx.xx.1 to
# my home directory on my box "iron", ip=xxx.xx.xx.0 .

/home/caligal xx.xx.xx.1/255.xxx.x.x(rw,insecure,sync,no_wdelay,no_subtree_check,insecure_locks,all_squash,anonuid=520)

iron /etc/fstab entry

radon:/home/caligal /mnt/radon/home/caligail nfs rw,hard,intr,addr=xx.xx.xx.1 0 0

I have even entered and entry into the /etc/mtab on my box (iron) file like this

radon:/home/caligal /mnt/radon/home/caligal nfs rw,hard,intr,addr=xx.xx.xx.1 0 0
When i try to mount the /home/caligal directory from the server onto my client box
can't find radon/home/caligalin fstab or mtab
this is not true the entry is there.
Before i was getting messages the the directory does not exist
cannot find radon_so iput in the ip address in the mtab
now i get messages regarding the above fstab entries whether i try to mount the home/caligal directory form either machine. PLEASE HELP!

Reply With Quote


Sponsored Links
  #2  
Old 08-15-2005, 01:44 PM
andren andren is offline
Web Hosting Master
 
Join Date: Jun 2005
Posts: 697
What are the error messages?

Reply With Quote
  #3  
Old 08-16-2005, 12:33 PM
caligal caligal is offline
New Member
 
Join Date: Aug 2005
Location: Moonachie, New Jersey
Posts: 3
setting up NFS share

first this is the command i put in to try to mount the home directory on radon
[caligal@iron etc]$ mount radon/home/caligal
then i get this error below:
mount: can't find radon/home/caligal in /etc/fstab or /etc/mtab

Reply With Quote
Sponsored Links
  #4  
Old 08-17-2005, 10:57 AM
andren andren is offline
Web Hosting Master
 
Join Date: Jun 2005
Posts: 697
It should be "mount /mnt/radon/home/caligail" according to your first posts fstab entry.

I think you are confused about the mount points: You want to have acces to /home/caligal on ion, right? You can mount it as /mnt/radon or whatever you like, it means that /home/caligal on radon is then /mnt/radon on your ion computer. (Note: the /home/caligal path is not exported, just the contents of that directory)

Do the following steps:

1. Check that ping works, both directions (with names and IP numbers)
2. Make sure that the mount directory exists on ion (/mnt/radon/home/caligal), but read the stuff above
3. change the fstab on ion to
xxx.xxx.xxx.1:/home/caligal /mnt/radon/home/caligal nfs rw 0 0
4. check that netmount and portmap are running on ion (rc-status or similar, depending on your flavor of Linux)
5. take out as much stuff from the export file options as you can (adding later is easier) mine is (async,no_root_squash,no_subtree_check,rw)
6. run "exportfs -ra" on radon (updates the nfs configuration)
7. restart the nfs service ("/etc/init.d/nfs restart" or similar, depends on type of Linux)

If you have a firewall - it may block nfs.

Hope that helps. You can PM me if you have questions.
-andre

Reply With Quote
Reply

Related posts from TheWhir.com
Title Type Date Posted
nginx Sees Largest Market Share Growth in Netcraft March Server Survey Web Hosting News 2012-03-05 14:05:29
nginx Continues Market Share Momentum in Netcraft February Web Server Survey Web Hosting News 2012-02-09 17:29:14
Apache Leads Site Gains in January Netcraft Web Server Survey Web Hosting News 2012-01-03 19:02:26
Email Provider Atmail Releases One-Click iOS Provisioning with Atmail 6.3 Web Hosting News 2011-11-28 20:34:19
Netcraft Web Server Survey Finds Large Growth of Amazon EC2 Sites Web Hosting News 2011-08-05 19:02:44


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?