UbuntuBantu
04-21-2011, 02:50 PM
I'm having a hell of a time trying to understand and resolve two NFS issues and I'm hoping that the knowlegeable folk on this forum are able to help me understand and resolve the issues (I'm guessing they're related).
Background:
I am running Ubuntu 10.10 on my workstation and have Ubuntu Server 10.10 installed on a HP Proliant MicroServer.
A NFS share is configured on the MicroServer and successfully mounts from workstation PC/ Ubuntu 10.10
The issues:
Copying files to an NFS share on the microserver is very, very slow.
Whilst files copied to the NFS share are visible to the workstation, they don't appear when using 'ls' on the server.
despite the folder owner/ user account on the Microserver and the workstation having the same name and sharing the same UID & GID (1000), copies made from the workstation have a different UID & GID
workstation$ ls -la
total 28
drwxr-xr-x 7 4294967294 4294967294 4096 2011-04-19 22:04 .
drwxr-xr-x 6 root root 4096 2011-04-21 19:54 ..
drwxrwxrwx 4 4294967294 4294967294 4096 2011-04-21 19:55 disk1
drwxrwxrwx 2 4294967294 4294967294 4096 2011-04-19 22:04 disk2
drwxrwxrwx 2 4294967294 4294967294 4096 2011-04-19 22:04 disk3
drwxrwxrwx 2 4294967294 4294967294 4096 2011-04-19 22:04 disk4microserver$ ls -la
total 28
drwxr-xr-x 7 egd egd 4096 2011-04-19 22:04 .
drwxr-xr-x 4 root root 4096 2011-04-19 07:27 ..
drwxr-xr-x 3 egd egd 4096 2011-04-21 08:24 disk1
drwxr-xr-x 3 egd egd 4096 2011-04-19 21:13 disk2
drwxr-xr-x 3 egd egd 4096 2011-04-19 21:16 disk3
drwxr-xr-x 3 egd egd 4096 2011-04-19 21:17 disk4
Configuration:
HP Proliant MicroServer:
Network config:microserver$ ifconfig
eth0 Link encap:Ethernet HWaddr 68:b5:99:79:ff:90
inet addr:192.168.168.252 Bcast:192.168.168.255 Mask:255.255.255.0
inet6 addr: fe80::6ab5:99ff:fe79:ff90/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:170867 errors:0 dropped:0 overruns:0 frame:0
TX packets:86755 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:255720726 (255.7 MB) TX bytes:6477663 (6.4 MB)
Interrupt:18
4 x 2TB drives formatted ext4, mounted to /media/audiolib/disk1...4 via fstab:
/dev/sda1 /media/audiolib/disk1 ext4 user,noatime,noexec,nodev 0 0
/dev/sdb1 /media/audiolib/disk2 ext4 user,noatime,noexec,nodev 0 0
/dev/sdc1 /media/audiolib/disk3 ext4 user,noatime,noexec,nodev 0 0
/dev/sdd1 /media/audiolib/disk4 ext4 user,noatime,noexec,nodev 0 0
folder/ file permissions for /media/audiolib
microserver$ sudo ls -la
drwxr-xr-x 7 egd egd 4096 2011-04-19 22:04 audiolib
folder/ file permissions for /media/audiolib/disk1...4
drwxr-xr-x 3 egd egd 4096 2011-04-21 08:24 disk1
drwxr-xr-x 3 egd egd 4096 2011-04-19 21:13 disk2
drwxr-xr-x 3 egd egd 4096 2011-04-19 21:16 disk3
drwxr-xr-x 3 egd egd 4096 2011-04-19 21:17 disk4
NFS share configuration:microserver$ cat /etc/exports
# /etc/exports: the access control list for filesystems which may be exported
# to NFS clients. See exports(5).
#
# Example for NFSv2 and NFSv3:
# /srv/homes hostname1(rw,sync,no_subtree_check) hostname2(ro,sync,no_subtree_check)
#
# Example for NFSv4:
# /srv/nfs4 gss/krb5i(rw,sync,fsid=0,crossmnt,no_subtree_check)
# /srv/nfs4/homes gss/krb5i(rw,sync,no_subtree_check)
#
/media/audiolib 192.168.168.1/24(rw,root_squash,sync,nohide)
Workstation:
Network config:workstation$ ifconfig
eth0 Link encap:Ethernet HWaddr 00:1e:8c:44:b5:06
inet addr:192.168.168.1 Bcast:192.168.168.255 Mask:255.255.255.0
inet6 addr: fe80::21e:8cff:fe44:b506/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:93652 errors:0 dropped:0 overruns:0 frame:0
TX packets:24996 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:12985610 (12.9 MB) TX bytes:245907927 (245.9 MB)
Interrupt:17
NFS share mounted using sudo mount 192.168.168.252:/media/audiolib /media/canonflash/
workstation$ mount
192.168.168.252:/media/audiolib on /media/canonflash type nfs (rw,vers=4,addr=192.168.168.252,clientaddr=192.168 .168.1)
egd@workstation:/media$ ls -la
total 24
drwxr-xr-x 6 root root 4096 2011-04-21 19:54 .
drwxr-xr-x 22 root root 4096 2011-04-02 11:18 ..
drwxr-xr-x 2 egd egd 4096 2010-05-09 10:13 0CDB-0F33
drwxr-xr-x 2 egd egd 4096 2010-05-03 20:05 AudioLIB
drwxr-xr-x 7 4294967294 4294967294 4096 2011-04-19 22:04 canonflash
drwxr-xr-x 7 egd egd 4096 2011-01-25 19:27 egd_backup
-rw-r--r-- 1 root root 0 2011-04-12 07:04 .hal-mtab
Background:
I am running Ubuntu 10.10 on my workstation and have Ubuntu Server 10.10 installed on a HP Proliant MicroServer.
A NFS share is configured on the MicroServer and successfully mounts from workstation PC/ Ubuntu 10.10
The issues:
Copying files to an NFS share on the microserver is very, very slow.
Whilst files copied to the NFS share are visible to the workstation, they don't appear when using 'ls' on the server.
despite the folder owner/ user account on the Microserver and the workstation having the same name and sharing the same UID & GID (1000), copies made from the workstation have a different UID & GID
workstation$ ls -la
total 28
drwxr-xr-x 7 4294967294 4294967294 4096 2011-04-19 22:04 .
drwxr-xr-x 6 root root 4096 2011-04-21 19:54 ..
drwxrwxrwx 4 4294967294 4294967294 4096 2011-04-21 19:55 disk1
drwxrwxrwx 2 4294967294 4294967294 4096 2011-04-19 22:04 disk2
drwxrwxrwx 2 4294967294 4294967294 4096 2011-04-19 22:04 disk3
drwxrwxrwx 2 4294967294 4294967294 4096 2011-04-19 22:04 disk4microserver$ ls -la
total 28
drwxr-xr-x 7 egd egd 4096 2011-04-19 22:04 .
drwxr-xr-x 4 root root 4096 2011-04-19 07:27 ..
drwxr-xr-x 3 egd egd 4096 2011-04-21 08:24 disk1
drwxr-xr-x 3 egd egd 4096 2011-04-19 21:13 disk2
drwxr-xr-x 3 egd egd 4096 2011-04-19 21:16 disk3
drwxr-xr-x 3 egd egd 4096 2011-04-19 21:17 disk4
Configuration:
HP Proliant MicroServer:
Network config:microserver$ ifconfig
eth0 Link encap:Ethernet HWaddr 68:b5:99:79:ff:90
inet addr:192.168.168.252 Bcast:192.168.168.255 Mask:255.255.255.0
inet6 addr: fe80::6ab5:99ff:fe79:ff90/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:170867 errors:0 dropped:0 overruns:0 frame:0
TX packets:86755 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:255720726 (255.7 MB) TX bytes:6477663 (6.4 MB)
Interrupt:18
4 x 2TB drives formatted ext4, mounted to /media/audiolib/disk1...4 via fstab:
/dev/sda1 /media/audiolib/disk1 ext4 user,noatime,noexec,nodev 0 0
/dev/sdb1 /media/audiolib/disk2 ext4 user,noatime,noexec,nodev 0 0
/dev/sdc1 /media/audiolib/disk3 ext4 user,noatime,noexec,nodev 0 0
/dev/sdd1 /media/audiolib/disk4 ext4 user,noatime,noexec,nodev 0 0
folder/ file permissions for /media/audiolib
microserver$ sudo ls -la
drwxr-xr-x 7 egd egd 4096 2011-04-19 22:04 audiolib
folder/ file permissions for /media/audiolib/disk1...4
drwxr-xr-x 3 egd egd 4096 2011-04-21 08:24 disk1
drwxr-xr-x 3 egd egd 4096 2011-04-19 21:13 disk2
drwxr-xr-x 3 egd egd 4096 2011-04-19 21:16 disk3
drwxr-xr-x 3 egd egd 4096 2011-04-19 21:17 disk4
NFS share configuration:microserver$ cat /etc/exports
# /etc/exports: the access control list for filesystems which may be exported
# to NFS clients. See exports(5).
#
# Example for NFSv2 and NFSv3:
# /srv/homes hostname1(rw,sync,no_subtree_check) hostname2(ro,sync,no_subtree_check)
#
# Example for NFSv4:
# /srv/nfs4 gss/krb5i(rw,sync,fsid=0,crossmnt,no_subtree_check)
# /srv/nfs4/homes gss/krb5i(rw,sync,no_subtree_check)
#
/media/audiolib 192.168.168.1/24(rw,root_squash,sync,nohide)
Workstation:
Network config:workstation$ ifconfig
eth0 Link encap:Ethernet HWaddr 00:1e:8c:44:b5:06
inet addr:192.168.168.1 Bcast:192.168.168.255 Mask:255.255.255.0
inet6 addr: fe80::21e:8cff:fe44:b506/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:93652 errors:0 dropped:0 overruns:0 frame:0
TX packets:24996 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:12985610 (12.9 MB) TX bytes:245907927 (245.9 MB)
Interrupt:17
NFS share mounted using sudo mount 192.168.168.252:/media/audiolib /media/canonflash/
workstation$ mount
192.168.168.252:/media/audiolib on /media/canonflash type nfs (rw,vers=4,addr=192.168.168.252,clientaddr=192.168 .168.1)
egd@workstation:/media$ ls -la
total 24
drwxr-xr-x 6 root root 4096 2011-04-21 19:54 .
drwxr-xr-x 22 root root 4096 2011-04-02 11:18 ..
drwxr-xr-x 2 egd egd 4096 2010-05-09 10:13 0CDB-0F33
drwxr-xr-x 2 egd egd 4096 2010-05-03 20:05 AudioLIB
drwxr-xr-x 7 4294967294 4294967294 4096 2011-04-19 22:04 canonflash
drwxr-xr-x 7 egd egd 4096 2011-01-25 19:27 egd_backup
-rw-r--r-- 1 root root 0 2011-04-12 07:04 .hal-mtab