Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Gentoo boot problem
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
Georgeg9
n00b
n00b


Joined: 10 May 2013
Posts: 5

PostPosted: Mon May 13, 2013 8:31 am    Post subject: Gentoo boot problem Reply with quote

I am trying to install Gentoo on software raid, level 5 but I get error during boot.

Code:
>> Detected real_root as a md device. Setting up the device node...
>> Determining the root device...
>> Mounting /dev/md0 as root...
>> Using mount -t auto -o ro
mount: mounting /dev/md0 on /newroot failed: Invalid argument
!! Could not mount specified ROOT, try again
!! Could not find the root block device in .


Code:
mdadm --create --verbose /dev/md0 --level=5 --raid-devices=3 /dev/sda3 
/dev/sdb3 /dev/sdc3
mdadm --create --verbose /dev/md1 --level=5 --raid-devices=3 /dev/sda4 
/dev/sdb4 /dev/sdc4


cat /proc/mdstat
Code:
Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4] [raid10]
md0 : active raid5 sdc3[3] sdb3[1] sda3[0]
      419427328 blocks super 1.2 level 5, 512k chunk, algorithm 2 [3/3] [UUU]
     
md1 : active raid5 sdc4[3] sdb4[1] sda4[0]
      3478680576 blocks super 1.2 level 5, 512k chunk, algorithm 2 [3/2] [UU_]
      [====>................]  recovery = 24.1% (420297660/1739340288) finish=354.1min speed=62074K/sec
     
unused devices: <none>

Sometimes is changing to md126 and md127




fdisk -l
Code:

Disk /dev/sda: 2000.4 GB, 2000398934016 bytes, 3907029168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0xb20f7cab

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1            2048      526335      262144   fd  Linux raid autodetect
/dev/sda2          526336     8914943     4194304   82  Linux swap / Solaris
/dev/sda3         8914944   428345343   209715200   fd  Linux raid autodetect
/dev/sda4       428345344  3907029167  1739341912   fd  Linux raid autodetect

Disk /dev/md1: 3562.2 GB, 3562168909824 bytes, 6957361152 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 524288 bytes / 1048576 bytes


Disk /dev/md0: 429.5 GB, 429493583872 bytes, 838854656 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 524288 bytes / 1048576 bytes


Disk /dev/sdb: 2000.4 GB, 2000398934016 bytes, 3907029168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x00001b36

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1            2048      526335      262144   fd  Linux raid autodetect
/dev/sdb2          526336     8914943     4194304   82  Linux swap / Solaris
/dev/sdb3         8914944   428345343   209715200   fd  Linux raid autodetect
/dev/sdb4       428345344  3907029167  1739341912   fd  Linux raid autodetect

Disk /dev/sdc: 2000.4 GB, 2000398934016 bytes, 3907029168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x00033971

   Device Boot      Start         End      Blocks   Id  System
/dev/sdc1            2048      526335      262144   fd  Linux raid autodetect
/dev/sdc2          526336     8914943     4194304   82  Linux swap / Solaris
/dev/sdc3         8914944   428345343   209715200   fd  Linux raid autodetect
/dev/sdc4       428345344  3907029167  1739341912   fd  Linux raid autodetect


mdadm --detail --scan
Code:
ARRAY /dev/md/1 metadata=1.2 spares=1 name=sysresccd:1 UUID=8e911bc0:4eb3f253:93774c80:6164da0c
ARRAY /dev/md/0 metadata=1.2 name=sysresccd:0 UUID=6afe4086:3510f41b:1d700c46:c8cd400f


/etc/fstab
Code:
# /etc/fstab: static file system information.
#
# noatime turns off atimes for increased performance (atimes normally aren't
# needed); notail increases performance of ReiserFS (at the expense of storage
# efficiency).  It's safe to drop the noatime options if you want and to
# switch between notail / tail freely.
#
# The root filesystem should have a pass number of either 0 or 1.
# All other filesystems should have a pass number of 0 or greater than 1.
#
# See the manpage fstab(5) for more information.
#

# <fs>         <mountpoint>   <type>      <opts>      <dump/pass>

# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
/dev/BOOT      /boot      ext2      noauto,noatime   1 2
/dev/ROOT      /      ext3      noatime      0 1
/dev/SWAP      none      swap      sw      0 0
/dev/cdrom      /mnt/cdrom   auto      noauto,ro   0 0
/dev/fd0      /mnt/floppy   auto      noauto      0 0



grub.conf
Code:
# This is a sample grub.conf for use with Genkernel, per the Gentoo handbook
# http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=1&chap=10#doc_chap2
# If you are not using Genkernel and you need help creating this file, you
# should consult the handbook. Alternatively, consult the grub.conf.sample that
# is included with the Grub documentation.

default 0
timeout 30
splashimage=(hd0,0)/boot/grub/splash.xpm.gz

title Gentoo Linux 3.7.10-r1
root (hd0,0)
kernel /boot/kernel-genkernel-x86_64-3.7.10-gentoo-r1 root=/dev/ram0 real_root=/dev/md0 md=0,/dev/sda3,/dev/sdb3,dev/sdc3
initrd /boot/initramfs-genkernel-x86_64-3.7.10-gentoo-r1

# vim:ft=conf:


/etc/kernels/kernel-config-x86_64-3.7.10-gentoo-r1
http://bpaste.net/raw/98466/
Back to top
View user's profile Send private message
gerard27
Advocate
Advocate


Joined: 04 Jan 2004
Posts: 2377
Location: Netherlands

PostPosted: Mon May 13, 2013 11:33 am    Post subject: Reply with quote

You forgot to edit /etc/fstab.
Consult the handbook.
Gerard.
_________________
To install Gentoo I use sysrescuecd.Based on Gentoo,has firefox to browse Gentoo docs and mc to browse (and edit) files.
The same disk can be used for 32 and 64 bit installs.
You can follow the Handbook verbatim.
http://www.sysresccd.org/Download
Back to top
View user's profile Send private message
Goverp
l33t
l33t


Joined: 07 Mar 2007
Posts: 669

PostPosted: Tue May 14, 2013 8:25 am    Post subject: Re: Gentoo boot problem Reply with quote

Georgeg9 wrote:

...
grub.conf
Code:
# This is a sample grub.conf for use with Genkernel, per the Gentoo handbook
# http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=1&chap=10#doc_chap2
# If you are not using Genkernel and you need help creating this file, you
# should consult the handbook. Alternatively, consult the grub.conf.sample that
# is included with the Grub documentation.

default 0
timeout 30
splashimage=(hd0,0)/boot/grub/splash.xpm.gz

title Gentoo Linux 3.7.10-r1
root (hd0,0)
kernel /boot/kernel-genkernel-x86_64-3.7.10-gentoo-r1 root=/dev/ram0 real_root=/dev/md0 md=0,/dev/sda3,/dev/sdb3,dev/sdc3
initrd /boot/initramfs-genkernel-x86_64-3.7.10-gentoo-r1

# vim:ft=conf:



You're mixing kernel RAID assembly (md=0,/dev/sda3,/dev/sdb3,dev/sdc3) and explicit mdadm assembly with V1.2 superblocks. Kernel assembly is deprecated, and AFAIK uses old V0.9 code to do it. That's why you get confusing /dev/md numbers. As you're using an initramfs, do it all there. Turn off kernel assembly, both by removing unnecessary boot parameters, and by removing it from the kernel configuration. This might not fix your problem, but it should make it easier to diagnose.
_________________
Greybeard
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