Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] Help with intel imsm fakeRaid
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Ginta
Tux's lil' helper
Tux's lil' helper


Joined: 17 Feb 2006
Posts: 133
Location: Spain

PostPosted: Fri Feb 03, 2017 8:34 pm    Post subject: [Solved] Help with intel imsm fakeRaid Reply with quote

I had a system with this fakeraid working in this same machine in the past, but had to reinstall it from scratch.

This time, I followed up every steps on the handbook, and the same what I did before, but leads me to an unbootable system, as root partition is in the raid, which mdadm is unable to detect. I am using genkernel with mdadm enabled, tried default config and custom one with same results:

  • /dev/md* entries are missing from busybox shell (are they autogenerated?)
  • mdadm --detail-platform returns
    mdmon: imsm capabilities not found for controller: /sys/devices/pci0000:00/0000:00:1f.2 (type SATA)
    But on live CD it is correct output (did it misses something on kernel?)
  • Tried mdadm-4.0 and mdadm-3.4 with same results.

    The fact that on Gentoo's liveCD the fakeraid is working correctly, excludes some problem with it, but... I am really out of ideas of what to try, I don't even know what is really happening here..

    Some advice? Thanks

_________________
Somebody should use emerge brain on theirselves...


Last edited by Ginta on Mon Feb 06, 2017 4:46 pm; edited 1 time in total
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43178
Location: 56N 3W

PostPosted: Fri Feb 03, 2017 8:45 pm    Post subject: Reply with quote

Ginta,

Root on raid requires an initrd.

There are two sorts of fake raid. BIOS fake raid, which uses the dm-raid kernel module.
A 'container' which you use, that uses mdadm.

In both cases user space tools are required to start the raid before root can be detected, if root is on the raid.
These go in the initrd.

The only reason to use fakeraid is that you need to share the raid set with another operating system that does not understand mdadm raid sets.

The /dev/md* entries are autogenerated by the kernel' (DEVTMPFS option) once the raid set is assembled and started.

Tell us how you made both your kernel and initrd?
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Ginta
Tux's lil' helper
Tux's lil' helper


Joined: 17 Feb 2006
Posts: 133
Location: Spain

PostPosted: Fri Feb 03, 2017 8:52 pm    Post subject: Reply with quote

I used genkernel to generate kernel and initrd, enabling the --mdadm and domdadm kernel command line.

Those command outputs are the result when I type shell, and get a busybox shell from genkernel's initrd.

Also, userspace tools are installed on that initrd as well as on the system.

EDIT: I have windows installed also on that imsm raid0 (that was created with the uefi bios menu)
_________________
Somebody should use emerge brain on theirselves...
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43178
Location: 56N 3W

PostPosted: Fri Feb 03, 2017 9:02 pm    Post subject: Reply with quote

Ginta,

In the busybox shell, after a failed boot, look at the init script.
cat init or more init.

Follow it through a line at a time. Type it at the shell prompt if you need to.
This way you can see which command fails.

Also,
Code:
ls /sbin/md*
should show mdadm and friends.

You can also run the init script from the shell prompt. If that works, there is a timing issue somewhere.
As the script failed, you may get errors trying things that worked at boot.
Like proc is already mounted. That's harmless.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Ginta
Tux's lil' helper
Tux's lil' helper


Joined: 17 Feb 2006
Posts: 133
Location: Spain

PostPosted: Mon Feb 06, 2017 4:45 pm    Post subject: Reply with quote

I fixed it, by doing two things, not sure which of the two solved it finally:


  • Downgrade gperf, so eudev can be compiled to latest version
  • Copy liveDVD's kernel config, and use it as a template for genkernel-next' config+install


One of that two steps solved the issue, thanks for your attention :)
_________________
Somebody should use emerge brain on theirselves...
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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