LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 09-17-2008, 12:40 AM   #1
kernel99
LQ Newbie
 
Registered: Nov 2003
Posts: 24

Rep: Reputation: 1
Software RAID which one mdadm or mkraid


i'm in a process of building software RAID in centOS. i'm in a learning phase currently.
i used mdadm inorder to create different RAID successfully.
i could fail the drive and add in.

is mdadm is more useful than mkraid?

also if i would like to create multiple raids and combine one should i use assembly mode in mdadm?
in general practice is it good to combine two or more raid levels in one....
ifnot in which case is it more useful combining two or more raids.

would be glad to hear.

thanks
kernel99
 
Old 09-17-2008, 09:38 AM   #2
kenneho
Member
 
Registered: May 2003
Location: Oslo, Norway
Distribution: Ubuntu, Red Hat Enterprise Linux
Posts: 655

Rep: Reputation: 40
Quote:
Originally Posted by kernel99 View Post
i'm in a process of building software RAID in centOS. i'm in a learning phase currently.
i used mdadm inorder to create different RAID successfully.
i could fail the drive and add in.

is mdadm is more useful than mkraid?

also if i would like to create multiple raids and combine one should i use assembly mode in mdadm?
in general practice is it good to combine two or more raid levels in one....
ifnot in which case is it more useful combining two or more raids.

would be glad to hear.

thanks
kernel99

I've attended some Red Hat training, and they focus on mdadm. I'm sure this didn't answer you question, but hopefully it was of some help.
 
Old 09-17-2008, 05:36 PM   #3
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL
Distribution: Funtoo
Posts: 6,926

Rep: Reputation: 128Reputation: 128
Quote:
Originally Posted by kernel99 View Post
also if i would like to create multiple raids and combine one should i use assembly mode in mdadm?
in general practice is it good to combine two or more raid levels in one....
ifnot in which case is it more useful combining two or more raids.

would be glad to hear.

thanks
kernel99
Maybe I'm not understanding your question, but here's my little experience.

My distro doesn't even have mkraid, so I never considered it. And this is the
first I've heard of assembly mode in mdadm, so I obviously didn't use it.

When I did some research into RAID in Linux, the choices I read about were
software RAID versus hardware RAID. For the purpose of this RAID (just my
personal desktop machine), I didn't care to spend a lot of money on extra
hardware. Plus, my ~/ and all extra software and kernels I build are backed
up every night. So there's really nothing I'm risking.

If I were to build RAID for a mission critical server, I'd definitely buy
the much more expensive hardware and SCSI disks.

I'm also not sure what you mean by "combine two or more RAID levels in one?"
So here's a glance at my RAID, in case it sheds any light. And also, if a
wiser man than I sees something amiss, he can enlighten me.
Code:
RAID1 - /dev/md0 - swap
RAID1 - /dev/md1 - /boot
RAID0 - /dev/md2 - LVM encrypted with LUKS containing / and ~/
Code:
mingdao@silas:~$ sudo /sbin/fdisk -l

Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x681acfcf

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1         122      979933+  fd  Linux raid autodetect
/dev/sda2             123         134       96390   fd  Linux raid autodetect
/dev/sda3             135       12292    97659135   fd  Linux raid autodetect

Disk /dev/sdb: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x18142ccc

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1         122      979933+  fd  Linux raid autodetect
/dev/sdb2             123         134       96390   fd  Linux raid autodetect
/dev/sdb3             135       12292    97659135   fd  Linux raid autodetect

Disk /dev/md0: 1003 MB, 1003356160 bytes
2 heads, 4 sectors/track, 244960 cylinders
Units = cylinders of 8 * 512 = 4096 bytes
Disk identifier: 0x00000000

Disk /dev/md0 doesn't contain a valid partition table

Disk /dev/md1: 98 MB, 98631680 bytes
2 heads, 4 sectors/track, 24080 cylinders
Units = cylinders of 8 * 512 = 4096 bytes
Disk identifier: 0x00000000

Disk /dev/md1 doesn't contain a valid partition table

Disk /dev/md2: 200.0 GB, 200005648384 bytes
2 heads, 4 sectors/track, 48829504 cylinders
Units = cylinders of 8 * 512 = 4096 bytes
Disk identifier: 0x08040000

Disk /dev/md2 doesn't contain a valid partition table
 
Old 09-17-2008, 05:50 PM   #4
mostlyharmless
Senior Member
 
Registered: Jan 2008
Distribution: Arch/Slackware/Knoppix
Posts: 1,761
Blog Entries: 14

Rep: Reputation: 267Reputation: 267Reputation: 267
mdadm is usually recommended. mkraid is the older raidtools command.
The assemble command is used to build arrays,and there is no problem using "matrix raid" 1+0, or 1+1 or whatever it is you desire.

Quote:
i could fail the drive and add in.
Sounds like you want data redundancy, not speed, so you want RAID 1 or 5 not 0. I'd recommend reading up on RAID in general - there are a lot of threads on the subject here as well as on tldp.
 
  


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
Software Raid 5 (md) recovery using mdadm fakeroot Linux - Server 24 04-15-2013 10:19 AM
Why can't I mount this md0 raid? (mdadm and software raid) cruiserparts Linux - Software 35 01-05-2013 04:35 PM
Linux Software RAID 1+0 (using mdadm) barrulus Fedora 2 02-07-2006 10:21 AM
Software RAID with mdadm problems... robbow52 Debian 2 04-19-2004 08:06 PM
mdadm mail with software RAID brucehohl Linux - Software 1 12-20-2003 07:17 AM


All times are GMT -5. The time now is 10:00 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