LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 01-04-2005, 04:18 PM   #1
hektor
LQ Newbie
 
Registered: Dec 2004
Location: Greeley, CO, USA
Distribution: DebianEdu/Skolelinux 2.0r0 i386
Posts: 9

Rep: Reputation: 0
Needed: Mandrake 10 Raid 1 Setup How To


I'm setting up a Mandrake 10.1 OE server and would like to configure two identical drives using RAID 1. I'm new to linux and am accustomed to the Windows option of simply "mirroring" a selected drive, but alas this isn't an option! The Mandrake installer is very good, but after setting up hda as a "Linux Raid", I'm not sure what to do next with hdb and the Raid md0 devices. Any help will be appreciated! TIA
 
Old 01-21-2005, 01:32 AM   #2
Emmanuel_uk
Senior Member
 
Registered: Nov 2004
Distribution: Mandriva mostly, vector 5.1, tried many.Suse gone from HD because bad Novell/Zinblows agreement
Posts: 1,606

Rep: Reputation: 53
raid0 recipee in Mandrake 10.1

Hi,

Did you look at the raid howto at www.tldp.org
http://www.tldp.org/HOWTO/Software-RAID-HOWTO.html

I am a complete newbee, but I managed to install a raid0
with Mandrake 10.1 (two sata drives) with Sil3112A controller.
Saying that, it was not that obvious, and I struggled very much
with drakdisk. I had much less problems with the command line.
Saying that I am not sure how the suberblock works
how to get the magic to be correct nor what the reserved space
for the super user is for / can be accessed.

I will post more in the next 2 weeks if I can and/or will edit this
This will include sata HD benchmark raid and non raid
Version for now: very alpha

Patience, coffee, reboot and reboot again to learn
usefull commands (as root):
lshw
fdisk -l ( l for Lima)
cat /etc/fstab
cat /etc/mtab
kedit /etc/fstab &
mount -a (mount all)
man mdadm (check you have installed mdadm from the distro)
learn how to use vim or vi command line editor
(this will be usefull if the boot stops without the graphics interface
and you need to edit fstab to change the mount option of the
raid or one of its drive from 1 2 to 0 0 )

My howto for mandrake 10.1:
- check 2 available single drives and benchmark if possible (tiobench or bonnie?)
- check HD controller support raid0 or 1
- backup main HD (optional)
- backup fstab (optional)
- configure chunk size and raid set in bios of controller card (not 100% sure it is absolutely needed)
- login as root in a terminal
- use drakedisk to individually format the 2 raid HD (format and type as ext 3 journalised)
do not give a mount point - do not partition as linux raid (need to check this)
(you may be able to skip this) using linux raid caused me problens
- back to terminal check with fdisk -l that HDs are here
- edit fstab or unmount the 2 drives that are to be put in the raid array
- create array with mdam build option and call array say /dev/md0
here again come the chunk size, I understand 32k would be best to
avoid all files to start on the first HD?
- possibly partition raid array with fdisk or other
- definetely format /dev/md0 with mke2fs I think it is called
see the suggestion in the tldp howto. I think ext 3 would be ok
- now mount dev/md0 on /myarray
This may be an edit fstab job (last line?) with something of the like
/dev/md0 /myarray ext3 auto,users,suid,nodev 1 2
or whatever you know is ok, 1 2 might be a problem if like me something
is not quite right in the partition/journal/superblock
- do a mdadm examine option
- with konqueror check the level of access to /myarray for various users
check you can write to arrea
- write in /etc a mdadm.conf file


Let make this a better howto with others experience
Looking forward to comments
 
Old 01-21-2005, 02:29 AM   #3
bunnadik
Member
 
Registered: Jan 2005
Location: Övik, Sweden
Distribution: MDK 10.1
Posts: 450

Rep: Reputation: 30
I haven't installed MDK to raid but I can perhaps help a bit.
The md0 device is the result of merging two HD's to a raid system. In short what you do is:

1) create an equally big partition on each disk ( /dev/hda1 and /dev/hdb1 for instance)
2) Tell the system to merge them to a raid device ( /dev/md0)
3) format /dev/md0 with a suitable filesystem

- Peder
 
  


Reply



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
NEEDED NOW : How to read Linux RAID partitions ? johnlefevre Mandriva 19 10-10-2005 05:31 AM
NEEDED NOW : How to read Linux RAID partitions ? johnlefevre Linux - Newbie 4 10-08-2005 06:41 PM
HPT370 RAID drivers for Mandrake needed Dieselboy_tm Mandriva 1 12-28-2004 01:02 AM
raid driver needed for mandrake 10 sikkalgopal Linux - Hardware 0 08-17-2004 10:53 PM
Grub device map needed for promise raid terrance Linux - Software 0 03-15-2004 05:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 03:25 PM.

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
Open Source Consulting | Domain Registration