Unix Technical Forum

problems installing gentoo on sata onboard raid - dmraid masked

This is a discussion on problems installing gentoo on sata onboard raid - dmraid masked within the Gentoo Linux Support forums, part of the Unix Operating Systems category; --> Hello. I started installing gentoo on my box on sata raid1 array. I followed the instructions on the gentoo-wiki ...


Go Back   Unix Technical Forum > Unix Operating Systems > Gentoo Linux Support

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-21-2008, 11:58 AM
hot_rage
 
Posts: n/a
Default problems installing gentoo on sata onboard raid - dmraid masked

Hello.

I started installing gentoo on my box on sata raid1 array. I followed
the instructions on the gentoo-wiki
http://gentoo-wiki.com/HOWTO_Gentoo_...(Onboard)_RAID but
got stuck trying to emerge the dmraid package because of this package is
masked.
I managed to install the dmraid package by editing the package.mask file
in /usr/portage/profile/ but I don't think this is the propper way to
deal with this problem.
Does anybody know how to solve this problem, is there a workaround in
some way (do I need the dmraid package after all?)?
The kernel I built using the genkernel skript #genkernel --dmraid all.

Any help would be apreciated.


Harry
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-21-2008, 11:58 AM
Wim Cossement
 
Posts: n/a
Default Re: problems installing gentoo on sata onboard raid - dmraid masked

hot_rage wrote:
> Hello.
>
> I started installing gentoo on my box on sata raid1 array. I followed
> the instructions on the gentoo-wiki
> http://gentoo-wiki.com/HOWTO_Gentoo_...(Onboard)_RAID but
> got stuck trying to emerge the dmraid package because of this package is
> masked.
> I managed to install the dmraid package by editing the package.mask file
> in /usr/portage/profile/ but I don't think this is the propper way to
> deal with this problem.
> Does anybody know how to solve this problem, is there a workaround in
> some way (do I need the dmraid package after all?)?
> The kernel I built using the genkernel skript #genkernel --dmraid all.
>
> Any help would be apreciated.
>
>
> Harry


Hi Harry,

I few weeks ago I used this guide for installing Gentoo on 4 250 GB SATA
disks configured as software RAID and it works like a charm.

The only difference is that I compiled my kernel by hand, but normally
you only need to make sure the right drivers are installed, but if the
hardware is automatically recognised when you use the liveCD you can get
an overview with the lspci command (or snoop around in Windows or read
the manual of the mainboard for clues)

http://www.gentoo.org/doc/en/gentoo-...ickinstall.xml

Here they use mdadm for that purpose, since dmraid is not installed on
my fileserver...

And you can of course skip the LVM2 steps, and use more that 3 RAID
arrays (or just a /boot and a /-array), that's up to you.

HTH,

Wimmy
--
Being owned by someone used to be called slavery.
Now it's called commitment.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-21-2008, 11:58 AM
Ben Carr
 
Posts: n/a
Default Re: problems installing gentoo on sata onboard raid - dmraid masked

> I managed to install the dmraid package by editing the package.mask file
> in /usr/portage/profile/ but I don't think this is the propper way to
> deal with this problem.


There is a good writeup on how to deal with masked packages at:
http://gentoo-wiki.com/TIP_Dealing_with_masked_packages
The part you want to pay attention (from looking at the ebuild) is the
section on "Masked by missing keyword". I assume you are using either
the x86 or amd64 trees, and this package is in the "unstable" tree, aka
~x86/~amd64.
As to whether you need this package I am not sure, but I hope this helps
you with how to deal with packages.
One really good place to look for solutions to these type of questions
is the Gentoo Forums:
http://forums.gentoo.org/
People are very helpful and very nice on the boards. The search function
is also fairly good. Just make sure you are using generic enough search
terms, eg: the package name, rather than the package-0.8.1-r2.
-B
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-21-2008, 11:58 AM
J.O. Aho
 
Posts: n/a
Default Re: problems installing gentoo on sata onboard raid - dmraid masked

hot_rage wrote:
> Hello.
>
> I started installing gentoo on my box on sata raid1 array. I followed
> the instructions on the gentoo-wiki
> http://gentoo-wiki.com/HOWTO_Gentoo_...(Onboard)_RAID but
> got stuck trying to emerge the dmraid package because of this package is
> masked.
> I managed to install the dmraid package by editing the package.mask file
> in /usr/portage/profile/ but I don't think this is the propper way to
> deal with this problem.


No, you are right about that

you have /etc/portage/package.keywords and /etc/portage/package.unmask
for that

You add the package name to the file, one per row, in the keywords you
need to add which unstable version you want to use, for example for
PowerPC 32bit you add ~ppc and if you want just to affect one specific
version, add = infront and include the version number.

Each time you try to emerge a masked package there is a reference to the
Gentoo handbook, where to read more about emerge/portage to emerge
masked packages.


> The kernel I built using the genkernel skript #genkernel --dmraid all.


I quit using that one while it was broke the last or next last time.


//Aho
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-21-2008, 11:58 AM
Arthur Hagen
 
Posts: n/a
Default Re: problems installing gentoo on sata onboard raid - dmraid masked

J.O. Aho <user@example.net> wrote:
> hot_rage wrote:
>
>> The kernel I built using the genkernel skript #genkernel --dmraid
>> all.

>
> I quit using that one while it was broke the last or next last time.


Even when it works, it creates a bloated kernel. Better to roll your own.

To those who wonder how to make a lean, mean kernel:

- All permanently attached hardware that you use should be directly in the
kernel, not as modules.
- All hardware that you are likely to plug in and out should be modules.
- Alsa must (unfortunately) be built as a module.
- Anything else should be disabled in the kernel, and not built as modules.
This includes support for file systems you don't use, serial/parallel ports
you don't use, onboard graphics and sound if not used.
- Avoid using initrd or similar. If you have to use initrd, it's a sign
that you have built something as a module that should be directly in the
kernel.
- If the combined size of your vmlinuz and /lib/modules/[kernelversion] is
much more than 4-5 GB, you probably have a lot of stuff that you never use.

Note that having something as a module that you don't use doesn't mean that
it doesn't use memory and resources in the kernel. The hooks for each
module are still in place in the kernel proper even when the module isn't
loaded. You save *most* of the space by having an unloaded module.

lsmod and lspci are your friends. Most anything listed by lsmod will be
slightly faster and less memory demanding if built directly into the kernel
instead of as a module. And things not listed at all can often go.

Regards,
--
*Art

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 02-21-2008, 11:58 AM
Whoever
 
Posts: n/a
Default Re: problems installing gentoo on sata onboard raid - dmraid masked



On Mon, 29 Jan 2007, Arthur Hagen wrote:

> J.O. Aho <user@example.net> wrote:
>>

>
> To those who wonder how to make a lean, mean kernel:
>
> - Alsa must (unfortunately) be built as a module.


Does it? The /etc/init.d/alsasound only loads/unloads modules (plus it
saves the levels), so this does not have to be run.

You don't have to install alsa-driver if you have built a kernel with all
the necessary alsa features.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 02-21-2008, 11:58 AM
abelenda
 
Posts: n/a
Default Re: problems installing gentoo on sata onboard raid - dmraid masked

J.O. Aho wrote:
> hot_rage wrote:
>> Hello.
>>
>> I started installing gentoo on my box on sata raid1 array. I followed
>> the instructions on the gentoo-wiki
>> http://gentoo-wiki.com/HOWTO_Gentoo_...(Onboard)_RAID but
>> got stuck trying to emerge the dmraid package because of this package is
>> masked.
>> I managed to install the dmraid package by editing the package.mask file
>> in /usr/portage/profile/ but I don't think this is the propper way to
>> deal with this problem.

>
> No, you are right about that
>
> you have /etc/portage/package.keywords and /etc/portage/package.unmask
> for that
>
> You add the package name to the file, one per row, in the keywords you
> need to add which unstable version you want to use, for example for
> PowerPC 32bit you add ~ppc and if you want just to affect one specific
> version, add = infront and include the version number.
>
> Each time you try to emerge a masked package there is a reference to the
> Gentoo handbook, where to read more about emerge/portage to emerge
> masked packages.
>
>
>> The kernel I built using the genkernel skript #genkernel --dmraid all.

>
> I quit using that one while it was broke the last or next last time.
>
>
> //Aho



Well since dmraid is masked by packages.mask and ~x86 for bugs I think
thats not very safe to use it. But on my amd64 I used raidtools (not
masked) and it works perfectly (but i haven't used on board raid because
thats deprecated as it depends on the driver and is not really hardware)
on an nForce motherboard with two sATA disks.

I suggest you if you can to disable the RAID on you motherboard and do
software RAID with raidtools if you can't well I read raidtools Doc and
it doesn't seem to support hardware RAID so you should find a
replacement for dmraid or unmask it at you own risk.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 02-21-2008, 11:58 AM
Johan Lindquist
 
Posts: n/a
Default Re: problems installing gentoo on sata onboard raid - dmraid masked

So anyway, it was like, 14:52 CET Jan 24 2007, you know? Oh, and, yeah,
hot_rage was all like, "Dude,

[..]

> I started installing gentoo on my box on sata raid1
> array. I followed the instructions on the gentoo-wiki
> http://gentoo-wiki.com/HOWTO_Gentoo_...(Onboard)_RAID
> but got stuck trying to emerge the dmraid package because of this
> package is masked.


I'd avoid using the onboard "raid", since it's just faked software
raid anyway (there's no true hardware raid on any consumer-level board
that I'm aware of) and you'll have an easier time setting up native
software raid (using mdadm and kernel capabilities) instead.

An added bonus is that you can replace your hardware without having
to do a full backup just to move your data to another software raid
configuration.

--
Time flies like an arrow, fruit flies like a banana. Perth ---> *
10:12:24 up 82 days, 7:53, 6 users, load average: 0.26, 0.17, 0.11
Linux 2.6.18.1 x86_64 GNU/Linux Registered Linux user #261729
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 02-21-2008, 11:58 AM
J.O. Aho
 
Posts: n/a
Default Re: problems installing gentoo on sata onboard raid - dmraid masked

abelenda wrote:
> J.O. Aho wrote:
>> hot_rage wrote:
>>> Hello.
>>>
>>> I started installing gentoo on my box on sata raid1 array. I followed
>>> the instructions on the gentoo-wiki
>>> http://gentoo-wiki.com/HOWTO_Gentoo_...(Onboard)_RAID but
>>> got stuck trying to emerge the dmraid package because of this package is
>>> masked.
>>> I managed to install the dmraid package by editing the package.mask file
>>> in /usr/portage/profile/ but I don't think this is the propper way to
>>> deal with this problem.

>> No, you are right about that
>>
>> you have /etc/portage/package.keywords and /etc/portage/package.unmask
>> for that
>>
>> You add the package name to the file, one per row, in the keywords you
>> need to add which unstable version you want to use, for example for
>> PowerPC 32bit you add ~ppc and if you want just to affect one specific
>> version, add = infront and include the version number.
>>
>> Each time you try to emerge a masked package there is a reference to the
>> Gentoo handbook, where to read more about emerge/portage to emerge
>> masked packages.


> Well since dmraid is masked by packages.mask and ~x86 for bugs I think
> thats not very safe to use it. But on my amd64 I used raidtools (not
> masked) and it works perfectly (but i haven't used on board raid because
> thats deprecated as it depends on the driver and is not really hardware)
> on an nForce motherboard with two sATA disks.


Yes, the double masking is a good argument to use, but it's not always
possible to use a replacement package, no matter the reason, you should unmask
in the correct way if you don't want to get troubles.


> I suggest you if you can to disable the RAID on you motherboard and do
> software RAID with raidtools if you can't well I read raidtools Doc and
> it doesn't seem to support hardware RAID so you should find a
> replacement for dmraid or unmask it at you own risk.


Not sure if mdadm works well with hardware raid or not, but it's described as
a good replacement for raidtools.

--

//Aho
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 02-21-2008, 11:58 AM
Arthur Hagen
 
Posts: n/a
Default Re: problems installing gentoo on sata onboard raid - dmraid masked

Whoever <nobody@devnull.none> wrote:
> On Mon, 29 Jan 2007, Arthur Hagen wrote:
>
>> J.O. Aho <user@example.net> wrote:
>>>

>>
>> To those who wonder how to make a lean, mean kernel:
>>
>> - Alsa must (unfortunately) be built as a module.

>
> Does it? The /etc/init.d/alsasound only loads/unloads modules (plus it
> saves the levels), so this does not have to be run.
>
> You don't have to install alsa-driver if you have built a kernel with
> all the necessary alsa features.


You can't use alsaconf unless it's built as a module, and AFAICT, neither
can you use gstreamer with the alsa plugin -- you have to use oss
(deprecated) or esd (defunct) instead.

Regards,
--
*Art

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 05:24 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com