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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
01-05-2005, 02:23 PM
|
#1
|
LQ Newbie
Registered: Dec 2004
Posts: 5
Rep:
|
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
|
|
|
01-06-2005, 07:58 AM
|
#2
|
Member
Registered: Dec 2004
Location: London
Distribution: Slackware
Posts: 44
Rep:
|
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
|
|
|
01-06-2005, 01:53 PM
|
#3
|
LQ Newbie
Registered: Dec 2004
Posts: 5
Original Poster
Rep:
|
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
|
|
|
01-06-2005, 02:23 PM
|
#4
|
Member
Registered: Dec 2004
Location: London
Distribution: Slackware
Posts: 44
Rep:
|
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
|
|
|
01-07-2005, 11:54 AM
|
#5
|
LQ Newbie
Registered: Dec 2004
Posts: 5
Original Poster
Rep:
|
Thanks, jmeads. I'll give it a try.
|
|
|
All times are GMT -5. The time now is 06:32 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|