Nexenta, NFS and LOCK_EX

Posted by Givre on Server Fault See other posts from Server Fault or by Givre
Published on 2012-06-28T18:49:04Z Indexed on 2012/06/28 21:18 UTC
Read the original article Hit count: 203

Filed under:
|
|
|

I'm currently using an LAMP architecture and I expect a big problem :(

I have several http web server using PHP5. All are mounting via NFS (v3) the directory for all the hosted websites. The file server is running the Nexenta Storage Appliance using ZFS .

The problem is all the NFS client trying to write something in a file over the NFS get this problem :

This is inside the apache2 process:

open("/nfs/website1/file.txt", ORDWR|OCREAT, 0600) = 11647 fstat(11647, {stmode=SIFREG|0600, st_size=23754, ...}) = 0 flock(11647, LOCK_EX

And the process never get the LOCK and keep waiting for... always.

The effect? All the apache2 procces get used and waiting.. my severs can't still proccess the others requests because there is no more proccess available.

I don't now where to find a solution.. for me it.'s on the NFS server side.. but wich configuration is wrong or missing ? How can I find what is wrong? If you need more information about the configuration, just ask me what can help you more :)

© Server Fault or respective owner

Related posts about solaris

Related posts about nfs