LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-22-2006, 08:48 AM   #1
GUIPenguin
Member
 
Registered: Aug 2004
Location: Maine
Distribution: Gentoo Linux
Posts: 239

Rep: Reputation: 30
help mounting /usr via nfs on remote client


I have a diskless node booting and everything works fine.. except I can't get anything else to mount besides the enitial shared root.

Here is my masters /etc/exports

Code:
/diskless/node02   192.168.1.3(sync,rw,no_root_squash,no_all_squash)
# common to all slaves
/usr   192.168.1.0/24(sync,ro,no_root_squash,no_all_squash)


Here is my node02's /etc/fstab

Code:
master:/diskless/node02         /         nfs     sync,hard,intr,rw,nolock,rsize=8192,wsize=8192    0 0
master:/usr                     /usr      nfs     sync,hard,intr,ro,nolock,rsize=8192,wsize=8192    0 0
none                            /proc     proc    defaults                                          0 0


these examples came from diskless nodes with gentoo http://www.gentoo.org/doc/en/diskless-howto.xml

/usr will NOT mount how can I get this so I can mount /usr ro from my master? And yes I have created a /diskless/node02/usr directory.

Last edited by GUIPenguin; 03-22-2006 at 09:47 AM.
 
Old 03-22-2006, 11:53 AM   #2
b0nd
Senior Member
 
Registered: Jan 2005
Distribution: Slackware, BackTrack, Windows XP
Posts: 1,020

Rep: Reputation: 45
hi,
here is my /etc/exports:
Quote:
/ 192.168.0.2(rw,nohide,no_root_squash,sync)
/root/Desktop/MyComputer/hd 192.168.0.2(rw,nohide,no_root_squash,sync)
/root/Desktop/MyComputer/C 192.168.0.2(rw,nohide,no_root_squash,sync)
/root/Desktop/MyComputer/D 192.168.0.2(rw,nohide,no_root_squash,sync)
/root/Desktop/MyComputer/E 192.168.0.2(rw,nohide,no_root_squash,sync)
/root/Desktop/MyComputer/F 192.168.0.2(rw,nohide,no_root_squash,sync)
look at the first entry. Here i'm mounting the '/' with "nohide" parameter......hence all linux directories under '/' are visible remotely.
and in rest of the lines i've mounted the "mounted" drives.

hope this will help u.

regards
 
Old 03-22-2006, 12:20 PM   #3
GUIPenguin
Member
 
Registered: Aug 2004
Location: Maine
Distribution: Gentoo Linux
Posts: 239

Original Poster
Rep: Reputation: 30
Thanks...can you also please post your /etc/fstab of your remote computer.. I believe its my fstab becasue it jsut wont mount my exports on boot.. yet I can mount them with mount master:/usr /usr

Last edited by GUIPenguin; 03-22-2006 at 12:24 PM.
 
Old 03-22-2006, 01:47 PM   #4
b0nd
Senior Member
 
Registered: Jan 2005
Distribution: Slackware, BackTrack, Windows XP
Posts: 1,020

Rep: Reputation: 45
sorry brother. I don't mount that on booting i.e don't have any entry in /etc/fstab.
i use the following command to mount manually:

#mount 192.168.0.2:/ /mnt/localhost

where 192.168.0.2 is the IP of the remote machine and u must have gussed that /localhost is dir which i made in local computer for mounting the remote one.

The reason for not mounting on booting is that suppose the remote machine is down......then this local computer takes time to boot up. It hangs for a while when reading /etc/fstab.

regards
 
Old 03-22-2006, 01:50 PM   #5
GUIPenguin
Member
 
Registered: Aug 2004
Location: Maine
Distribution: Gentoo Linux
Posts: 239

Original Poster
Rep: Reputation: 30
thanks. I just decided to move the files and libs I needed and nothing more into my shared root for my diskless client to support gcc and distccd. Works now
 
Old 03-22-2006, 01:54 PM   #6
b0nd
Senior Member
 
Registered: Jan 2005
Distribution: Slackware, BackTrack, Windows XP
Posts: 1,020

Rep: Reputation: 45
Few days back i posted an article on NFS.
you can check it here
http://www.gnulinuxclub.org/index.ph...=303&Itemid=31

regards
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
NFS server - client cannot mount remote file system mikemrh9 Linux - Networking 6 10-12-2006 11:05 PM
NFS client = Linux, NFS server = Mac OS X Tiger --> Hell of a problem make Linux - Networking 9 03-10-2006 05:16 AM
nfs client on knoppix 3.9 - problem mounting nfs drive Rod Butcher Linux - Networking 1 09-21-2005 04:18 AM
nfs client should it use tcp or udp to nfs serve rportmapper andersonas Linux - Networking 2 06-30-2004 12:05 PM
5 minute delay mounting remote NFS dunk05 Linux - Networking 1 02-06-2002 09:56 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:45 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
Open Source Consulting | Domain Registration