CENTOS boot over raid partition

Antanas Masevicius antanas.masevicius at gmail.com
Mon Nov 24 17:16:07 CET 2014


Hello,

this command: bootdev=`device2grub $BOOT_DEVICE` which generates an error
is not being completed thus this command:

$ROOTCMD grub --device-map=/dev/null --no-floppy --batch <<-EOF
        device $bootdev $BOOT_DEVICE

cannot be completed too, as $bootdev is not set.

This probably means that device mapping cannot be found, which is required
by grub. Not sure how this map is generated. My device.map contains only
these lines:

root at centos:~# more /boot/grub/device.map
(hd0)   /dev/disk/by-id/ata-WDC_WD5003ABYX-18WERA0_WD-WMAYP7182040
(hd1)   /dev/disk/by-id/ata-WDC_WD5003ABYX-18WERA0_WD-WMAYP7178789

device2grub is executed not via chroot /target, but from fai install with
/target mounted, thus mapping is generated not for /target but for fai
install system imho. Here are fai system modules:

mage: /boot/initrd.img-3.2.0-4-amd64: 19M
========================================================================
Version: dracut-040-207-g7252cde

Arguments: -q --force

dracut modules:
bash
dash
console-setup
network
aufs
btrfs
dm
kernel-modules
lvm
mdraid
nfs
resume
rootfs-block
terminfo
udev-rules
usrmount
base
fs-lib
shutdown



best regards,

Antanas Masevicius
TENDO LT
https://tendo.lt


On Mon, Nov 24, 2014 at 5:54 PM, Sven Schumacher <
schumacher at tfd.uni-hannover.de> wrote:

>  Hello,
>
> does your initrd, which is installed on the clients, contain lvm and
> md-support as modules? Or is the raid-support directly compiled into the
> kernel?
>
> Greetings
>
> Sven
>
>
>
> On 24.11.2014 16:50, Antanas Masevicius wrote:
>
> Hello,
>
>  been trying to install with following layout
>
>  disk_config sda bootable:1 fstabkey:uuid
> primary -        200      -    -
> primary -        0-     -    -
>
>  disk_config sdb bootable:1 fstabkey:uuid
> primary -        200      -    -
> primary -        0-     -    -
>
>  disk_config raid fstabkey:uuid
> raid1 /boot    sda1,sdb1     ext4 rw
> raid0 -        sda2,sdb2     ext4 default
>
>  disk_config lvm fstabkey:uuid
> vg vg1 md1
> vg1-root_  /      12G    ext4     rw,noatime,errors=remount-ro
> vg1-swap swap      4G   swap     rw
> vg1-tmp  /tmp      1G    ext4     rw,nosuid
> vg1-var  /var      30G-  ext4     rw
>
>
>  Installation finishes, but looks like boot from md0 is not proceeding.
> shell.log outputs:
>
>  =====   shell: CENTOS/40-install-grub   =====
> Can't match device: /dev/md0
> Can't match device:
> UUID=0359de7e-82e0-48d7-b8ad-e6cdcfc3721b       /boot   ext4    rw      0
>       2       # device at install: /dev/md0
>
>
>      GNU GRUB  version 0.97  (640K lower / 3072K upper memory)
>
>   [ Minimal BASH-like line editing is supported.  For the first word, TAB
>    lists possible command completions.  Anywhere else TAB lists the
> possible
>    completions of a device/filename.]
> grub> device  /dev/md0
>
>  Error 1: Unrecognized device string
>
>
>  md devices are being created:
>
>  root at centos~# ls -al /dev/md*
> brw-rw---T 1 root disk 9, 0 Nov 24 17:10 /dev/md0
> brw-rw---T 1 root disk 9, 1 Nov 24 17:12 /dev/md1
>
>  but for some reason 'device2grub' still complains about them.
>
>  my packages:
>
>  i fai-client                                             4.3
> i fai-doc                                                4.3
> p fai-nfsroot                                            4.3
> i fai-quickstart                                         4.3
> i fai-server                                             4.3
> p fai-setup-storage                                      4.3
> p liblinux-lvm-perl                                      0.17-2
>
>
>     best regards,
>
>  Antanas Masevicius
>  TENDO LT
>  https://tendo.lt
>
>
>
> --
> Sven Schumacher - Systemadministrator Tel: (0511)762-2753
> Leibniz Universitaet Hannover
> Institut für Turbomaschinen und Fluid-Dynamik       - TFD
> Appelstraße 9 - 30167 Hannover
> Institut für Kraftwerkstechnik und Wärmeübertragung - IKW
> Callinstraße 36 - 30167 Hannover
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.uni-koeln.de/pipermail/linux-fai/attachments/20141124/f09861d7/attachment-0001.html>


More information about the linux-fai mailing list