LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-30-2005, 02:05 PM   #1
Seventh
Member
 
Registered: Dec 2003
Location: Boston, MA
Distribution: Redhat / Debian
Posts: 269

Rep: Reputation: 30
New to NFS, looking for advice


Hi all,

I'm migrating an old server to a new one, and need to copy the contents of /home on the old server to the new one.

I'd like to use NFS to mount /home on the old server at /mnt/migration on the new one, but am not really sure how to go about this.

Any advice would be really appreciated. Both boxes are Redhat 9 Enterprise.
 
Old 03-30-2005, 02:45 PM   #2
tangle
Senior Member
 
Registered: Apr 2002
Location: Smithville, TN
Distribution: Slackware
Posts: 1,745

Rep: Reputation: 71
On the old server you need to put this in the /etc/exports :
/home <ip address of the new server>(rw,no root squash)

This will allow the new server (only the new server) to mount the share as read/write.

On the server that you want to mount the share put this in your /etc/fstab:
<old server name>:/home /mnt/migration nfs rw 0 0

This will mount the share at boot. If you want to mount it without restarting, run this command:
mount /mnt/migration
or
mount -a
 
Old 03-30-2005, 02:45 PM   #3
tangle
Senior Member
 
Registered: Apr 2002
Location: Smithville, TN
Distribution: Slackware
Posts: 1,745

Rep: Reputation: 71
Forgot, you need to do this as root.
 
Old 03-30-2005, 02:50 PM   #4
hob
Senior Member
 
Registered: Mar 2004
Location: Wales, UK
Distribution: Debian, Ubuntu
Posts: 1,075

Rep: Reputation: 45
NFS is easy, the catch is that both the client and server systems need to share the same set of user accounts (using NIS or LDAP).

On the server you need to edit /etc/exports:

/home 127.0.0.1(ro,no_root_squash) <client-ip>(ro,no_root_squash)

No spaces between the IP addresses and the (.

On the client, /etc/fstab will need an extra line:

nfs-server:/home /mnt/migration nfs defaults 0 0
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
NFS client = Linux, NFS server = Mac OS X Tiger --> Hell of a problem make Linux - Networking 9 03-10-2006 06:16 AM
broken NFS mount need configuration advice bobbens Debian 6 10-29-2005 05:22 PM
nfs client on knoppix 3.9 - problem mounting nfs drive Rod Butcher Linux - Networking 1 09-21-2005 05:18 AM
SuSE 9.0 NFS client with RHL 7.3 NFS server ocjacob Linux - Networking 0 02-01-2005 02:01 PM
nfs client should it use tcp or udp to nfs serve rportmapper andersonas Linux - Networking 2 06-30-2004 01:05 PM


All times are GMT -5. The time now is 04:56 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration