Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1145302

Summary: DeviceCreateError: ('vgcreate failed for vg_root: running lvm vgcreate -s 0m --config devices { preferred_names=["^/dev/mapper/", "^/dev/md/", "^/dev/sd"] } vg_root /dev/vda2 failed', 'vg_root')
Product: Red Hat Enterprise Linux 7 Reporter: Petr Spacek <pspacek>
Component: doc-Installation_GuideAssignee: Petr Bokoc <pbokoc>
Status: CLOSED CURRENTRELEASE QA Contact: ecs-bugs
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.1CC: rbiba
Target Milestone: rcKeywords: Documentation
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:0a63d9c37b148f29e9cc604d2c8fe765515e98f6636127c74a0a36355e0482d7
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-03-24 14:14:35 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: environ
none
File: lsblk_output
none
File: nmcli_dev_list
none
File: os_info
none
File: program.log
none
File: storage.log
none
File: syslog
none
File: ifcfg.log none

Description Petr Spacek 2014-09-22 19:09:06 UTC
Description of problem:
I was using kickstart from RHEL 7.0 for testing on RHEL 7.1 nightly compose and it crashed during disk partitioning.

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

The following was filed automatically by anaconda:
anaconda 19.31.91-1 exception report
Traceback (most recent call first):
  File "/usr/lib/python2.7/site-packages/blivet/devices.py", line 925, in create
    raise errors.DeviceCreateError(str(e), self.name)
  File "/usr/lib/python2.7/site-packages/blivet/deviceaction.py", line 293, in execute
    self.device.create()
  File "/usr/lib/python2.7/site-packages/blivet/devicetree.py", line 354, in processActions
    action.execute()
  File "/usr/lib/python2.7/site-packages/blivet/__init__.py", line 357, in doIt
    self.devicetree.processActions()
  File "/usr/lib/python2.7/site-packages/blivet/__init__.py", line 216, in turnOnFilesystems
    storage.doIt()
  File "/usr/lib64/python2.7/site-packages/pyanaconda/install.py", line 184, in doInstall
    turnOnFilesystems(storage, mountOnly=flags.flags.dirInstall)
  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 211, in run
    threading.Thread.run(self, *args, **kwargs)
DeviceCreateError: ('vgcreate failed for vg_root: running lvm vgcreate -s 0m --config  devices { preferred_names=["^/dev/mapper/", "^/dev/md/", "^/dev/sd"] }  vg_root /dev/vda2 failed', 'vg_root')

Additional info:
cmdline:        /usr/bin/python  /sbin/anaconda
cmdline_file:   inst.sshd dhcpclass=ipa-lab-vms ks=http://gordo.idm.lab.bos.redhat.com/cblr/svc/op/ks/profile/RHEL-7-nightly-x86_64-minimal-brq
executable:     /sbin/anaconda
hashmarkername: anaconda
kernel:         3.10.0-160.el7.x86_64
product:        Red Hat Enterprise Linux
release:        Red Hat Enterprise Linux ComputeNode release 7.0 (Maipo)
release_type:   pre-release
type:           anaconda
version:        7.0

Comment 1 Petr Spacek 2014-09-22 19:09:13 UTC
Created attachment 940134 [details]
File: anaconda-tb

Comment 2 Petr Spacek 2014-09-22 19:09:15 UTC
Created attachment 940135 [details]
File: anaconda.log

Comment 3 Petr Spacek 2014-09-22 19:09:18 UTC
Created attachment 940136 [details]
File: environ

Comment 5 Petr Spacek 2014-09-22 19:09:22 UTC
Created attachment 940138 [details]
File: lsblk_output

Comment 6 Petr Spacek 2014-09-22 19:09:24 UTC
Created attachment 940139 [details]
File: nmcli_dev_list

Comment 7 Petr Spacek 2014-09-22 19:09:26 UTC
Created attachment 940140 [details]
File: os_info

Comment 8 Petr Spacek 2014-09-22 19:09:29 UTC
Created attachment 940141 [details]
File: program.log

Comment 9 Petr Spacek 2014-09-22 19:09:33 UTC
Created attachment 940142 [details]
File: storage.log

Comment 10 Petr Spacek 2014-09-22 19:09:35 UTC
Created attachment 940143 [details]
File: syslog

Comment 11 Petr Spacek 2014-09-22 19:09:37 UTC
Created attachment 940144 [details]
File: ifcfg.log

Comment 13 Petr Spacek 2014-09-22 19:13:12 UTC
Compose ID: RHEL-7.1-20140918.n.0

Relevant part of kickstart:

# Clear the Master Boot Record
zerombr
# Custom partitioning
part /boot --fstype ext3 --size=250
part pv.01 --size=1024 --grow
volgroup vg_root pv.01 --pesize=32
logvol swap --vgname=vg_root --fstype swap --name=lv_swap --size=64
logvol  /  --vgname=vg_root  --size=1024 --grow  --name=lv_root


BTW Anaconda in RHEL 7.0 worked with "volgroup vg_root pv.01" (i.e. without --pesize parameter) but nowadays it dies without --pesize.

This forced me to specify some --pesize and then it died with this error.

Comment 15 David Lehman 2014-09-22 22:19:06 UTC
The bug about pesize being required should definitely be fixed if it hasn't already.

There is a bug here, but I don't think it's a very important one. pesize is specified in KiB for the volgroup command (don't ask me why). We specify the pesize to vgcreate in MiB. It is so rare that someone specify a pesize smaller than 1MiB that this has never been an issue until now (since perhaps Fedora 11).

4096 is the default pesize in case that's what you want.

Comment 16 Petr Spacek 2014-09-23 06:09:56 UTC
I confirm that it doesn't crash anymore if I specify --pesize=4096. So the only remaining problem is that --pesize is required which was not the case before.

Comment 17 Dave Cantrell 2014-12-12 20:28:52 UTC
Docs:

Please see comment #16.