NFS4 problems -

Ed Greshko Ed.Greshko at greshko.com
Tue Dec 4 04:04:22 UTC 2012


OK.....   I decided to "replicate" what I think is your environment and what I "think" you want....

I have 2 systems....

f17x = Server
f17   = Client

Sorry about the similar host names.  These are VMs and that is the way I set them up. 

*************  SERVER  ***************

[root at f17x etc]# cat fstab

#
# /etc/fstab
# Created by anaconda on Sat Jul 28 19:57:55 2012
#
/dev/mapper/vg_f17x-lv_root /                       ext4    defaults        1 1
UUID=282ad858-80b0-446d-b8e8-061edb6088ff /boot                   ext4    defaults        1 2
/dev/mapper/vg_f17x-lv_swap swap                    swap    defaults        0 0

/home/home          /nfsexports/home     none    rw,bind 0 0


[root at f17x etc]# cat exports
/nfsexports        192.168.0.0/24(ro,sync,insecure,root_squash,no_subtree_check,fsid=0)
/nfsexports/home     192.168.0.0/24(rw,nohide,sync,insecure,root_squash,no_subtree_check)


[root at f17x etc]# cd /nfsexports/
[root at f17x nfsexports]# ll
total 4
drwxr-xr-x. 6 egreshko egreshko 4096 Dec  4 11:37 home
[root at f17x nfsexports]# ll home
total 16
drwxrwxr-x. 2 egreshko egreshko 4096 Dec  4 11:37 four
drwxrwxr-x. 2 egreshko egreshko 4096 Dec  4 10:51 one
drwxrwxr-x. 2 egreshko egreshko 4096 Dec  4 10:51 three
drwxrwxr-x. 2 egreshko egreshko 4096 Dec  4 10:51 two


[root at f17x etc]# cd /home
[root at f17x home]# ll
total 8
drwx------. 40 egreshko egreshko 4096 Dec  4 11:34 egreshko
drwxr-xr-x.  6 egreshko egreshko 4096 Dec  4 11:37 home
[root at f17x home]# cd home
[root at f17x home]# pwd
/home/home
[root at f17x home]# ll
total 16
drwxrwxr-x. 2 egreshko egreshko 4096 Dec  4 11:37 four
drwxrwxr-x. 2 egreshko egreshko 4096 Dec  4 10:51 one
drwxrwxr-x. 2 egreshko egreshko 4096 Dec  4 10:51 three
drwxrwxr-x. 2 egreshko egreshko 4096 Dec  4 10:51 two


************* CLIENT ******************
[root at f17 ~]# cd /etc
[root at f17 etc]# cat fstab
#
# /etc/fstab
#
/dev/mapper/vg_f17-lv_root /                       ext4    defaults        1 1
UUID=7a84488c-7acd-4ede-b4ec-b8e169d5a09d /boot                   ext4    defaults        1 2
/dev/mapper/vg_f17-lv_swap swap                    swap    defaults        0 0
# NFS mounts
#misty:/syntegra /syntegra                nfs4    defaults        0 0
#misty:/myhome /home/egreshko/misty       nfs4    defaults        0 0
192.168.0.171:/home  /mnt/HOME1           nfs4    defaults        0 0

[root at f17 etc]# cd /mnt/
[root at f17 mnt]# ll
total 4
drwxr-xr-x. 6 egreshko egreshko 4096 Dec  4 11:37 HOME1
[root at f17 mnt]# cd HOME1/
[root at f17 HOME1]# ll
total 16
drwxrwxr-x. 2 egreshko egreshko 4096 Dec  4 11:37 four
drwxrwxr-x. 2 egreshko egreshko 4096 Dec  4 10:51 one
drwxrwxr-x. 2 egreshko egreshko 4096 Dec  4 10:51 three
drwxrwxr-x. 2 egreshko egreshko 4096 Dec  4 10:51 two

[root at f17 HOME1]# df -T
Filesystem                 Type     1K-blocks    Used Available Use% Mounted on
rootfs                     rootfs    30479304 8420896  20510120  30% /
devtmpfs                   devtmpfs    504972       0    504972   0% /dev
tmpfs                      tmpfs       513868      92    513776   1% /dev/shm
tmpfs                      tmpfs       513868    1164    512704   1% /run
/dev/mapper/vg_f17-lv_root ext4      30479304 8420896  20510120  30% /
tmpfs                      tmpfs       513868       0    513868   0% /sys/fs/cgroup
tmpfs                      tmpfs       513868       0    513868   0% /media
/dev/sda1                  ext4        495844   93045    377199  20% /boot
192.168.0.171:/home/       nfs4      23254912 8666368  13407232  40% /mnt/HOME1


Again....  Please note that I keep my UID/GID consistent on all systems.  That is *very* helpful to proper permission control.

I don't know what more to tell you....







More information about the users mailing list