Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CA-405417: add tracing of process holding device #731

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

MarkSymsCtx
Copy link
Contributor

No description provided.

@@ -446,15 +446,15 @@ def _openExclusive(dev, retry):
try:
return os.open("%s" % dev, os.O_RDWR | os.O_EXCL)
except OSError as ose:
opened_by = ''
ret = util.pread2(["lsof", dev])
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think lsof can get stuck though if you have a stuck remote filesystem (NFS/GFS2), because as it looks through /proc it might try to resolve links pointing to these FS.

Or at least fuser would get stuck, and we had to remove a usage of that from XAPI to prevent XAPI from getting stuck:
xapi-project/xen-api#6197

Is it possible to run this command, but with a timeout so it doesn't completely block everything?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants