Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
dmraid raid5 fakeraid dualboot(Solved)
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2  
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 21706

PostPosted: Sat May 07, 2011 1:24 am    Post subject: Reply with quote

If those are the only errors, then yes, it is probably otherwise working. I copied the RAID command from your initscript, so I did not know whether it would work. Apparently, that invocation is incorrect.
Back to top
View user's profile Send private message
Gankfest
l33t
l33t


Joined: 01 Aug 2007
Posts: 946
Location: Miami Beach, FL

PostPosted: Sat May 07, 2011 3:07 am    Post subject: Reply with quote

Is it possible that when the raid is created in Ubuntu 10 that the raid is nvidia_cadabaee and when gentoo makes the raid, it's something completely different. If so how would I know what the raid name is to mount it?
_________________
Gankfest™ (>")> ~*

Everyone has to start somewhere, it depends on where you end up that counts! (>")>
Back to top
View user's profile Send private message
cach0rr0
Bodhisattva
Bodhisattva


Joined: 13 Nov 2008
Posts: 4123
Location: Houston, Republic of Texas

PostPosted: Sat May 07, 2011 3:27 am    Post subject: Reply with quote

paradox6996 wrote:
If so how would I know what the raid name is to mount it?


are you being dropped to the rescue shell or not?
_________________
Lost configuring your system?
dump lspci -n here | see Pappy's guide | Link Stash
Back to top
View user's profile Send private message
Gankfest
l33t
l33t


Joined: 01 Aug 2007
Posts: 946
Location: Miami Beach, FL

PostPosted: Sat May 07, 2011 3:33 am    Post subject: Reply with quote

Ya I got the rescue shell to work and with dmraid -r it shows the same name. After trying to do dmraid -ay it fails because the "raid45" module isn't in the kernel, because the raid module is now "raid456" for raid4/5/6. So... is there a way to fix this?

The modules is here in menuconfig:

Code:
MD_RAID456 [=y]

_________________
Gankfest™ (>")> ~*

Everyone has to start somewhere, it depends on where you end up that counts! (>")>
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7651
Location: Goose Creek SC

PostPosted: Sat May 07, 2011 4:02 am    Post subject: Reply with quote

MD_RAID456 [=y] is for linux software raid
?
Code:
 <*>     RAID 4/5/6 target (EXPERIMENTAL)
?
_________________
Defund the FCC.
Back to top
View user's profile Send private message
Gankfest
l33t
l33t


Joined: 01 Aug 2007
Posts: 946
Location: Miami Beach, FL

PostPosted: Sat May 07, 2011 4:11 am    Post subject: Reply with quote

DONAHUE wrote:
MD_RAID456 [=y] is for linux software raid
?
Code:
 <*>     RAID 4/5/6 target (EXPERIMENTAL)
?


Missed that one, but didn't know it was for the raid45 issue. Compiling and crossing my fingers! ;P
_________________
Gankfest™ (>")> ~*

Everyone has to start somewhere, it depends on where you end up that counts! (>")>
Back to top
View user's profile Send private message
cach0rr0
Bodhisattva
Bodhisattva


Joined: 13 Nov 2008
Posts: 4123
Location: Houston, Republic of Texas

PostPosted: Sat May 07, 2011 4:19 am    Post subject: Reply with quote

paradox6996 wrote:
Ya I got the rescue shell to work


right, so that's somewhat what I'm getting at.

If you get to the rescue shell, and you end up trying a few different things to try and manually activate the raid volume, whether you're keying in 'dmraid -ay' or keying in '/bin/bash ./holyshitfixthisomgwtf.sh', whatever you find/type that finally brings it online, needs to go inside your 'init'

For example, I could have an init that does nothing more than immediately drop me to a shell. I could, from that point, key in a bunch of commands, e.g. mounting stuff, scanning for raid volumes, unlocking crypt volumes, whatever, manually switch_root, and boot like that every single time. Or, I could just put the commands I would type into 'init', and save myself a few keystrokes; that's what init does here, save you keystrokes. Of course, this is an explanation rather than a fix, intended to give you an idea of "why" and not just "how"

In this case, you found out what was missing (that raid456 module) when trying to activate the volume from the shell; an error easiest to see if you're in a rescue shell, rather than just looking at a failed bootup attempt's output.
_________________
Lost configuring your system?
dump lspci -n here | see Pappy's guide | Link Stash
Back to top
View user's profile Send private message
Gankfest
l33t
l33t


Joined: 01 Aug 2007
Posts: 946
Location: Miami Beach, FL

PostPosted: Sat May 07, 2011 4:26 am    Post subject: Reply with quote

DONAHUE wrote:
MD_RAID456 [=y] is for linux software raid
?
Code:
 <*>     RAID 4/5/6 target (EXPERIMENTAL)
?


It failed with same error, what do you have in your raid setup in kernel. Do you have the auto detect or anything or just that one module. If all else fails I found a way to patch an older kernel and can maybe try that.
_________________
Gankfest™ (>")> ~*

Everyone has to start somewhere, it depends on where you end up that counts! (>")>
Back to top
View user's profile Send private message
cach0rr0
Bodhisattva
Bodhisattva


Joined: 13 Nov 2008
Posts: 4123
Location: Houston, Republic of Texas

PostPosted: Sat May 07, 2011 4:36 am    Post subject: Reply with quote

trying to think of a way to explain this that makes sense
failing, but ill give it a go:

whenever you're trying to run whichever command that tells you 'raid45' isn't in the kernel...if the driver that makes the device nodes it needs is already loaded, said device nodes will already be created, it doesn't care if the module is named 'raid45', or named 'fred'. All it cares about is whether the device node is created.

In this case, it sees that the device node isn't there, and as a last gasp it hopes the device node isn't there because the driver needed is a module instead of a built-in, as such it tries to load the driver that would make the device.

All that being said:

Code:

Symbol: DM_RAID45 [=y]
  │ Type  : tristate
  │ Prompt: RAID 4/5 target (EXPERIMENTAL)
  │   Defined at drivers/md/Kconfig:300
  │   Depends on: MD [=y] && BLK_DEV_DM [=y] && EXPERIMENTAL [=y]
  │   Location:
  │     -> Device Drivers
  │       -> Multiple devices driver support (RAID and LVM) (MD [=y])
  │         -> Device mapper support (BLK_DEV_DM [=y])
  │   Selects: ASYNC_XOR [=n]

_________________
Lost configuring your system?
dump lspci -n here | see Pappy's guide | Link Stash
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7651
Location: Goose Creek SC

PostPosted: Sat May 07, 2011 4:56 am    Post subject: Reply with quote

@cach
what kernel version?
38-r4 here has
Quote:
Symbol: DM_RAID [=m]
Type : tristate
Prompt: RAID 4/5/6 target (EXPERIMENTAL)
Defined at drivers/md/Kconfig:243
Depends on: MD [=y] && BLK_DEV_DM [=y] && EXPERIMENTAL [=y]
Location:
-> Device Drivers
-> Multiple devices driver support (RAID and LVM) (MD [=y])
-> Device mapper support (BLK_DEV_DM [=y])
Selects: MD_RAID456 [=m] && BLK_DEV_MD [=m]
Quote:
DM_RAID45 [=y]
Does not exist in my 38-r4.
He may need to revert the kernel to one with DM_RAID45 [=y] ??
Perhaps using module is critical??
Having DM_RAID select MD_RAID456 && BLK_DEV_MD seems odd.
_________________
Defund the FCC.
Back to top
View user's profile Send private message
cach0rr0
Bodhisattva
Bodhisattva


Joined: 13 Nov 2008
Posts: 4123
Location: Houston, Republic of Texas

PostPosted: Sat May 07, 2011 5:02 am    Post subject: Reply with quote

2.6.36-zen1 is where i found that

just checked a 2.6.37.5-zen system, it also has that

havent moved to .38 because im not entirely convinced the new "magic" autogrouping patch wont step on the toes of BFS should I try to use it, or that something else somewhere has changed that'd cause regressions for BFS.

hang tight, ill snag a .38 set of sources at least, and see if i can find 'er

fact of the matter is, if the dev nodes are there, it shouldnt be trying to load *any* driver.
_________________
Lost configuring your system?
dump lspci -n here | see Pappy's guide | Link Stash
Back to top
View user's profile Send private message
Gankfest
l33t
l33t


Joined: 01 Aug 2007
Posts: 946
Location: Miami Beach, FL

PostPosted: Sat May 07, 2011 5:07 am    Post subject: Reply with quote

I have .38-r4 as well, so if I get one of those zen kernels build it copy the config over to the .38-r4, will it have the opt to set raid45 module or do I have to use the zen kernel. I don't really care what kernel I use, as long as it works.
_________________
Gankfest™ (>")> ~*

Everyone has to start somewhere, it depends on where you end up that counts! (>")>
Back to top
View user's profile Send private message
cach0rr0
Bodhisattva
Bodhisattva


Joined: 13 Nov 2008
Posts: 4123
Location: Houston, Republic of Texas

PostPosted: Sat May 07, 2011 5:13 am    Post subject: Reply with quote

ok, it also exists on 2.6.38.4-zen

testing gentoo-sources now (rather, I'm emerging it)

aha! That's the difference. Looking at gentoo-sources 2.6.38-r4, it's raid456.

it's just raid45 on zen-sources.
_________________
Lost configuring your system?
dump lspci -n here | see Pappy's guide | Link Stash
Back to top
View user's profile Send private message
cach0rr0
Bodhisattva
Bodhisattva


Joined: 13 Nov 2008
Posts: 4123
Location: Houston, Republic of Texas

PostPosted: Sat May 07, 2011 5:15 am    Post subject: Reply with quote

paradox6996 wrote:
I have .38-r4 as well, so if I get one of those zen kernels build it copy the config over to the .38-r4, will it have the opt to set raid45 module or do I have to use the zen kernel. I don't really care what kernel I use, as long as it works.


I love zen, but, copying over the .config might not work (if you do this, snag a kernel seed - link in sig), meaning, I don't know that this is going to give you a solution.
If raid456 provides the same functionality as raid45, it should not matter what the name is.

I don't recall, have you already unmasked the latest ~arch version of the lvm2 package? Thinking maybe it'll behave better with this new naming.
_________________
Lost configuring your system?
dump lspci -n here | see Pappy's guide | Link Stash
Back to top
View user's profile Send private message
Gankfest
l33t
l33t


Joined: 01 Aug 2007
Posts: 946
Location: Miami Beach, FL

PostPosted: Sat May 07, 2011 5:16 am    Post subject: Reply with quote

cach0rr0 wrote:
ok, it also exists on 2.6.38.4-zen

testing gentoo-sources now (rather, I'm emerging it)

aha! That's the difference. Looking at gentoo-sources 2.6.38-r4, it's raid456.

it's just raid45 on zen-sources.


kool, I'm download the latest zen source now. Never used one, but do you just treat it like a gentoo-kernel when configuring and compiling.

P.S The raid456 modules from what I read at Redhat is for mdadm and not dmraid.
_________________
Gankfest™ (>")> ~*

Everyone has to start somewhere, it depends on where you end up that counts! (>")>


Last edited by Gankfest on Sat May 07, 2011 5:18 am; edited 1 time in total
Back to top
View user's profile Send private message
cach0rr0
Bodhisattva
Bodhisattva


Joined: 13 Nov 2008
Posts: 4123
Location: Houston, Republic of Texas

PostPosted: Sat May 07, 2011 5:17 am    Post subject: Reply with quote

paradox6996 wrote:

kool, I'm download the latest zen source now. Never used one, but do you just treat it like a gentoo-kernel when configuring and compiling.


same steps as usual as far as configuring, compiling, and installing.
not sure that'll be a fix for you, though. Something we're missing.
_________________
Lost configuring your system?
dump lspci -n here | see Pappy's guide | Link Stash
Back to top
View user's profile Send private message
Gankfest
l33t
l33t


Joined: 01 Aug 2007
Posts: 946
Location: Miami Beach, FL

PostPosted: Sat May 07, 2011 6:22 am    Post subject: Reply with quote

Alright building the kernel now and will post back if it's working or not. I didn't build 'raid45' as a module, because I don't have a /etc/modules.autoload.d/kernel-2.6. Don't know if I have to make one or not, I've just always built everything directly into the kernel.
_________________
Gankfest™ (>")> ~*

Everyone has to start somewhere, it depends on where you end up that counts! (>")>
Back to top
View user's profile Send private message
cach0rr0
Bodhisattva
Bodhisattva


Joined: 13 Nov 2008
Posts: 4123
Location: Houston, Republic of Texas

PostPosted: Sat May 07, 2011 6:51 am    Post subject: Reply with quote

anything that's required to mount your root file system should *always* be built-in anyway

you can of course technically disregard that rule if you want to copy over a ton of modules and any modules they depend on into your initramfs, but this is clunky and prone to error IMHO
_________________
Lost configuring your system?
dump lspci -n here | see Pappy's guide | Link Stash
Back to top
View user's profile Send private message
Gankfest
l33t
l33t


Joined: 01 Aug 2007
Posts: 946
Location: Miami Beach, FL

PostPosted: Sat May 07, 2011 6:59 am    Post subject: Reply with quote

It works and boots just fine, only thing I had to do was change /mnt/disk to /mnt/root and booted fine. Wanna say really appreciate the help and the time spent on making this possible. If you guys ever need anything you know where to find me! ;P
_________________
Gankfest™ (>")> ~*

Everyone has to start somewhere, it depends on where you end up that counts! (>")>
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
Goto page Previous  1, 2
Page 2 of 2

 
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