Security

databasePartitionPolicy - cannot access lock file

vadud3
Path Finder

I am getting few warnings like these

08-24-2011 14:32:48.373 +0000 WARN  databasePartitionPolicy - Cannot access /opt/splunk/var/lib/splunk/audit/hot_v1_4.lock. Ignoring file.
08-24-2011 14:34:33.103 +0000 WARN  databasePartitionPolicy - Cannot access /opt/splunk/var/lib/splunk/audit/hot_v1_4.lock. Ignoring file.
08-24-2011 14:34:54.101 +0000 WARN  databasePartitionPolicy - Cannot access /opt/splunk/var/lib/splunk/audit/hot_v1_4.lock. Ignoring file.
08-24-2011 14:35:52.974 +0000 WARN  databasePartitionPolicy - Cannot access /opt/splunk/var/lib/splunk/acme_cdrs/hot_v1_4.lock. Ignoring file.
08-24-2011 14:35:55.952 +0000 WARN  databasePartitionPolicy - Cannot access /opt/splunk/var/lib/splunk/audit/hot_v1_4.lock. Ignoring file.
08-24-2011 14:36:37.841 +0000 WARN  databasePartitionPolicy - Cannot access /opt/splunk/var/lib/splunk/audit/hot_v1_4.lock. Ignoring file.
08-24-2011 14:37:19.843 +0000 WARN  databasePartitionPolicy - Cannot access /opt/splunk/var/lib/splunk/audit/hot_v1_4.lock. Ignoring file.

Any suggestion on how to address this?

Tags (3)
1 Solution

yannK
Splunk Employee
Splunk Employee

Hi Vadud3

A bucket can be locked by creating this file during 3 operations,
to avoid running more than one of them concurrently on the same bucket :

  • fsck (bucket check after a restart)
  • move (to warm or cold or frozen)
  • delete (to frozen or the empty darkness of the void)

When splunk is calculating the size of an index, it may log the warning you saw, if the lock file disappeared between the beginning and the end of the calculation.
this is not a relevant Warning.

View solution in original post

yannK
Splunk Employee
Splunk Employee

Hi Vadud3

A bucket can be locked by creating this file during 3 operations,
to avoid running more than one of them concurrently on the same bucket :

  • fsck (bucket check after a restart)
  • move (to warm or cold or frozen)
  • delete (to frozen or the empty darkness of the void)

When splunk is calculating the size of an index, it may log the warning you saw, if the lock file disappeared between the beginning and the end of the calculation.
this is not a relevant Warning.

jrodman
Splunk Employee
Splunk Employee

BTW, this message no longer exists in Splunk 4.3

0 Karma
Get Updates on the Splunk Community!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...