This service will be undergoing maintenance at 20:00 UTC, 2017-04-03. It is expected to last about 30 minutes
Bug 234779 - mkinitrd should not try to find "dmsetup table" name in dmraid output
mkinitrd should not try to find "dmsetup table" name in dmraid output
Status: CLOSED CURRENTRELEASE
Product: Fedora
Classification: Fedora
Component: mkinitrd (Show other bugs)
6
All Linux
medium Severity medium
: ---
: ---
Assigned To: Peter Jones
David Lawrence
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2007-04-01 18:23 EDT by Olivier Kurzweg
Modified: 2007-11-30 17:12 EST (History)
0 users

See Also:
Fixed In Version: fc8
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2007-11-17 13:51:27 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Olivier Kurzweg 2007-04-01 18:23:12 EDT
Description of problem:
From time to time, my sil RAID1 array gets out of sync and I need to rebuild the
array. When this happens, an new name gets generated for it: name sil_xxxxxxxxx
changes to sil_yyyyyyyyyy. Since the init script still has reference to the old
name, block devices get created with the old name at boot time.

'dmsetup table' returns "sil_xxxxxxxxxx". But dmraid returns "sil_yyyyyyyyyyyy".

In that situation, mkinitrd will fail to add the necessary 'dm create' lines in
the init script: it looks up for entries from the "dmestup table" that match
entries from the "dmraid -s" output and finds none.

Workaround: run a 'dmsetup rename sil_xxxxxxxxxx sil_yyyyyyyyyyyy' before
running mkinitrd.


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

Steps to Reproduce:
1. Break and rebuild raid array (new name gets generated)
2. Run mkinitrd
  
Actual results:
mkinitrd does not "see" the new array and do not add the 'dm create' lines in
the init script  

Expected results:
mkinitrd should not rely on the name returned by dmsetup table, or should not
try to find a match in the output of dmraid -s
Comment 1 Olivier Kurzweg 2007-11-17 13:51:27 EST
Got fixed somewhen between fc6 and fc8

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