LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 06-28-2009, 07:29 PM   #1
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora/Pop!_OS
Posts: 2,983

Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
NFS help


Hello everyone, thanks for looking at this thread and thanks in advance for any help you can provide.

background on the setup and hardware configuration:

I am running CentOS 5.3 with the 2.6.18-128.1.14.e15

I have added the extra hdd to fstab, they auto mount properly, well permissions might be off from my goal but they mount. its a start.

Code:
df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/sda2              48G  1.3G   44G   3% /
/dev/sda1             251M   21M  217M   9% /boot
tmpfs                1014M     0 1014M   0% /dev/shm
/dev/sda3             133G  188M  126G   1% /home1
/dev/sdb2              71G  180M   67G   1% /home11
/dev/sdc1              20G   13G  6.7G  66% /winXP
/dev/sdc2             260G  196G   65G  76% /winXP_data
/dev/sdd3              18G   12G  6.0G  66% /sdd3
/dev/sdd4             208G  155G   43G  79% /sdd4
I want every drive and file system (not including / /boot /swap) fully accessible to the network. I just need an internal file server for my 2 iMACs. I am running out of space on them.

Code:
cat /etc/fstab 
LABEL=/1                /                       ext3    defaults        1 1
LABEL=/boot1            /boot                   ext3    defaults        1 2
tmpfs                   /dev/shm                tmpfs   defaults        0 0
devpts                  /dev/pts                devpts  gid=5,mode=620  0 0
sysfs                   /sys                    sysfs   defaults        0 0
proc                    /proc                   proc    defaults        0 0
LABEL=SWAP-sdb1         swap                    swap    defaults        0 0
/dev/sda3		/home1			ext3	rw,noatime,user	0 0
/dev/sdb2		/home11			ext3	rw,noatime,user	0 0
/dev/sdc1		/winXP			vfat	rw,noatime,user,umask=0	0 0
/dev/sdc2		/winXP_data		ntfs-3g	rw,umask=0000,defaults	0 0
/dev/sdd3		/sdd3			ext3	rw,noatime,user	0 0
/dev/sdd4		/sdd4			ext3	rw,noatime,user	0 0
Not sure if those permissions will do what I want. I do not think so.

Code:
cat /etc/exports 
/home1 192.168.2.0/255.255.255.0(rw,insecure)
I added the 'insecure' tag from a suggestion on

http://sial.org/howto/osx/automount/

It worked so far as being able to mount my one share I have setup at the moment, but I was unable to navigate into any of the directories.

Code:
cat /etc/host.allow 
portmap: 192.168.2.0/255.255.255.0
before you ask, yes I did configure the host.allow file to allow all connections from the network.

In the end I will need to mount the following partitions:

/dev/sda3 sdb2 sdc1 sdc2 sdd3 sdd4 with full rwx permissions to anyone on my network.

What changes need I make to get this working. Also how can I reduce any hangtime that might be caused if something gets disconnected due to power loss or an improper umount?

Thanks.
 
Old 06-28-2009, 07:35 PM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
Use the intr option http://www.linuxtopia.org/online_boo...g-options.html in fstab to allow systems to disconnect if it fails
 
Old 06-28-2009, 07:53 PM   #3
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora/Pop!_OS
Posts: 2,983

Original Poster
Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
Quote:
Originally Posted by chrism01 View Post
Use the intr option http://www.linuxtopia.org/online_boo...g-options.html in fstab to allow systems to disconnect if it fails
I take it that is client side. is there anything i need to do server side?

Also it looks like only some of the files are not getting proper permissions like lost&found from an old Linux install I had on one of the drives, but most of the rest seem to be up and running from what I can see.

Code:
cat /etc/exports 
/home1 192.168.2.0/255.255.255.0(rw,insecure)
/home11 192.168.2.0/255.255.255.0(rw,insecure)
/winXP 192.168.2.0/255.255.255.0(rw,insecure)
/winXP_data 192.168.2.0/255.255.255.0(rw,insecure)
/sdd3 192.168.2.0/255.255.255.0(rw,insecure)
/sdd4 192.168.2.0/255.255.255.0(rw,insecure)
that is my finished exports file. nice thing about OSx is i just hit command (the apple or windows key) + k and then i type the following:

nfs://192.168.2.100/home11

and poof its mounted and ready for use. Also streams very fast, more then fast enough to stream my movies as that is 90% of what the nfs server will be doing.
 
Old 06-28-2009, 07:57 PM   #4
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora/Pop!_OS
Posts: 2,983

Original Poster
Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
then again, it was only the NTFS that allowed my clients to do anything to the files.

I need to be able to create directories, move files in and out, delete files, execute files, mount ISOs etc... on the ext3 partitions.

*bonks head on wall* I've forgotten so much about linux as I have not used it in over a year.
 
Old 06-28-2009, 09:57 PM   #5
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora/Pop!_OS
Posts: 2,983

Original Poster
Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
I tried a change to my exports with no luck.

Code:
cat /etc/exports 
/home1 192.168.2.0/255.255.255.0(rw,insecure,no_root_squash,async)
/home11 192.168.2.0/255.255.255.0(rw,insecure)
/winXP 192.168.2.0/255.255.255.0(rw,insecure)
/winXP_data 192.168.2.0/255.255.255.0(rw,insecure)
/sdd3 192.168.2.0/255.255.255.0(rw,insecure)
/sdd4 192.168.2.0/255.255.255.0(rw,insecure)
sadly that did not help with the lack of write permissions to /home1 as i would like. How can I force fstab to mount so the permissions and ownership is for anyone, or at least allow NFS clients ownership to create directories and files?
 
Old 06-28-2009, 10:01 PM   #6
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora/Pop!_OS
Posts: 2,983

Original Poster
Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
oh scary. i chmod 777 /home1 as root, now i have full access, is there a better way of doing that?
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
ls: cannot access /etc/resolv.conf: stale nfs file handle - but i'm not using nfs schneidz Linux - General 4 10-02-2009 02:39 PM
nfs server on ubuntu doesn't play nice with nfs client on solaris mathiraj Linux - Networking 11 09-15-2009 02:08 PM
LXer: Run your NFS server in the user address space with NFS-GANESHA LXer Syndicated Linux News 0 11-27-2008 04:40 AM
NFS error: sometimes unable to find the files at NFS-client machines samengr Linux - Server 0 09-01-2008 11:26 AM
NFS client = Linux, NFS server = Mac OS X Tiger --> Hell of a problem make Linux - Networking 9 03-10-2006 05:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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