Bug 1289038

Summary: gi.overrides.BlockDev.LVMError: Process reported exit code 1280: Volume group "vg3" not found Cannot process volume group vg3
Product: [Fedora] Fedora Reporter: Anders Blomdell <anders.blomdell>
Component: libblockdevAssignee: Vratislav Podzimek <vpodzime>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 23CC: anaconda-maint-list, g.kaviyarasu, jonathan, sbueno, vanmeeuwen+fedora, vpodzime
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:e0e91013b77a620d3e1d567722e8b71c24fa0ecfdb3e23c6a2ce4d318bf2c7a6;
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-12-08 16:57:44 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
File: anaconda-tb
none
File: anaconda.log
none
File: dnf.log
none
File: environ
none
File: ks.cfg
none
File: lsblk_output
none
File: nmcli_dev_list
none
File: os_info
none
File: storage.log
none
File: syslog
none
File: ifcfg.log
none
File: packaging.log
none
File: program.log
none
The file included from ks.cfg
none
Log from '/usr/sbin/lvmetad -f -l all' none

Description Anders Blomdell 2015-12-07 10:05:07 UTC
Description of problem:


Version-Release number of selected component:
anaconda-23.19.10-1

The following was filed automatically by anaconda:
anaconda 23.19.10-1 exception report
Traceback (most recent call first):
  File "/usr/lib64/python3.4/site-packages/gi/overrides/BlockDev.py", line 416, in wrapped
    raise transform[1](msg)
  File "/usr/lib/python3.4/site-packages/blivet/devices/lvm.py", line 700, in _setup
    blockdev.lvm.lvactivate(self.vg.name, self._name)
  File "/usr/lib/python3.4/site-packages/blivet/devices/storage.py", line 386, in setup
    self._setup(orig=orig)
  File "/usr/lib/python3.4/site-packages/blivet/osinstall.py", line 619, in mountFilesystems
    device.setup()
  File "/usr/lib/python3.4/site-packages/blivet/blivet.py", line 1405, in mountFilesystems
    readOnly=readOnly, skipRoot=skipRoot)
  File "/usr/lib/python3.4/site-packages/blivet/osinstall.py", line 1105, in turnOnFilesystems
    storage.mountFilesystems()
  File "/usr/lib64/python3.4/site-packages/pyanaconda/install.py", line 195, in doInstall
    turnOnFilesystems(storage, mountOnly=flags.flags.dirInstall, callbacks=callbacks_reg)
  File "/usr/lib64/python3.4/threading.py", line 868, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/lib64/python3.4/site-packages/pyanaconda/threads.py", line 253, in run
    threading.Thread.run(self, *args, **kwargs)
gi.overrides.BlockDev.LVMError: Process reported exit code 1280:   Volume group "vg3" not found
  Cannot process volume group vg3


Additional info:
addons:         com_redhat_kdump
cmdline:        /usr/bin/python3  /sbin/anaconda
cmdline_file:   BOOT_IMAGE=Fedora-23-x86_64/vmlinuz initrd=Fedora-23-x86_64/initrd.img ks=http://dist.control.lth.se/private/kickstart/Fedora-23-x86_64 hostname=fay-04 keymap=se-latin1  BOOTIF=01-54-be-f7-08-3c-2d
dnf.rpm.log:    Dec 07 09:56:47 INFO --- logging initialized ---
executable:     /sbin/anaconda
hashmarkername: anaconda
kernel:         4.2.3-300.fc23.x86_64
product:        Fedora
release:        Cannot get release name.
type:           anaconda
version:        23

Comment 1 Anders Blomdell 2015-12-07 10:05:15 UTC
Created attachment 1103106 [details]
File: anaconda-tb

Comment 2 Anders Blomdell 2015-12-07 10:05:17 UTC
Created attachment 1103107 [details]
File: anaconda.log

Comment 3 Anders Blomdell 2015-12-07 10:05:19 UTC
Created attachment 1103108 [details]
File: dnf.log

Comment 4 Anders Blomdell 2015-12-07 10:05:20 UTC
Created attachment 1103109 [details]
File: environ

Comment 5 Anders Blomdell 2015-12-07 10:05:22 UTC
Created attachment 1103110 [details]
File: ks.cfg

Comment 6 Anders Blomdell 2015-12-07 10:05:23 UTC
Created attachment 1103111 [details]
File: lsblk_output

Comment 7 Anders Blomdell 2015-12-07 10:05:25 UTC
Created attachment 1103112 [details]
File: nmcli_dev_list

Comment 8 Anders Blomdell 2015-12-07 10:05:26 UTC
Created attachment 1103113 [details]
File: os_info

Comment 9 Anders Blomdell 2015-12-07 10:05:30 UTC
Created attachment 1103114 [details]
File: storage.log

Comment 10 Anders Blomdell 2015-12-07 10:05:33 UTC
Created attachment 1103115 [details]
File: syslog

Comment 11 Anders Blomdell 2015-12-07 10:05:34 UTC
Created attachment 1103116 [details]
File: ifcfg.log

Comment 12 Anders Blomdell 2015-12-07 10:05:36 UTC
Created attachment 1103117 [details]
File: packaging.log

Comment 13 Anders Blomdell 2015-12-07 10:05:38 UTC
Created attachment 1103118 [details]
File: program.log

Comment 14 Anders Blomdell 2015-12-07 17:03:53 UTC
*** Bug 1289227 has been marked as a duplicate of this bug. ***

Comment 15 Anders Blomdell 2015-12-07 17:06:07 UTC
Created attachment 1103308 [details]
The file included from ks.cfg

Comment 16 Anders Blomdell 2015-12-07 17:16:15 UTC
Seems to be related lvmetad, after the error has occured, vg3 is no
longer visible, but clearing the cache and rescanning makes it visible again.
The problem seems to depend on disks being > 2TB.

# pvscan 
  PV /dev/md126   VG vg0   lvm2 [499.87 GiB / 191.87 GiB free]
  PV /dev/sda4    VG vg1   lvm2 [1.32 TiB / 0    free]
  PV /dev/sdb4    VG vg2   lvm2 [1.32 TiB / 0    free]
  Total: 3 [3.13 TiB] / in use: 3 [3.13 TiB] / in no VG: 0 [0   ]
# pvscan --cache
# pvscan 
  PV /dev/md126   VG vg0   lvm2 [499.87 GiB / 191.87 GiB free]
  PV /dev/sda4    VG vg1   lvm2 [1.32 TiB / 0    free]
  PV /dev/sdb4    VG vg2   lvm2 [1.32 TiB / 0    free]
  PV /dev/md127   VG vg3   lvm2 [5.46 TiB / 4.68 TiB free]
  Total: 4 [8.59 TiB] / in use: 4 [8.59 TiB] / in no VG: 0 [0   ]
#

Comment 17 Anders Blomdell 2015-12-07 18:53:36 UTC
Created attachment 1103336 [details]
Log from '/usr/sbin/lvmetad -f -l all'

Comment 18 Anders Blomdell 2015-12-08 09:02:38 UTC
The following pre script solves thee problem nicely:

%pre
/bin/sed -i -e 's/use_lvmetad\s*=\s*1/use_lvmetad = 0/' /etc/lvm/lvm.conf
/bin/systemctl stop lvm2-lvmetad.socket
/bin/systemctl stop lvm2-lvmetad.service
%end

Comment 19 Anders Blomdell 2015-12-08 11:37:10 UTC
*** Bug 1285030 has been marked as a duplicate of this bug. ***

Comment 20 Anders Blomdell 2015-12-08 16:57:44 UTC

*** This bug has been marked as a duplicate of bug 1226244 ***