Solaris Cluster 3.x Global filesystem does not support mandatory locking

(Doc ID 1375394.1)

Last updated on JANUARY 07, 2018

Applies to:

Solaris Cluster - Version 3.0 to 3.3 U1 [Release 3.0 to 3.3]
Oracle Solaris on SPARC (64-bit)
Oracle Solaris on x86-64 (64-bit)

Symptoms

The following error message can occur if you use logadm on Solaris Cluster global filesystem (pxfs).
logadm: Error: cannot lock file mylogfile: Operation not supported

You may see similar error messages from other utilities trying to use  mandatory locking on Solaris Cluster global filesystem.



Example:
In a Solaris Cluster configuration, a log file named mylogfile has been placed in a global filesystem named /global/data.


# ls -l /global/data/mylogfile*
-rw-r--r-- 1 root root 6 Nov 9 09:47 mylogfile

If using logadm utility to rotate that log file fails on pxfs.
root@node1# logadm -v -c -C 3 -p 1m mylogfile
Output of command above:
# loading /etc/logadm.conf
# processing logname: mylogfile
# using default template: $file.$n
mkdir -p . # verify directory exists
# log rotation via atomic copy and truncation (-c flag):
# copy mylogfile to mylogfile.0
# truncate mylogfile
logadm: Error: cannot lock file mylogfile: Operation not supported

# ls -l /global/data/mylogfile*
-rw-r-lr-- 1 root root 6 Nov 9 09:47 mylogfile
-rw-r--r-- 1 root root 0 Nov 9 09:48 mylogfile.0

Note that mylogfile now has the l bit set in the permissions.

Changes

 

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms