LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 02-21-2010, 09:43 AM   #1
salimshahzad
Member
 
Registered: Dec 2009
Posts: 200

Rep: Reputation: 15
nfs share for linux installation


dear gurus,

i build a machine which has nfs shared all network. now i want to install from there, i boot cd centos and ask method where i select nfs, i did not recongnize

advise me few things

the share is soft copy folder of cd inside harddisk
/share/centos54 *(rw,sync)

where, nfs services r working fine from server and client. but question if fstab need to edit such case,it not accessable from boot linux installation. advise

i check commands
rpcinfo -p
exprtfs -v
showmount -e
exportfs -r

on client also i test it(another linux machine)
rpcinfo -p 192.168.1.1

the os,dns,nfs services restarted already

regards
 
Old 02-22-2010, 05:22 AM   #2
vishesh
Member
 
Registered: Feb 2008
Distribution: Fedora,RHEL,Ubuntu
Posts: 661

Rep: Reputation: 66
What path you mention for nfs installation tree on installing client ?
 
Old 02-22-2010, 08:47 AM   #3
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 12,542
Blog Entries: 23

Rep: Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943
Hi,

You might want to use the 'r' or 'a' options when you 'exportfs'. That is if things are correct in the '/etc/exports' file.

Quote:
excerpt 'man exportfs';

DESCRIPTION
The exportfs command is used to maintain the current table of exported file systems for NFS. This
list is kept in a separate file named /var/lib/nfs/etab which is read by mountd when a remote host
requests access to mount a file tree, and parts of the list which are active are kept in the ker-
nel's export table.

Normally this etab file is initialized with the list of all file systems named in /etc/exports by
invoking exportfs -a.

However, administrators can choose to add and delete individual file systems without modifying
/etc/exports using exportfs.

exportfs and it's partner program mountd work in one of two modes, a legacy mode which applies to
2.4 and earlier versions of the Linux kernel, and a new mode which applies to 2.6 and later ver-
sions providing the nfsd virtual filesystem has been mounted at /proc/fs/nfsd or /proc/fs/nfs. If
this filesystem is not mounted in 2.6, the legacy mode is used.

In the new mode, exportfs does not give any information to the kernel but only provides it to
mountd through the /var/lib/nfs/etab file. mountd will listen to requests from the kernel and will
provide information as needed.

In the legacy mode, any export requests which identify a specific host (rather than a subnet or
netgroup etc) are entered directly into the kernel's export table as well as being written to
/var/lib/nfs/etab. Further, any mount points listed in /var/lib/nfs/rmtab which match a non host-
specific export request will cause an appropriate export entry for the host given in rmtab to be
entered into the kernel's export table.

OPTIONS
-a Export or unexport all directories.

-o options,...
Specify a list of export options in the same manner as in exports(5).

-i Ignore the /etc/exports file, so that only default options and options given on the command
line are used.

-r Reexport all directories. It synchronizes /var/lib/nfs/etab with /etc/exports. It removes
entries in /var/lib/nfs/etab which are deleted from /etc/exports, and remove any entries
from the kernel export table which are no longer valid.

-u Unexport one or more directories.

-f In 'new' mode, flush everything out of the kernels export table. Any clients that are active
will get new entries added by mountd when they make their next request.

-v Be verbose. When exporting or unexporting, show what's going on. When displaying the current
export list, also display the list of export options.
Look at 'Linux NFS' to gain some insight from additional links.

Just a few more links to aid you;

Linux Documentation Project
Rute Tutorial & Exposition
Linux Command Guide
Utimate Linux Newbie Guide
LinuxSelfHelp
Getting Started with Linux
Advanced Bash-Scripting Guide
Linux Home Networking


The above links and others can be found at 'Slackware-Links'. More than just SlackwareŽ links!
 
  


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
A loop device mounted within an NFS share is not accessible via NFS? srikanthnv Linux - Software 17 12-18-2011 10:31 AM
How can I mount a NFS share that have a SMB share mounted? perezyanez Linux - Networking 2 09-26-2008 10:03 AM
Placing a SMB share inside an NFS share grittyminder Linux - Networking 0 05-14-2008 04:49 AM
In NFS server. I want to share directory but i dont want to share subdirectories. aashishdhabarde Linux - Server 1 01-16-2008 04:48 AM
NFS Share from Linux to OS X GT_Onizuka Linux - Networking 2 08-05-2004 09:56 PM


All times are GMT -5. The time now is 04:20 AM.

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