Bug 224674 - after install, init script is missing raid array initialization commands
after install, init script is missing raid array initialization commands
Product: Fedora
Classification: Fedora
Component: anaconda (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Peter Jones
Depends On:
  Show dependency treegraph
Reported: 2007-01-26 18:15 EST by Olivier Kurzweg
Modified: 2007-11-30 17:11 EST (History)
11 users (show)

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

Attachments (Terms of Use)

  None (edit)
Description Olivier Kurzweg 2007-01-26 18:15:52 EST
Description of problem:
Device mapper block devices do not get created at boot time for the 2 disks
connected to my Silicon Image 3112 raid controller (configured for RAID 1).

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

How reproducible:

Steps to Reproduce:
You have to have a sil 3112 controller with 2 disks configured as a mirror array.
1. Install FC6 on one of the partitions of the mirror, and configure additional
partitions to be mounted under /mnt/ (Anaconda properly detects and lets you
configure mount points for the mirror)
2. The machine reboots after installation is complete
Actual results:
- sysinit scripts complain about /dev/mapper/sil_xxxxxxxxxxpy not being
available when trying to mount the additional partitions under /mnt
- /dev/mapper folder only contains "control"

Expected results:
- sil_xxxxxxxxxxpy partitions should mount properly
- block devices for the array and its partitions should be found under /dev/mapper

Additional info:
The system succeeds to boot only because the root partition is defined by its
label in fstab, and the partition with the appropriate label is found on device
sda (the disks are seen as /dev/sda and /dev/sdb and not as the
/dev/mapper/sil_xxxxxxxxxxx array). The raid activation process used by Anaconda
seems to work properly since it creates the proper /dev/mapper/sil_xxxxxxxpy
entries in fstab.

The array is correctly found and activated by dmraid:
[root@localhost ~]# dmraid -r
/dev/sda: sil, "sil_agahbgdeddae", mirror, ok, 488395120 sectors, data@ 0
/dev/sdb: sil, "sil_agahbgdeddae", mirror, ok, 488395120 sectors, data@ 0

... but the device mapper array did not get created:
[root@localhost ~]# dmsetup ls
No devices found

Where should I start looking at? Which script(s) or program initializes the
device mapper array at boot time (probably using a dmsetup create command?)?
Comment 1 Olivier Kurzweg 2007-02-10 16:32:37 EST
Re-assigned to Anaconda: after looking at the init script in initrd, the file
was missing the dm create commands. It seems Anaconda did not initialize initrd
for my dm array although it got detected correctly during install. 

init was looking like this:
echo "Loading dm-snapshot.ko module"
insmod /lib/dm-snapshot.ko
resume LABEL=SWAP-sil_agahbg
echo Creating root device.
mkrootdev -t ext3 -o defaults,ro dm-2

instead of:
echo "Loading dm-snapshot.ko module"
insmod /lib/dm-snapshot.ko
rmparts sdb
rmparts sda
dm create sil_ahacbgbifbca 0 488395120 mirror core 2 131072 nosync 2 8:0 0 8:16$
dm partadd sil_ahacbgbifbca
resume LABEL=SWAP-sil_agahbg
echo Creating root device.
mkrootdev -t ext3 -o defaults,ro dm-2

Going to rescue mode, chrooting and upgrading to the latest kernel with yum
circumvented the issue, since initrd got re-generated as part of the upgrade.
But well, it should definitely have worked in the first place.
Comment 2 Olivier Kurzweg 2007-11-17 13:49:35 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.