LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   NFS help (https://www.linuxquestions.org/questions/linux-newbie-8/nfs-help-736275/)

lleb 06-28-2009 07:29 PM

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.

chrism01 06-28-2009 07:35 PM

Use the intr option http://www.linuxtopia.org/online_boo...g-options.html in fstab to allow systems to disconnect if it fails

lleb 06-28-2009 07:53 PM

Quote:

Originally Posted by chrism01 (Post 3589377)
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.

lleb 06-28-2009 07:57 PM

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.

lleb 06-28-2009 09:57 PM

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?

lleb 06-28-2009 10:01 PM

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


All times are GMT -5. The time now is 09:35 AM.