LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-05-2005, 03:23 PM   #1
Zulu2
LQ Newbie
 
Registered: Dec 2004
Posts: 5

Rep: Reputation: 0
Need Help setting up raid


I'm trying to create some redundancy in booting linux using raid 1 as well as some other raid arrays. It's my first install using linux (no other OS is on this box) and I have gotten it loaded but I'm not sure where I am. Here is some file info:

/proc/mdstat
Personalities : [raid0] [raid1] [raid5]
md2 : active raid5 hdg2[4] hdf2[3] hde2[2] hdb2[1] hda2[0]
162577408 blocks level 5, 64k chunk, algorithm 2 [5/5] [UUUUU]

md1 : active raid0 hdg3[4] hdf3[3] hde3[2] hdb3[1] hda3[0]
526890880 blocks 128k chunks

md0 : active raid1 hdf1[1] hdb1[0]
10257344 blocks [2/2] [UU]

/proc/partitions
major minor #blocks name

3 0 156290904 hda
3 1 10257471 hda1
3 2 40644450 hda2
3 3 105378367 hda3
3 64 156290904 hdb
3 65 10257471 hdb1
3 66 40644450 hdb2
3 67 105378367 hdb3
33 0 156290904 hde
33 1 10257471 hde1
33 2 40644450 hde2
33 3 105378367 hde3
33 64 156290904 hdf
33 65 10257471 hdf1
33 66 40644450 hdf2
33 67 105378367 hdf3
34 0 156290904 hdg
34 1 10257471 hdg1
34 2 40644450 hdg2
34 3 105378367 hdg3
9 0 10257344 md0
9 1 526890880 md1
9 2 162577408 md2

/boot/grub/menu.lst
# Modified by YaST2. Last modification on Thu Jan 6 02:15:58 2005


color white/blue black/light-gray
default 0
timeout 8
gfxmenu (hd1,0)/message

###Don't change this comment - YaST2 identifier: Original name: linux###
title SUSE LINUX 9.2
kernel (hd1,0)/vmlinuz root=/dev/hda1 vga=0x31a selinux=0 splash=silent resume=/dev/hdg1 desktop elevator=as showopts
initrd (hd1,0)/initrd

###Don't change this comment - YaST2 identifier: Original name: failsafe###
title Failsafe -- SUSE LINUX 9.2
kernel (hd1,0)/vmlinuz root=/dev/hda1 showopts ide=nodma apm=off acpi=off vga=normal noresume selinux=0 barrier=off nosmp noapic maxcpus=0 3
initrd (hd1,0)/initrd

/boot/grub/device.map
(hd0) /dev/hda
(hd1) /dev/hdb
(hd2) /dev/hde
(hd3) /dev/hdf
(hd4) /dev/hdg

/etc/grub.conf
root (hd1,0)
install --stage2=/boot/grub/stage2 /grub/stage1 d (hd0) /grub/stage2 0x8000 (hd1,0)/grub/menu.lst
quit

I want to use md0 for the the linux root file system and use it to boot. I don't belive I accomplished this though. Also, does the md1 and 2 look OK? How can I check to see if the raid array's are in fact working.

Any help will be very much appreciated.

Thanks
 
Old 01-06-2005, 08:58 AM   #2
jmeads
Member
 
Registered: Dec 2004
Location: London
Distribution: Slackware
Posts: 44

Rep: Reputation: 15
Quote:
/proc/mdstat
Personalities : [raid0] [raid1] [raid5]
md2 : active raid5 hdg2[4] hdf2[3] hde2[2] hdb2[1] hda2[0]
162577408 blocks level 5, 64k chunk, algorithm 2 [5/5] [UUUUU]

md1 : active raid0 hdg3[4] hdf3[3] hde3[2] hdb3[1] hda3[0]
526890880 blocks 128k chunks

md0 : active raid1 hdf1[1] hdb1[0]
10257344 blocks [2/2] [UU]

All 3 of your arrays up and working, note the [5/5] [UUUUU], each U means that the disk is up.

I think you need to point grup at the md0... array but not sure - can you provide your /etc/fstab file please
 
Old 01-06-2005, 02:53 PM   #3
Zulu2
LQ Newbie
 
Registered: Dec 2004
Posts: 5

Original Poster
Rep: Reputation: 0
Thanks for the reply, here's the file.

/etc/fstab
/dev/hda1 / reiserfs acl,user_xattr 1 1
/dev/md0 /boot reiserfs acl,user_xattr 1 2
/dev/md1 /home reiserfs acl,user_xattr 1 2
/dev/md2 /var reiserfs acl,user_xattr 1 2
/dev/hdg1 swap swap pri=42 0 0
devpts /dev/pts devpts mode=0620,gid=5 0 0
proc /proc proc defaults 0 0
usbfs /proc/bus/usb usbfs noauto 0 0
sysfs /sys sysfs noauto 0 0
/dev/cdrom /media/cdrom subfs fs=cdfss,ro,procuid,nosuid,nodev,exec,iocharset=utf8 0 0
/dev/dvdrecorder /media/dvdrecorder subfs fs=cdfss,ro,procuid,nosuid,nodev,exec,iocharset=utf8 0 0

Appreciate the help
 
Old 01-06-2005, 03:23 PM   #4
jmeads
Member
 
Registered: Dec 2004
Location: London
Distribution: Slackware
Posts: 44

Rep: Reputation: 15
Your setup looks ok, though it would be better if possible to put / on the mirrored raid device too.

However you will need to get grub to write out to the other mbr on the second drive, theres a howto on this here

http://lists.us.dell.com/pipermail/l...ly/014331.html

theres a raid monitor daemon you can run called "mdadm" which can alert you to drive and raid problems via email etc
 
Old 01-07-2005, 12:54 PM   #5
Zulu2
LQ Newbie
 
Registered: Dec 2004
Posts: 5

Original Poster
Rep: Reputation: 0
Thanks, jmeads. I'll give it a try.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
setting up raid autodetect for boot? FliesLikeABrick Debian 1 01-25-2006 09:17 AM
Setting up new drives on Raid 1 after install crowmobe Linux - General 9 12-01-2004 02:58 AM
Setting up Raid 0 on RedHat 9.0 Badfish Linux - Software 5 09-29-2004 08:49 PM
Raid setting arkopolo Linux - Software 0 08-06-2003 11:42 AM
Need Help setting up software raid Redhat 8 cmisip Linux - General 5 01-14-2003 07:43 PM


All times are GMT -5. The time now is 10:08 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration