Quest on NFS with 1 Server & 2 Clients


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Quest on NFS with 1 Server & 2 Clients
# 1  
Old 03-15-2012
Quest on NFS with 1 Server & 2 Clients

Hello;

I work now with a team which has based her "applications" on the following schema:

1 NFS client C1 (linux redhat 5) writes a file fic.dat on a NFS SERVER S (RH 5)
Another NFS client C2 is waiting for the same file fic.dat (on NFS server S1), and, when "fic.dat" appears, then makes process on this file (it is resumed only).
All machines (C1,C2 and S) work in NFS V3 only.

My first question is: what is the name of this special mode of operation with 3 machines and not only 1 Client and 1 Server as usual?

My second question is about performances witch are very bad. The file fic.dat could appears on "C2" about 30 seconds after it creation on "C1".
Which are NFS parameters that are involved in this process?
I have tried to set ACTIMEO to 0 and it'is less bad, but the "response" time is not good. And other flags... but it is not ok.
I have also put NFS in TCP mode, and other ....
I have tried also the SYNC flag, it is no better

Thank you for few ideas.
PS
[sorry for my poor English...]
# 2  
Old 03-17-2012
First of all, please do not apologize for your English. Your English is good enough! Smilie

Before I could suggest you anything, could you please post the /etc/exports entry for the clients from the NFS server? I need to know if both the clients are mounting the share in rw mode.
# 3  
Old 03-18-2012
I need to know if both the clients are mounting the share in rw mode.
??? Yes of course!

The 2 clients have the same fstab; it is in the line concerning the server, I have worked many: actimeo=0, transport=tcp, and many other tests!
I don't remember. The only effect is theses flags degrade the perf.
Basicly, the /ext/exports contains only the share disk name
/NFS_SHARE
or
/NFS_SHARE sync
None of the flags I have tried, did solve the problemSmilie
and i am on this pb from many months
# 4  
Old 03-18-2012
Well, if C2 is only processing the data and not writing anything on the share, what's the point of mounting the share in rw mode. That's probably causing the problem due to locks. Edit your /etc/exports like this and check:

Code:
/NFS_SHARE  IP_of_C1(rw,sync,no_wdelay)
/NFS_SHARE  IP_of_C2(ro)

# 5  
Old 03-18-2012
I have never say the C2 client reads only the file!

C2 reads the file, do a proccess, and then delete the file.
Then, C1 must "view" the deletion of the file by C2 and follows a new sequence. Many time, even C2 has deleted the file, C1 views always the file. It is the second cause of failure. In fact, it is the same problem, but "swapped".

When C1 creates a file on the share, it waits until C2 read the file and delete it (C1 is "blocked", proccess between C1 and S2 are sequentials, not parallel.


I have tried the rsync flag already. It's no solves any thing
# 6  
Old 03-18-2012
What's the usual size of the file we are talking about? Did you check with no_wdelay option?
# 7  
Old 03-18-2012
they are little files;
About few bytes for "synchro" files, and about few Kbytes for other.

I have never test with no_wdelay.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. AIX

AIX NFS Server and NFS Client

Hi 2 ALL, try to run NFS Server in AIX 7.1 : 1. Step by step on NFS Server node mkdir /tmp/test chgrp staff /tmp/test chmod 775 /tmp/test-- create export directory (fs) mknfsexp -d /tmp/test -t ro exportfs -va show mount -e :/# exportfs -av exports: 1831-187 re-exported /tmp/test... (4 Replies)
Discussion started by: penchev
4 Replies

2. Solaris

NFS with a NAS: permanently inconsistent directory state across clients

Hi, I am having some NFS directory consistency problems with the below setup on a local (192.) network: 1. Different permissions (chmod) for the same NFS dir are reflected on different clients. 2. (more serious) an NFS dir created on client1 cannot be accessed on client2; this applies to some... (10 Replies)
Discussion started by: cosmojetz
10 Replies

3. UNIX for Dummies Questions & Answers

Unmounting NFS idle clients from server

Hello World, We have a software repository server in our environment which we use as an NFS server. Now this has been going on well before I was hired. Now, I observed many users not unmounting the NFS resources after their use. I ran showmount and it showed 513 current sessions. :wall: Is... (7 Replies)
Discussion started by: satish51392111
7 Replies

4. Programming

Clients - Server ( UDP )

Hello, I have a question: I want to create a n client to one server connection. This is the client-server algorithm. Enybody help to make the changes? (0 Replies)
Discussion started by: MaHmur
0 Replies

5. IP Networking

Some clients cannot ping UNIX server

All of sudden in this morning, some computers could not connect to our UNIX server while other still could. Some computers could ping the server while some could not. Same on the server side. It could ping some clients but not some. All Windows clients could ping each other. And more, the... (1 Reply)
Discussion started by: jonapa
1 Replies

6. Solaris

Solaris 9 as a nfs client -- centos as a nfs server.

Hello, I have a centos as nfs server, its name is centos_A. After I finish the setup of the nfs server, the other linux can access this nfs server immediately via /net/centos_A/* But, My solaris 9 can not access /net/centos_A/* immediately. I have to leave /net/centos_A, and wait for about... (1 Reply)
Discussion started by: bruceharbin
1 Replies

7. AIX

NTP server with aix & wintel clients

Good morning to all, can someone advise me how to setup aix ntp server with aix & wintel clients? Secondly, I also require to enable the service to autostart on reboot, how do I configure this? Thirdly, how do I configure daily autosync between clients and server? Please advice, thanks.... (0 Replies)
Discussion started by: chongkls77
0 Replies

8. Cybersecurity

List of HTTP/FTP-clients on a server

The other day, a friend of mine had his Linux webserver compromised because he was running a vulnerable PHP-script. The "hacker" had used a malformed URL to include a wget-command to fetch some stuff off the net and install it in /dev/shm where it ran undetected. Fortunately, the webserver ran as a... (2 Replies)
Discussion started by: indo1144
2 Replies

9. Solaris

Solaris 8 server and Jumpstarting 2.6 clients

Ladies and Gentlemen: I have successfully configured a Solaris 8 server with Jumpstart! I can Jumpstart Solaris 8 client systems with no problem. My configuration is as follows: Jumpstart Server: Solaris 8 patched with Recommended Patches from June 05. I have installed Solaris 8 in... (4 Replies)
Discussion started by: rambo15
4 Replies
Login or Register to Ask a Question