[blivet 2/2] Run lsof when umount fails

Brian C. Lane bcl at redhat.com
Wed Jun 12 00:07:45 UTC 2013


From: "Brian C. Lane" <bcl at redhat.com>

We are seeing some intermittent reports of umount failing. When this
happens try to get an idea of what is keeping it busy. Output will be
logged to program.log
---
 blivet/formats/fs.py | 2 ++
 python-blivet.spec   | 1 +
 2 files changed, 3 insertions(+)

diff --git a/blivet/formats/fs.py b/blivet/formats/fs.py
index ed7eac3..c920406 100644
--- a/blivet/formats/fs.py
+++ b/blivet/formats/fs.py
@@ -623,6 +623,8 @@ class FS(DeviceFormat):
 
         rc = util.umount(self._mountpoint)
         if rc:
+            # try and catch whatever is causing the umount problem
+            util.run_program(["lsof", self._mountpoint])
             raise FSError("umount failed")
 
         self._mountpoint = None
diff --git a/python-blivet.spec b/python-blivet.spec
index 636bbc7..bed7050 100644
--- a/python-blivet.spec
+++ b/python-blivet.spec
@@ -39,6 +39,7 @@ Requires: e2fsprogs >= %{e2fsver}
 Requires: btrfs-progs
 Requires: python-pyblock >= %{pythonpyblockver}
 Requires: device-mapper-multipath
+Requires: lsof
 
 %description
 The python-blivet package is a python module for examining and modifying
-- 
1.8.1.4



More information about the anaconda-patches mailing list