Copies over NFS and buffer issue


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Copies over NFS and buffer issue
# 1  
Old 08-09-2011
Copies over NFS and buffer issue

Hi All,
i'm experiencing some strange behavior (at least for me) of my NFS server.

In few words I have a server that exposes a directory via NFS and a client that mount it.
I tested a simple copy from the client to the exposed directory of a file of 2GB and i see that on the server the file is created pretty soon, then no byte is written for a while (checking with ls -la), then the size increases from 0 to something like 8MB, then after a while to 12MB and so on....clearly with some buffer since it doesn't increase "linearly".

This is how the directory is exported:
Code:
[root@server ~]# exportfs -v
/nfs/dir my-client(rw,async,wdelay,root_squash,no_subtree_check,fsid=0,anonuid=65534,anongid=65534)

And in the fstab client file i have:
Code:
server:/ /nfs/dir nfs4 rw,rsize=32768,wsize=32768,intr 0  0

Is there any option to remove that buffered behaviour ?

Thanks in advance
Ste

Last edited by pludi; 08-09-2011 at 05:50 PM..
# 2  
Old 08-10-2011
Well, the only things really fair to complain about is the after state and speed. If the size is wrong after the copy, then you have a fair gripe

I wrote an mmap() process on NFS file space and the changes did not propagate unless I did an ls -l on the dir to force an update to the local view of the remote inodes..

I wrote another process that effectively did a tail -f of an nfs mounted file on os/390 in C, for near real time monitoring with 100% logging, and to make sure it did not stall, just did close, open, seek and if no new data, poll(0,0,1) (millisecond sleep to avoid hogging CPU); this worked great.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Red Hat

NFS mount issue

we are facing a weird NFS mount issue on one of the linux host , a NFS volume of 2.4TB is mounted in the linux host , but df only reports 131g , which exactly matches rootfilesytem size nfs mount filer_filer1:/vol/bug_test/q0 131G 116G 8.5G 94% /nas/bug_test root... (2 Replies)
Discussion started by: skamal4u
2 Replies

2. Red Hat

NFS mounting issue

The server ip is 10.2.2.24. I have installed nfs-utils package the i have edited /etc/exports i have added the following line /home 10.2.2.0/24(rw,sync,no_root_squash,no_all_squash) i have saved, i have started the nfs service, then i am trying to mount nfs sharing from client machine using... (5 Replies)
Discussion started by: ainstin
5 Replies

3. Red Hat

NFS mount issue

Hi Friends, My source server is HP and my destination is linux. I have to mount a dir thru nfs from source to destn. almost 8 servers i did the same thing and it is working fine but on the 9th server i can't able to mount. Everything i have did for nfs configuration.Even i can able to ping... (1 Reply)
Discussion started by: Mohamed Thamim
1 Replies

4. Red Hat

NFS-Mount issue

Hi, While i try to mount the NFS file system on the client linux server i am getting the error message as (4 Replies)
Discussion started by: gsiva
4 Replies

5. Red Hat

NFS Performance Issue

Hi, I have a conflict. I have 2 servers: the 1st creates an application logs and the 2nd is an empty server. I want to export (read-only) from the 1st server by NFS the directory that contains the logs to the 2nd server. Now, the question is: If in the 2nd server i'm doing a lot of... (3 Replies)
Discussion started by: moshesa
3 Replies

6. UNIX for Dummies Questions & Answers

nfs issue.

Hi whenever i execute ls -ltr i get following entry. But there is no such user as 501 .What is the issue. #ls -ltr drwxrwxrwx 2 501 501 3896 Aug 19 10:46 File1 # cat /etc/passwd | grep 501 The problem is this folder is mouted on client machine using nfs.But after mouting client... (4 Replies)
Discussion started by: pinga123
4 Replies

7. Solaris

New Member with NFS Issue

Hi Guys. Maybe someione can assist here. Solaris 9 with a NFS mount point to a Netapp Filer. NFS V3 Changes in the environment: Moved from 1 building to a new one. (All the equipment and network stayed the same) Errors: nfs: NFS read failed for server netapp: error 11 (RPC: Server... (2 Replies)
Discussion started by: Boesman
2 Replies

8. Red Hat

NFS Access Issue

Hi, I am facing issue on NFS. I have shared /data file file system on Server 192.192.192.1, added below lines in /etc/exports /data 192.192.192.2(rw,no_root_squash,sync) the owner of /data directory was test(uid 500) and same I have mounted on another server 192.192.192.2 where the... (3 Replies)
Discussion started by: manoj.solaris
3 Replies

9. Red Hat

nfs issue

Hello, I am running RHEL4 AS. /net/hostname is not always accessible. To solve the problem, I restart nfs, nfslock and portmap. in /var/log/messages, I keep on receiving: nfs_statfs: statfs error = 116 1] What does the above error mean? 2] any idea why portmap becomes dead? thanks. (1 Reply)
Discussion started by: melanie_pfefer
1 Replies

10. Programming

Not able to use NFS mounted directory as buffer for untar & unzip.

Hi, For a new requirement, we are trying to use NFS mounted directory as the buffer (TMP_DIR) for untar. Target OS- VxWorks Host OS - Windows Embedded. mounted a directory in wondows onto VxWorks. During untar process of GNU we come across utime, for chaning the time stamp of the... (0 Replies)
Discussion started by: suraj.bc
0 Replies
Login or Register to Ask a Question