file lock existence check on remote host
Clash Royale CLAN TAG#URR8PPP
up vote
1
down vote
favorite
I want to check the existence of file lock on a file in gluster file system. So that I can see from any host that whether file lock is held by any process (remote or local) on file in gluster file system.
For Example:
I have two host: h1 and h2, both with RHEL 7.2. I have one application on host h1 which has acquired the file lock on a file in gluster file system using pthread_rwlock_wrlock
API. After sometimes I poweroff host h1.
Now from h2 I am using pthread_rwlock_trywrlock
to see whether any lock is held on this file or not. this retuning me EBUSY
till 30 minutes of poweroff of h1(its looking as if application from h1 has still held lock on it). After around 30 minutes pthread_rwlock_trywrlock
returning 0
.
Is there any way I can quickly check that a file in gluster is held by any any process or not?
linux c glusterfs pthreads
add a comment |
up vote
1
down vote
favorite
I want to check the existence of file lock on a file in gluster file system. So that I can see from any host that whether file lock is held by any process (remote or local) on file in gluster file system.
For Example:
I have two host: h1 and h2, both with RHEL 7.2. I have one application on host h1 which has acquired the file lock on a file in gluster file system using pthread_rwlock_wrlock
API. After sometimes I poweroff host h1.
Now from h2 I am using pthread_rwlock_trywrlock
to see whether any lock is held on this file or not. this retuning me EBUSY
till 30 minutes of poweroff of h1(its looking as if application from h1 has still held lock on it). After around 30 minutes pthread_rwlock_trywrlock
returning 0
.
Is there any way I can quickly check that a file in gluster is held by any any process or not?
linux c glusterfs pthreads
add a comment |
up vote
1
down vote
favorite
up vote
1
down vote
favorite
I want to check the existence of file lock on a file in gluster file system. So that I can see from any host that whether file lock is held by any process (remote or local) on file in gluster file system.
For Example:
I have two host: h1 and h2, both with RHEL 7.2. I have one application on host h1 which has acquired the file lock on a file in gluster file system using pthread_rwlock_wrlock
API. After sometimes I poweroff host h1.
Now from h2 I am using pthread_rwlock_trywrlock
to see whether any lock is held on this file or not. this retuning me EBUSY
till 30 minutes of poweroff of h1(its looking as if application from h1 has still held lock on it). After around 30 minutes pthread_rwlock_trywrlock
returning 0
.
Is there any way I can quickly check that a file in gluster is held by any any process or not?
linux c glusterfs pthreads
I want to check the existence of file lock on a file in gluster file system. So that I can see from any host that whether file lock is held by any process (remote or local) on file in gluster file system.
For Example:
I have two host: h1 and h2, both with RHEL 7.2. I have one application on host h1 which has acquired the file lock on a file in gluster file system using pthread_rwlock_wrlock
API. After sometimes I poweroff host h1.
Now from h2 I am using pthread_rwlock_trywrlock
to see whether any lock is held on this file or not. this retuning me EBUSY
till 30 minutes of poweroff of h1(its looking as if application from h1 has still held lock on it). After around 30 minutes pthread_rwlock_trywrlock
returning 0
.
Is there any way I can quickly check that a file in gluster is held by any any process or not?
linux c glusterfs pthreads
linux c glusterfs pthreads
edited yesterday
José Manuel Ramos
1032
1032
asked yesterday
dcds
1153415
1153415
add a comment |
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f481715%2ffile-lock-existence-check-on-remote-host%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown