<div dir="ltr">Hello, <div><br></div><div>this command: bootdev=`device2grub $BOOT_DEVICE` which generates an error is not being completed thus this command:</div><div><br></div><div><div>$ROOTCMD grub --device-map=/dev/null --no-floppy --batch <<-EOF</div><div> device $bootdev $BOOT_DEVICE</div></div><div><br></div><div>cannot be completed too, as $bootdev is not set.</div><div><br></div><div>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:</div><div><div><br></div><div>root@centos:~# more /boot/grub/device.map</div><div>(hd0) /dev/disk/by-id/ata-WDC_WD5003ABYX-18WERA0_WD-WMAYP7182040</div><div>(hd1) /dev/disk/by-id/ata-WDC_WD5003ABYX-18WERA0_WD-WMAYP7178789</div></div><div><br></div><div>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:<br></div><div><br></div><div><div><font face="monospace">mage: /boot/initrd.img-3.2.0-4-amd64: 19M</font></div><div><font face="monospace">========================================================================</font></div></div><div><div><font face="monospace">Version: dracut-040-207-g7252cde</font></div><div><font face="monospace"><br></font></div><div><font face="monospace">Arguments: -q --force</font></div><div><font face="monospace"><br></font></div><div><font face="monospace">dracut modules:</font></div><div><font face="monospace">bash</font></div><div><font face="monospace">dash</font></div><div><font face="monospace">console-setup</font></div><div><font face="monospace">network</font></div><div><font face="monospace">aufs</font></div><div><font face="monospace">btrfs</font></div><div><font face="monospace">dm</font></div><div><font face="monospace">kernel-modules</font></div><div><font face="monospace">lvm</font></div><div><font face="monospace">mdraid</font></div><div><font face="monospace">nfs</font></div><div><font face="monospace">resume</font></div><div><font face="monospace">rootfs-block</font></div><div><font face="monospace">terminfo</font></div><div><font face="monospace">udev-rules</font></div><div><font face="monospace">usrmount</font></div><div><font face="monospace">base</font></div><div><font face="monospace">fs-lib</font></div><div><font face="monospace">shutdown</font></div></div><div><br></div><div><br></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature"><div dir="ltr"><div><div><div>best regards, <br><br></div>Antanas Masevicius<br></div>TENDO LT<br></div><a href="https://tendo.lt" target="_blank">https://tendo.lt</a><br><br></div></div></div>
<br><div class="gmail_quote">On Mon, Nov 24, 2014 at 5:54 PM, Sven Schumacher <span dir="ltr"><<a href="mailto:schumacher@tfd.uni-hannover.de" target="_blank">schumacher@tfd.uni-hannover.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">
<div>Hello,<br>
<br>
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?<br>
<br>
Greetings<br>
<br>
Sven<div><div class="h5"><br>
<br>
<br>
On 24.11.2014 16:50, Antanas Masevicius wrote:<br>
</div></div></div><div><div class="h5">
<blockquote type="cite">
<div dir="ltr">Hello,
<div><br>
</div>
<div>been trying to install with following layout</div>
<div><br>
</div>
<div>
<div><font face="monospace">disk_config sda bootable:1
fstabkey:uuid</font></div>
<div><font face="monospace">primary - 200 - -</font></div>
<div><font face="monospace">primary - 0- - -</font></div>
<div><font face="monospace"><br>
</font></div>
<div><font face="monospace">disk_config sdb bootable:1
fstabkey:uuid</font></div>
<div><font face="monospace">primary - 200 - -</font></div>
<div><font face="monospace">primary - 0- - -</font></div>
<div><font face="monospace"><br>
</font></div>
<div><font face="monospace">disk_config raid fstabkey:uuid</font></div>
<div><font face="monospace">raid1 /boot sda1,sdb1 ext4
rw</font></div>
<div><font face="monospace">raid0 - sda2,sdb2 ext4
default</font></div>
<div><font face="monospace"><br>
</font></div>
<div><font face="monospace">disk_config lvm fstabkey:uuid</font></div>
<div><font face="monospace">vg vg1 md1</font></div>
<div><font face="monospace">vg1-root_ / 12G ext4
rw,noatime,errors=remount-ro</font></div>
<div><font face="monospace">vg1-swap swap 4G swap
rw</font></div>
<div><font face="monospace">vg1-tmp /tmp 1G ext4
rw,nosuid</font></div>
<div><font face="monospace">vg1-var /var 30G- ext4
rw</font></div>
</div>
<div><br>
</div>
<div><br>
</div>
<div>Installation finishes, but looks like boot from md0 is not
proceeding. shell.log outputs: </div>
<div><br>
</div>
<div>
<div><font face="monospace">===== shell:
CENTOS/40-install-grub =====</font></div>
<div><font face="monospace">Can't match device: /dev/md0</font></div>
<div><font face="monospace">Can't match device:</font></div>
<div><font face="monospace">UUID=0359de7e-82e0-48d7-b8ad-e6cdcfc3721b
/boot ext4 rw 0 2 # device at
install: /dev/md0</font></div>
<div><font face="monospace"><br>
</font></div>
<div><font face="monospace"><br>
</font></div>
<div><font face="monospace"> GNU GRUB version 0.97 (640K
lower / 3072K upper memory)</font></div>
<div><font face="monospace"><br>
</font></div>
<div><font face="monospace"> [ Minimal BASH-like line editing
is supported. For the first word, TAB</font></div>
<div><font face="monospace"> lists possible command
completions. Anywhere else TAB lists the possible</font></div>
<div><font face="monospace"> completions of a
device/filename.]</font></div>
<div><font face="monospace">grub> device /dev/md0</font></div>
<div><font face="monospace"><br>
</font></div>
<div><font face="monospace">Error 1: Unrecognized device
string</font></div>
</div>
<div><br>
</div>
<div><br>
</div>
<div>md devices are being created:</div>
<div><br>
</div>
<div>
<div>root@centos~# ls -al /dev/md*</div>
<div>brw-rw---T 1 root disk 9, 0 Nov 24 17:10 /dev/md0</div>
<div>brw-rw---T 1 root disk 9, 1 Nov 24 17:12 /dev/md1</div>
</div>
<div><br>
</div>
<div>but for some reason 'device2grub' still complains about
them. </div>
<div><br>
</div>
<div><font face="monospace">my packages:</font></div>
<div><font face="monospace"><br>
</font></div>
<div>
<div><font face="monospace">i fai-client
4.3</font></div>
<div><font face="monospace">i fai-doc
4.3</font></div>
<div><font face="monospace">p fai-nfsroot
4.3</font></div>
<div><font face="monospace">i fai-quickstart
4.3</font></div>
<div><font face="monospace">i fai-server
4.3</font></div>
<div><font face="monospace">p fai-setup-storage
4.3</font></div>
<div><font face="monospace">p liblinux-lvm-perl
0.17-2</font></div>
</div>
<div><br>
</div>
<div><br>
</div>
<div>
<div>
<div>
<div dir="ltr">
<div>
<div>
<div>best regards, <br>
<br>
</div>
Antanas Masevicius<br>
</div>
TENDO LT<br>
</div>
<a href="https://tendo.lt" target="_blank">https://tendo.lt</a><br>
<br>
</div>
</div>
</div>
</div>
</div>
</blockquote>
<br>
<br>
</div></div><span class="HOEnZb"><font color="#888888"><pre cols="72">--
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</pre>
</font></span></div>
</blockquote></div><br></div></div>