How to forcefully move ahead in case installation of Red Hat Enterprise Linux fails with error "vgdeactivate failed for <volgroup_name>" ?
Issue
-
While kickstart installation, the following traceback appears causing installation failure.
Truncated backtrace: Traceback (most recent call last): File "/usr/lib64/python2.7/site-packages/pyanaconda/threads.py", line 227, in run threading.Thread.run(self, *args, **kwargs) File "/usr/lib64/python2.7/threading.py", line 765, in run self.__target(*self.__args, **self.__kwargs) File "/usr/lib64/python2.7/site-packages/pyanaconda/install.py", line 204, in doInstall turnOnFilesystems(storage, mountOnly=flags.flags.dirInstall, callbacks=callbacks_reg) File "/usr/lib/python2.7/site-packages/blivet/__init__.py", line 230, in turnOnFilesystems storage.doIt(callbacks) File "/usr/lib/python2.7/site-packages/blivet/__init__.py", line 380, in doIt self.devicetree.processActions(callbacks) File "/usr/lib/python2.7/site-packages/blivet/devicetree.py", line 373, in processActions action.execute(callbacks) File "/usr/lib/python2.7/site-packages/blivet/deviceaction.py", line 344, in execute self.device.destroy() File "/usr/lib/python2.7/site-packages/blivet/devices/storage.py", line 524, in destroy self._preDestroy() File "/usr/lib/python2.7/site-packages/blivet/devices/lvm.py", line 220, in _preDestroy StorageDevice._preDestroy(self) File "/usr/lib/python2.7/site-packages/blivet/devices/storage.py", line 515, in _preDestroy self.teardown() File "/usr/lib/python2.7/site-packages/blivet/devices/storage.py", line 459, in teardown self._teardown(recursive=recursive) File "/usr/lib/python2.7/site-packages/blivet/devices/lvm.py", line 207, in _teardown lvm.vgdeactivate(self.name) File "/usr/lib/python2.7/site-packages/blivet/devicelibs/lvm.py", line 401, in vgdeactivate raise LVMError("vgdeactivate failed for %s: %s" % (vg_name, msg)) LVMError: vgdeactivate failed for vg_name: running /sbin/lvm vgchange -a n vg_name --config devices { preferred_names=["^/dev/mapper/", "^/dev/md/", "^/dev/sd"] } failed -
The disks are supposed to get cleared out completely and a fresh installation is required.
Environment
- Red Hat Enterprise Linux 7.4
- Kickstart installation
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
