Description of problem:
system-config-lvm throws an exception and aborts at start up because
it can't run /sbin/lvm. lvm2 no longer provides such a binary; it's
either /sbin/lvm.static or /usr/sbin/lvm. All of the occurrences are
Version-Release number of selected component (if applicable):
I am also experiencing this problem with a system that was upgraded
from FC3 to rawhide on Feb 13,2005.
The version is the same as listed above.
Traceback (most recent call last):
File "/usr/sbin/system-config-lvm", line 131, in ?
File "/usr/sbin/system-config-lvm", line 116, in runFullGUI
blvm = baselvm(glade_xml, app)
File "/usr/sbin/system-config-lvm", line 70, in __init__
self.volume_tab_view = Volume_Tab_View(glade_xml, self.lvmm,
File "/usr/share/system-config-lvm/Volume_Tab_View.py", line 131, in
File "/usr/share/system-config-lvm/Volume_Tab_View.py", line 203, in
vg_list = self.model_factory.query_VGs()
File "/usr/share/system-config-lvm/lvm_model.py", line 314, in query_VGs
result_string = rhpl.executil.execWithCapture("/sbin/lvm",arglist)
File "/usr/lib/python2.4/site-packages/rhpl/executil.py", line 105,
raise RuntimeError, command + " can not be run"
RuntimeError: /sbin/lvm can not be run
lvm itself is functional. I was able to run commands without errors.
Adding a symlink from /usr/sbin/lvm to /sbin/lvm allows the program to
come up and display the lvm information.
I don't know whether lvm is in the wrong location or the script is
looking in the wrong place.
The reason for this defect is because the link from /usr/sbin/lvm to /sbin/lvm
was dropped in a recent distribution of the underlying LVM2 application. This
link has been restored, however, and should work correctly with the next fedora
release. In the meanwhile, making this link above by hand addresses the issue
Changed path in application to /usr/sbin/lvm. Fixed in system-config-lvm >= 0.9.21
Seems to work now, but it's extremely noisy in the output to the initiating
console, at least with selinux enabled. It prints messages such as:
File descriptor 7 left open
File descriptor 8 left open
File descriptor 9 left open
File descriptor 10 left open
File descriptor 11 left open
File descriptor 12 left open
File descriptor 13 left open
File descriptor 14 left open
a nearly-infinite number of times. I guess this is something for a separate bug