Article title: fcntl: F_SETLKW: Norecordlocksavailable in the apache error log. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
Problem: The server is suspended or cannot be started. the error log contains "fcntl: F_SETLKW: No record locks available" or similar information.
This is a file lock problem, indicating that the Apache server is trying to use the synchronization file on an NFS file system. Because the parallel operation mode is used, the Apache server needs some synchronization mechanisms when accessing certain resources. One of the synchronization mechanisms is file locking. the file system on which the file to be locked must support the locking mechanism. Therefore, this problem occurs when the file on the NFS file system is used.
Solution: to address the limitations of the NFS file system, you can add a line in the configuration file:
LockFile/var/run/apache-lock
This file cannot be written to others.
Note: The NFS locking mechanism has been provided after Redhat Linux7.x, so this problem should not occur.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.