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 842867 - dracut only finds the /boot partition, the rootfs is wiped and cannot find swap partition
Summary: dracut only finds the /boot partition, the rootfs is wiped and cannot find sw...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: anaconda
Version: 7.0
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: rc
: ---
Assignee: Anaconda Maintenance Team
QA Contact: Release Test Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-07-24 18:54 UTC by Xiaowei Li
Modified: 2015-01-27 00:10 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-11-13 10:47:16 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
anaconda.log (18.11 KB, text/plain)
2012-07-24 18:55 UTC, Xiaowei Li
no flags Details
storage.log (169.46 KB, text/plain)
2012-07-24 18:56 UTC, Xiaowei Li
no flags Details
console.log (400.10 KB, text/plain)
2012-07-24 18:56 UTC, Xiaowei Li
no flags Details
ks (2.50 KB, text/plain)
2012-07-24 18:59 UTC, Xiaowei Li
no flags Details
using-partition-program.log (71.52 KB, text/plain)
2012-07-25 05:21 UTC, Xiaowei Li
no flags Details
using-partition-console.log (358.64 KB, text/plain)
2012-07-25 05:23 UTC, Xiaowei Li
no flags Details
using_partition_storage.log (228.23 KB, text/plain)
2012-07-25 05:24 UTC, Xiaowei Li
no flags Details

Description Xiaowei Li 2012-07-24 18:54:48 UTC
Description of problem:


Version-Release number of selected component (if applicable):


How reproducible:
can see this issue via the attached ks file.
cannot see it via manual installation.

Steps to Reproduce:
1. install OS to the FCoE lun.
2. after os installation then reboot 
3.
  
Actual results:
[   43.776311] dracut Warning: Unable to process initqueue
[   43.812273] dracut Warning: /dev/bootvg/lv_root does not exist
[   43.844746] dracut Warning: /dev/bootvg/lv_swap does not exist
[   43.877495] dracut Warning: /dev/mapper/bootvg-lv_root does not exist
[  321.626308] kworker/u:3 used greatest stack depth: 3352 bytes left
>>>>
dracut:/# lvm pvs -a
  PV                   VG   Fmt Attr PSize PFree
  /dev/mapper/mpatha            ---     0     0 
  /dev/mapper/mpathap1          ---     0     0 
  /dev/mapper/mpathap2          ---     0     0 
  /dev/sdb                      ---     0     0 
  /dev/sdd                      ---     0     0 
  /dev/sdf                      ---     0     0 
  /dev/sdh                      ---     0     0 
dracut:/# partx /dev/mapper/mpatha 
# 1:      2048-  1026047 (  1024000 sectors,    524 MB)
# 2:   1026048-104726527 (103700480 sectors,  53094 MB)

Expected results:

Additional info:

Comment 1 Xiaowei Li 2012-07-24 18:55:53 UTC
Created attachment 600149 [details]
anaconda.log

Comment 2 Xiaowei Li 2012-07-24 18:56:19 UTC
Created attachment 600150 [details]
storage.log

Comment 3 Xiaowei Li 2012-07-24 18:56:54 UTC
Created attachment 600151 [details]
console.log

Comment 4 Xiaowei Li 2012-07-24 18:59:32 UTC
Created attachment 600152 [details]
ks

Comment 5 Xiaowei Li 2012-07-25 05:20:48 UTC
this issue can be 100% reproduced with RHEL-7.0-20120711.2 Server x86_64 on storageqe-17.rhts.eng.bos.redhat.com with the following ks.

>>>
zerombr
clearpart --drives /dev/disk/by-id/scsi-20090ef127000004a --all --initlabel


part /boot --fstype ext3 --size 200 --recommended --ondisk=/dev/disk/by-id/scsi-20090ef127000004a
part / --fstype ext3 --size 1024 --grow --asprimary --ondisk=/dev/disk/by-id/scsi-20090ef127000004a
part swap --recommended --asprimary --ondisk=/dev/disk/by-id/scsi-20090ef127000004a
>>>

some debug information as below:
dracut:/# blkid >> mpathbp1 is the /boot 
/dev/mapper/mpathbp1: UUID="718d19a3-5976-4bd9-9dd9-ebb84e183c47" SEC_TYPE="ext2" TYPE="ext3" 

dracut:/# ls /dev/mapper/mpathb*  >>> don't see the mpathbp3 ( it should be the swap partition ), mpathbp2 should be the rootfs partition
/dev/mapper/mpathb  /dev/mapper/mpathbp1  /dev/mapper/mpathbp2

>>> but cannot fsck the mpathbp2
dracut:/# fsck /dev/mapper/mpathbp2
fsck from util-linux 2.21.1
fsck: WARNING: couldn't open /etc/fstab: No such file or directory
e2fsck 1.42.3 (14-May-2012)
ext2fs_open2: Bad magic number in super-block
fsck.ext2: Superblock invalid, trying backup blocks...
fsck.ext2: Bad magic number in super-block while trying to open /dev/mapper/mpathbp2

The superblock could not be read or does not describe a correct ext2
filesystem.  If the device is valid and it really contains an ext2
filesystem (and not swap or ufs or something else), then the superblock
is corrupt, and you might try running e2fsck with an alternate superblock:
    e2fsck -b 8193 <device>


dracut:/# partx /dev/mapper/mpathb 
# 1:      2048-  1026047 (  1024000 sectors,    524 MB)
# 2:   1026048-104726527 (103700480 sectors,  53094 MB) >>> the mpathb is 50G(51200MB), don't know why the mpathbp2 is 53094MB

# multipath -ll
mpathb (20090ef127000004a) dm-0 IQSTOR,iQ2880
size=50G features='0' hwhandler='0' wp=rw
|-+- policy='round-robin 0' prio=1 status=active
| `- 5:0:0:0 sda 8:0   active ready running
|-+- policy='round-robin 0' prio=1 status=enabled
| `- 5:0:1:0 sdc 8:32  active ready running
|-+- policy='round-robin 0' prio=1 status=enabled
| `- 6:0:1:0 sdg 8:96  active ready running
`-+- policy='round-robin 0' prio=1 status=enabled
  `- 6:0:0:0 sde 8:64  active ready running

i am attaching the logs.
using-partition-console.log  using-partition-program.log  using_partition_storage.log

Comment 6 Xiaowei Li 2012-07-25 05:21:52 UTC
Created attachment 600223 [details]
using-partition-program.log

Comment 7 Xiaowei Li 2012-07-25 05:23:37 UTC
Created attachment 600224 [details]
using-partition-console.log

Comment 8 Xiaowei Li 2012-07-25 05:24:57 UTC
Created attachment 600225 [details]
using_partition_storage.log

Comment 10 Xiaowei Li 2012-07-26 11:44:18 UTC
(In reply to comment #9)
> (In reply to comment #0)
> > How reproducible:
> > can see this issue via the attached ks file.
> > cannot see it via manual installation.
> 
> Doesn't this mean that anaconda screwed up?

I guess the anaconda did something after OS installation. Do you mind to assign this bug the anaconda to have a look ?

Comment 11 Harald Hoyer 2012-07-26 11:56:46 UTC
assigning to anaconda for more comments

Comment 12 Xiaowei Li 2012-07-31 09:55:32 UTC
Hi Anaconda team,

any comments

Comment 14 Xiaowei Li 2012-11-13 10:47:16 UTC
I didn't hit this issue with the latest tree. will re-open it if hit it again


Note You need to log in before you can comment on or make changes to this bug.