Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
grub2-install fails with device node not found [solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
vesperto
n00b
n00b


Joined: 21 May 2015
Posts: 34

PostPosted: Sun Jul 12, 2015 7:23 pm    Post subject: grub2-install fails with device node not found [solved] Reply with quote

Hi,

I'm struggling to get gentoo installed using RAID1 and LVM. I've been mostly following the handbook except for this. I'm using the livecd.

The 2 disks are SATA, formatted with MBR, have an 0xFD partition each.
In it they have an ext2 for /boot and an 0x8E for LVM, where / and everything else reside.

I added this to /etc/default/grub:
Code:
GRUB_CMDLINE_LINUX="domdadm dolvm"
GRUB_CMDLINE_LINUX_DEFAULT="domdadm dolvm"

This is my /etc/fstab:
Code:
UUID=8a1fb425-e184-4408-a9d3-28022f162f77       /boot           ext2    noauto,noatime  1 2
UUID=ccf0fd59-587b-4000-bf23-a9bc715aeeb2       /               xfs     noatime         0 1
UUID=4a8d7f17-4e6e-4438-8083-c49119492dd6       /usr            ext4    defaults        0 2
UUID=8eebe331-6eef-4ab3-8156-f228b39d26c2       /var            ext4    defaults        0 2
UUID=e7360ee1-a95d-49b3-9941-271ef8e12345       none            swap    sw              0 0
/dev/cdrom                                      /mnt/cdrom      auto    noauto,ro       0 0

When i issue
Code:
grub2-install /dev/disk/by-id/ata-maker_model_serial
(which currently points to /dev/sda) it gives me this:
Code:
Installing for i386-pc platform.
device node not found
device node not found
device node not found
device node not found
device node not found
device node not found
grub2-install: error: disk `md0,1' not found.


/dev seems to be ok, it has md0, md0p1 and md0p2, as well as all the dm-* from LVM. I also tried
Code:
grub2-install --modules=mdraid09,lvm /dev/disk/by-id/ata-maker_model_serial
with the same result.

What am i missing?

EDIT

So there is a verbose flag:
Code:
grub2-install --verbose --recheck --modules=mdraid09,lvm /dev/disk/by-id/wwn-hexvalue
Produces this:
Code:

grub2-install: info: executing modprobe efivars 2>/dev/null.
grub2-install: info: Looking for /sys/firmware/efi ...
grub2-install: info: ... not found. Looking for /proc/device-tree ...
grub2-install: info: ... not found.
Installing for i386-pc platform.
grub2-install: info: cannot open `/boot/grub/device.map': No such file or directory.
grub2-install: info: copying `/usr/lib/grub/i386-pc/ahci.mod' -> `/boot/grub/i386-pc/ahci.mod'.
...
grub2-install: info: cannot open `/usr/lib/grub/i386-pc/efiemu32.o': No such file or directory.
grub2-install: info: copying `/usr/lib/grub/i386-pc/efiemu64.o' -> `/boot/grub/i386-pc/efiemu64.o'.
grub2-install: info: cannot open `/usr/lib/grub/i386-pc/efiemu64.o': No such file or directory.
...
grub2-install: info: copying `/usr/share/locale/tg/LC_MESSAGES/grub.mo' -> `/boot/grub/locale/tg.mo'.
grub2-install: info: cannot open `/usr/share/locale/tg/LC_MESSAGES/grub.mo': No such file or directory.
grub2-install: info: copying `/usr/share/locale/et/LC_MESSAGES/grub.mo' -> `/boot/grub/locale/et.mo'.
grub2-install: info: cannot open `/usr/share/locale/et/LC_MESSAGES/grub.mo': No such file or directory.
...
grub2-install: info: /dev/md0p1 is not present.
grub2-install: info: changing current directory to /dev.
grub2-install: info: changing current directory to VolGroup.
grub2-install: info: changing current directory to /dev.
grub2-install: info: changing current directory to VolGroup.
grub2-install: info: /dev/sda1 is not present.
grub2-install: info: Looking for /dev/sda1.
grub2-install: info: /dev/sda is a parent of /dev/sda1.
device node not found
grub2-install: info: /dev/sda1 starts from 2048.
grub2-install: info: opening the device hostdisk//dev/sda.
grub2-install: info: drive = 0.
grub2-install: info: the size of hostdisk//dev/sda is 1953525168.
grub2-install: info: drive = 0.
grub2-install: info: the size of hostdisk//dev/sda is 1953525168.
grub2-install: info: Scanning for DISKFILTER devices on disk hostdisk//dev/sda.
grub2-install: info: Scanning for mdraid1x devices on disk hostdisk//dev/sda.
grub2-install: info: Scanning for mdraid09_be devices on disk hostdisk//dev/sda.
grub2-install: info: Scanning for mdraid09 devices on disk hostdisk//dev/sda.
[b]grub2-install: info: Found array md/md0.[/b]
grub2-install: info: Inserting hostdisk//dev/sda (+0,1953525168) into md/md0 (mdraid09)
.
grub2-install: info: drive = 0.
grub2-install: info: the size of hostdisk//dev/sda is 1953525168.
grub2-install: info: Scanning for DISKFILTER devices on disk hostdisk//dev/sda.
grub2-install: info: Scanning for mdraid1x devices on disk hostdisk//dev/sda.
device node not found
grub2-install: info: Scanning for mdraid09_be devices on disk hostdisk//dev/sda.
grub2-install: info: Scanning for mdraid09 devices on disk hostdisk//dev/sda.
grub2-install: info: Inserting hostdisk//dev/sda (+2048,1953523120) into md/md0 (mdraid09)
...
grub2-install: info: Inserting hostdisk//dev/sdc (+0,1953525168) into md/md0 (mdraid09)
...
grub2-install: info: Scanning for lvm devices on disk md/md0.
grub2-install: info: no LVM signature found.
...
grub2-install: info: Scanning for lvm devices on disk md/md0.
grub2-install: info: Found array VolGroup.
grub2-install: info: Inserting md/md0 (+526336,1952996608) into VolGroup (lvm)
...
grub2-install: info: Scanning for lvm devices on disk lvm/VolGroup-varLV.
[b]grub2-install: info: no LVM signature found[/b]
...
grub2-install: info: Scanning for lvm devices on disk lvm/VolGroup-rootLV.
grub2-install: info: no LVM signature found.
...
grub2-install: error: disk `md0,1' not found.


I don't see GRUB finding md0p1 (/boot), but it does see the LVM partitions which are inside md0p2, although it seems as though it doesn't recognize them.


Last edited by vesperto on Sun Aug 23, 2015 9:45 pm; edited 1 time in total
Back to top
View user's profile Send private message
Roman_Gruber
Advocate
Advocate


Joined: 03 Oct 2006
Posts: 3806
Location: Austro Bavaria

PostPosted: Mon Jul 13, 2015 11:06 am    Post subject: Reply with quote

is /boot on a separate partition or inside that lvm volume?

is /boot mounted? before issung grub install?
Back to top
View user's profile Send private message
vesperto
n00b
n00b


Joined: 21 May 2015
Posts: 34

PostPosted: Mon Jul 13, 2015 9:59 pm    Post subject: Reply with quote

tw04l124 wrote:
is /boot on a separate partition or inside that lvm volume?

is /boot mounted? before issung grub install?


Both disks have a full-disk RAID automount partition (0xFD), the resulting raid device has two partitions:
* a regular linux partition with /boot
* an LVM partition with / and everything else inside.

Here's the output of mount:
Code:
(chroot) livecd / # mount
/dev/dm-0 on / type xfs (rw,relatime,attr2,inode64,sunit=64,swidth=128,noquota)
/dev/dm-1 on /usr type ext4 (rw,relatime,stripe=32768,data=ordered)
/dev/dm-2 on /var type ext4 (rw,relatime,stripe=32768,data=ordered)
/dev/md0p1 on /boot type ext2 (rw,relatime,errors=continue,user_xattr,acl)
proc on /proc type proc (rw,relatime)
udev on /dev type devtmpfs (rw,nosuid,relatime,size=10240k,nr_inodes=917167,mode=755)
devpts on /dev/pts type devpts (rw,relatime,gid=5,mode=620)
shm on /dev/shm type tmpfs (rw,nosuid,nodev,noexec,relatime)
Back to top
View user's profile Send private message
Roman_Gruber
Advocate
Advocate


Joined: 03 Oct 2006
Posts: 3806
Location: Austro Bavaria

PostPosted: Tue Jul 14, 2015 6:03 am    Post subject: Reply with quote

i doubt you can boot from a "fake" raid. How did you created this raid?

looks like fake raid but i could be wrong. AFAIK not bootable from fake raid.
http://linux.die.net/man/8/dmraid


Quote:
dmraid(8) - Linux man page
Name
dmraid - discover, configure and activate software (ATA)RAID



you can try with an usb stick and boot from an usb key. (grub and kernel + initramfs on usb stick)
Back to top
View user's profile Send private message
vesperto
n00b
n00b


Joined: 21 May 2015
Posts: 34

PostPosted: Tue Jul 14, 2015 9:51 pm    Post subject: Reply with quote

tw04l124 wrote:
i doubt you can boot from a "fake" raid. How did you created this raid?


It's not fake raid, i have that disabled in the BIOS. I'm using software raid, created with
Code:
mdadm --create /dev/md0 --level=1 --raid-devices=2 --metadata=0.90 /dev/disk/by-id/ata-maker_model_serial1-part1 /dev/disk/by-id/ata-maker_model_serial2-part1
   mdadm: array /dev/md0 started.


And the content of /proc/mdstat:
Code:
Personalities : [raid10] [raid1] [raid6] [raid5] [raid4] [raid0] [linear] [multipath]
md0 : active raid1 sdc1[1] sda1[0]
      976761472 blocks [2/2] [UU]
      bitmap: 0/8 pages [0KB], 65536KB chunk

unused devices: <none>


The dm-* in the mount output are the block devices created by LVM.
Back to top
View user's profile Send private message
Roman_Gruber
Advocate
Advocate


Joined: 03 Oct 2006
Posts: 3806
Location: Austro Bavaria

PostPosted: Wed Jul 15, 2015 6:00 am    Post subject: Reply with quote

seems doable

http://www.somedec.com/downloads/howto-bootable-linux-raid1.html
http://edoceo.com/howto/mdadm-raid1

=> https://forums.gentoo.org/viewtopic-t-888624-start-0.html
Back to top
View user's profile Send private message
vesperto
n00b
n00b


Joined: 21 May 2015
Posts: 34

PostPosted: Sun Aug 23, 2015 9:45 pm    Post subject: Reply with quote

I ended up fixing it, the big differences being GPT instead of MBR and creating a BIOS partition. So sad.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum