Displaying 20 results from an estimated 10000 matches similar to: "Lock files in scripts"
2010 Nov 25
4
[PATCH]improve suspend_evtchn lock processing
While doing migration, sometimes found suspend lock file was not unlinked in previous operations, then there is an obsolete lock file in place, which causes the current and later migration cannot get lock. That happens seldomly but do happen.
After checking the source code, I found there are some places that potentially cause lock file unlinked, including:
1) in lock_suspend_event() function,
2012 Feb 17
1
Race Condition In PHP Session Handler
php-5.3.3-3.el6_2.6.x86_64
2.6.32-220.4.2.el6.x86_64
After some testing we moved our production PHP intranet site from an old
server to a new CentOS 6.2 instance running the mentioned versions. At
first it worked well and then user's started to experience a hung site.
Upon some digging it appears that the PHP module is getting stuck in a
race condition regarding the sessions file -
[root at
2014 Feb 05
2
[PATCH] appliance/init: provide a symlink /var/lock
Provide /var/lock as symlink to /run/lock, as it might be used by
applications.
---
appliance/init | 1 +
1 file changed, 1 insertion(+)
diff --git a/appliance/init b/appliance/init
index b25ea26..aac3f5a 100755
--- a/appliance/init
+++ b/appliance/init
@@ -32,6 +32,7 @@ mount -t sysfs /sys /sys
mkdir -p /run
mount -t tmpfs -o "nosuid,size=20%,mode=0755" tmpfs /run
mkdir -p
2020 Apr 30
2
systemctl restart changes permission.
Hi,
I am running CentOS Linux release 7.8.2003 (Core)
with php72u-fpm-7.2.30-1.el7.ius.x86_64 version. I am facing the below
permission denied issue. I also did the below steps
#cd /run
#chown -Rc nginx.nginx php-fpm
changed ownership of ?php-fpm/php-fpm.pid? from root:root to nginx:nginx
changed ownership of ?php-fpm? from root:root to nginx:nginx
#systemctl restart php-fpm again changes it from
2010 Aug 27
6
Samba and file locking
Are their issues with Samba and Lustre working together? I remember
something about turning oplocks off in samba, and while testing samba
I noticed this
[2010/08/27 17:30:59, 3] lib/util.c:fcntl_getlock(2064)
fcntl_getlock: lock request failed at offset 75694080 count 65536
type 1 (Function not implemented)
But I also found out about the flock option for lustre. Should I set
flock on all
2003 May 17
1
Postfix locking equivalence?
/etc/postfix/main.cf.default:
mailbox_delivery_lock = flock, dotlock
Is flock equivalent to dovecot's fnctl locking? For mbox what type of
locking settings should I be using? (No NFS, only local filesystem.)
Warren Togami
warren at togami.com
2011 Apr 12
2
advisory file locks in linux - do they work?
Hi - I'm trying to verify if OpenSSH/SFTP will in fact lock files with
advisory file locking in Linux. I can test locking with the linux
"flock" command to verify that file locking does work - but when I
upload or download a file with SFTP it will not detect a lock. I'm
asking about Linux specifically because about a year ago I was doing a
similar process in Solaris 9 and
2012 Jun 19
2
smb locks
Hi,
I see samba with ctdb locking has following mapping when
kernel oplocks = yes.
share mode reservations = flock(2)
posix byte range locking = fcntl(2)
SMB locks (mandatory) = ctdb using brlock.tdb
oplocks = fcntl(2) using F_SETLEASE
Am I correct or I am missing something? I hope only SMB range
locks are implemented with tdb, all else are being used from filesystem.
What
2007 Mar 29
1
locking question
There are three applications that have their mitts on files on my mail
server, which is running AIXV5.3 and UWIMAP and mbox format. The mail
folders and INBOXES are native to that machine, but also are NFS
exported to a login server and a mailing list server. All three
machines are running the lockd daemon.
Everybody wants to lock differently
1) procmail (delivering for sendmail), which
2007 Jun 22
2
FreeBSD NFS file locking mechanism
Hi all,
I have some machines running FreeBSD and dovecot deployed. User's home
dir is on NFS mount and I've found that dovecot only works with
dotlock file locking mechanism, fcntl and flock failed. Now it causes
problem with thunderbird (thunderbird is cachine connections) waiting
forever and I noticed that dovecot is trying to acquire a lock but
unsuccessful since the lock file is in
2020 May 06
2
Nodes in CTDB Cluster don't release recovery lock
Hello all,
First of all, apologies if this isn't the right location for this question,
I couldn't find a CTDB specific mailing list or IRC so I figured the
general one would be appropriate. Please let me know if this question is
better placed elsewhere.
I'm trying to test clustered samba and have a two node CTDB setup
(Following the guide here:
2013 Aug 16
1
/var/lock/samba filling up /run/lock
A couple of days ago, we noticed the following message appearing in syslog:
Aug 14 15:09:35 zadok smbd[16067]: tdb(/var/lock/samba/locking.tdb):
expand_file write of 8192 bytes failed (No space left on device)
Similar messages would show up for several of the files under
/var/lock/samba.
Running df showed that /run/lock was full. Not having ever paid any
attention to /run/lock before, I
2007 Apr 24
1
locking questions
I have Dovecot 1.0 in trial use by the IT staff, and have some locking
questions
Background, the mail server runs procmail, sendmail and NFS exports the
user homedir and mailbox to a) a login shell host and b) a mailing list
services host. It runs UWIMAP on the usual ports and dovecot on a
arbitrary port number. Because of concern with NFS and file access
contention. I have the following
2011 Sep 22
1
[Bug 8478] New: Add an option to skip open files
https://bugzilla.samba.org/show_bug.cgi?id=8478
Summary: Add an option to skip open files
Product: rsync
Version: 3.0.8
Platform: All
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P5
Component: core
AssignedTo: wayned at samba.org
ReportedBy: devin.nate at cloudwerx.com
2009 Apr 10
1
[PATCH 1/1] OCFS2: add NFS Sync lock type string.
The lock type string for NFS Sync lock is missing from the last patch
http://oss.oracle.com/pipermail/ocfs2-devel/2009-March/004117.html
This patch is to add the lock type string.
This patch also applies to 1.4 git.
Signed-off-by: Wengang Wang <wen.gang.wang at oracle.com>
--
diff --git a/fs/ocfs2/ocfs2_lockid.h b/fs/ocfs2/ocfs2_lockid.h
index a53ce87..e95cc7b 100644
---
2003 Jul 24
1
does rsync lock exclusively files to copy?
I'm running rsync 2.5.6 on windows (via cygwin) and I've had other processes try to open the same files as rsync, but could not get through sometimes. Does rsync place a shared lock or an exclusive lock on the files it will copy from?
I checked into the sources but did not find any use of flock() which could specify either LOCK_SH or LOCK_EX, so I'm not sure what the open() does when
2016 Nov 03
2
CTDB and locking issues in 4.4.6 (Classic domain)
On 03/11/16 14:28, Ralph Böhme wrote:
>
>> Ah, my smb.conf is missing the "ctdb socket" parameter. According to "man
>> smb.conf" this should be set, but I don't remember seeing it on the wiki
>> pages.
> if it's not set, the default is used which works in many cases, but
> not in mine. If the default wasn't working in your setup,
2018 Mar 06
1
best practice nfs and samba file lock
Hi,
i'm searching for best practice in configuration a dual head nfs / samba
server. At the moment samba 3.6.x is used, an yes i'll know it is EOL.
We have the problem if the windows client open a file, the aix nfs
client doesn't recognize the lock and overwrite the file.
Is there a solution for this or is this the hell of nfs locking ;-)
best regards
Michael
--
Michael Wandel
2007 Jul 11
9
NFS cache flush tester
http://dovecot.org/tools/nfstest.c
I wrote a test utility that tests different ways to flush NFS attribute
cache and data cache. Please test in your NFS setup and show me the
results, so I can make Dovecot v1.1 works well with NFS.
Run the test several times (3 should be enough) to make sure the output
stays the same, because the attribute cache flushes might incorrectly
say "OK". And
2014 Oct 29
1
smbstatus hang with CTDB 2.5.4 and Samba 4.1.13
Can anyone help with some pointers to debug a problem with Samba and CTDB
with smbstatus traversing the connections tdb? I've got a new two node
cluster with Samba and CTDB on AIX. If I run smbstatus when the server
has much user activity it hangs and the node it was run on gets banned. I
see the following in the ctdb log:
2014/10/29 11:12:45.374580 [3932342]: