Red Hat Enterprise Linux 7 installation failed with LVMError: lvactivate failed for swap: running lvm lvchange -a y --config devices { preferred_names=["^/dev/mapper/", "^/dev/md/", "^/dev/sd"] } redhat/swap failed
Issue
- Installation of Red Hat Enterprise Linux 7.2 fails with an error below. The installation is with
LVMonmdraid devices as per configured in kickstart.
===============================================================================
An unknown error has occurred
===============================================================================
anaconda 21.48.22.56-1 exception report
Traceback (most recent call first):
File "/usr/lib/python2.7/site-packages/blivet/devicelibs/lvm.py", line 538, in lvactivate
raise LVMError("lvactivate failed for %s: %s" % (lv_name, msg))
File "/usr/lib/python2.7/site-packages/blivet/devices/lvm.py", line 690, in _setup
lvm.lvactivate(self.vg.name, self._name)
File "/usr/lib/python2.7/site-packages/blivet/devices/storage.py", line 413, in setup
self._setup(orig=orig)
File "/usr/lib/python2.7/site-packages/blivet/deviceaction.py", line 650, in execute
self.device.setup(orig=True)
File "/usr/lib/python2.7/site-packages/blivet/devicetree.py", line 377, in processActions
action.execute(callbacks)
File "/usr/lib/python2.7/site-packages/blivet/__init__.py", line 374, in doIt
self.devicetree.processActions(callbacks)
File "/usr/lib/python2.7/site-packages/blivet/__init__.py", line 224, in turnOnFilesystems
storage.doIt(callbacks)
File "/usr/lib64/python2.7/site-packages/pyanaconda/install.py", line 186, in doInstall
turnOnFilesystems(storage, mountOnly=flags.flags.dirInstall, callbacks=callbacks_reg)
File "/usr/lib64/python2.7/threading.py", line 764, in run
self.__target(*self.__args, **self.__kwargs)
File "/usr/lib64/python2.7/site-packages/pyanaconda/threads.py", line 227, in run
threading.Thread.run(self, *args, **kwargs)
LVMError: lvactivate failed for swap: running lvm lvchange -a y --config devices { preferred_names=["^/dev/mapper/", "^/dev/md/", "^/dev/sd"] } redhat/swap failed
===============================================================================
An unknown error has occurred
===============================================================================
anaconda 21.48.22.56-1 exception report
Traceback (most recent call first):
File "/usr/lib/python2.7/site-packages/blivet/devicelibs/lvm.py", line 243, in pvcreate
raise LVMError("pvcreate failed for %s: %s" % (device, msg))
File "/usr/lib/python2.7/site-packages/blivet/formats/lvmpv.py", line 132, in create
lvm.pvcreate(self.device, data_alignment=self.dataAlignment)
File "/usr/lib/python2.7/site-packages/blivet/deviceaction.py", line 568, in execute
options=self.device.formatArgs)
File "/usr/lib/python2.7/site-packages/blivet/devicetree.py", line 377, in processActions
action.execute(callbacks)
File "/usr/lib/python2.7/site-packages/blivet/__init__.py", line 374, in doIt
self.devicetree.processActions(callbacks)
File "/usr/lib/python2.7/site-packages/blivet/__init__.py", line 224, in turnOnFilesystems
storage.doIt(callbacks)
File "/usr/lib64/python2.7/site-packages/pyanaconda/install.py", line 186, in doInstall
turnOnFilesystems(storage, mountOnly=flags.flags.dirInstall, callbacks=callbacks_reg)
File "/usr/lib64/python2.7/threading.py", line 764, in run
self.__target(*self.__args, **self.__kwargs)
File "/usr/lib64/python2.7/site-packages/pyanaconda/threads.py", line 227, in run
threading.Thread.run(self, *args, **kwargs)
LVMError: pvcreate failed for /dev/md/2: running lvm pvcreate --config devices { preferred_names=["^/dev/mapper/", "^/dev/md/", "^/dev/sd"] } /dev/md/2 failed
Environment
- Red Hat Enterprise Linux 7.2
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.
