Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
how to use hardware RAID1 in 2008 beta2 gentoo[SOLVED]
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
upengan78
l33t
l33t


Joined: 27 Jun 2007
Posts: 711
Location: IL

PostPosted: Fri Jun 20, 2008 1:47 pm    Post subject: how to use hardware RAID1 in 2008 beta2 gentoo[SOLVED] Reply with quote

Hi,

I have Optiplex 755, it has RAID controller utility where I have created an array for 2 samsung 160 G disks. RAID1.

I have set Drives as Autodetect RAID1 with ATA. There are other options such as RAID1, Autodetect Raid with AHCI and Legacy.

I would like to use the hardware RAID level 1 and install gentoo. For some reason I can not install in right device.


I tried with above hardware set and installing in /dev/sda and that did not boot OS. it showed weired characters in place of boot loader. when I had installed boot loader on /dev/sda it did not show any errors.

when I used legacy drives I get non mirrored gentoo.

Please guide for using this Hardware RAID( Intel Matrix Storage Manager)

Thanks :(


Last edited by upengan78 on Tue Jun 24, 2008 8:59 pm; edited 1 time in total
Back to top
View user's profile Send private message
aceFruchtsaft
Guru
Guru


Joined: 16 May 2004
Posts: 438
Location: Vienna, Austria

PostPosted: Fri Jun 20, 2008 3:06 pm    Post subject: Reply with quote

The problem is that the RAID provided via the Intel ICH chipsets is NO hardware RAID. The RAID functionality is entirely implemented via the driver, and Linux in general does not support this. Therefore, in Linux you will not see one single RAID device but rather all disks separately.

Unless you want to dual boot with Windows, there is no reason to configure the RAID in BIOS; use Linux's own device mapper instead. If you want to dual boot, you'll most likely run intro trouble. If you are lucky, you can use dmraid (search the gentoo-wiki, Google, etc..). I tried this once with Intel's ICH8R, failed, and just bought a real hardware RAID controller. This was 1,5 years ago, so you may be more lucky.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Fri Jun 20, 2008 4:08 pm    Post subject: Reply with quote

upengan78,

Your RAID controller is not hardware raid, its software (int eh BIOS) raid, often called fakeraid.
The only reason to use fake raid is that linux and windows must share the raid set.

Boot the gentoo liveCD with the dmraid kernel option if you want to go this route. You probably don't, because kernel software raid is better.

For software raid, you need mdadm and the kernel raid modules for the raid personalties you want to use.
With kernel raid, you donate partitions, not drives to raid sets, thus you can mix several raid levels on the same drive.
Hint: you cannot boot for a kernel raid 0 set, so you must make /boot either raid1, or not raided.
_________________
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
upengan78
l33t
l33t


Joined: 27 Jun 2007
Posts: 711
Location: IL

PostPosted: Tue Jun 24, 2008 4:31 pm    Post subject: Reply with quote

Thanks for replying guys !

Well I have got something working using the wikis...nvidiaraid and others..


what I did is
Code:

0. Configure in BIOS , Drives to RAID ON, with intel hardware utility created a volume for RAID 1
1. boot with 2008beta2-Live CD
2. while booting edited grub and added 'dodmraid'
3. booted system and ls /dev/mapper still did not show anything.
4. so i did 'dmraid -ay'
5. now I see a device in /dev/mapper/blah_Volume
6. I configure this volume instead of sda or sdb and installed os in it.
7. configured kernel manually.
8. used genkernel command to get initial ram disk and kernel and configured grub.conf and grub
9. I have 3 partitions volume1 volume2 and volume3
10. my system boots


I do not know what to call this software RAID or hardware raid or fake hardware raid. :D

Quote:
df -kh
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/isw_cccegdefga_Volume3
143G 3.6G 133G 3% /
udev 10M 180K 9.9M 2% /dev
shm 1.9G 0 1.9G 0% /dev/shm


Quote:

dmraid -r
/dev/sdb: isw, "isw_cccegdefga", GROUP, ok, 312499998 sectors, data@ 0
/dev/sda: isw, "isw_cccegdefga", GROUP, ok, 312499998 sectors, data@ 0


Quote:
swapon -s
Filename Type Size Used Priority
/dev/mapper/isw_cccegdefga_Volume2 partition 3911816 0 -1


Quote:
dmraid -s
*** Group superset isw_cccegdefga
--> Active Subset
name : isw_cccegdefga_Volume0
size : 312494336
stride : 128
type : mirror
status : ok
subsets: 0
devs : 2
spares : 0


I wonder if this is really getting mirrored on two drives or not.


Thanks
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Tue Jun 24, 2008 6:45 pm    Post subject: Reply with quote

upengan78,

Its BIOS raid or fakeraid and it is working

One of the reasons to not use fakeraid is support. The physical data layout on the drives is BIOS dependant.
You can only expect to read those drives with the same fakeraid chipset and the same BIOS. Other BIOSes and other chipsets do it differently.

Kernel raid is BIOS and chipset independant - you can plug a kernel raid set into other hardware and be confident you can read it.
You may not be able to boot from it but you will be able to read it.

Speed wise, fakeraid is little different from kernel raid as both are software raid implementions.
_________________
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
danomac
l33t
l33t


Joined: 06 Nov 2004
Posts: 881
Location: Vancouver, BC

PostPosted: Tue Jun 24, 2008 8:37 pm    Post subject: Reply with quote

Just a tip to add: if you forget to add 'dodmraid' you can modprobe it manually later in a shell and execute 'dmraid -ay' - this will detect your raid arrays without having to reboot.

Just installed a fresh install myself.

The only reason I had to do it this way is because Vista is on another partition, or I would've stuck with in-kernel raid.
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