Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
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.
|
 |
05-21-2014, 08:32 PM
|
#1
|
Member
Registered: Oct 2006
Location: California, USA
Distribution: Mint 16, Lubuntu 14.04, Mythbuntu 14.04, Kubuntu 13.10, Xubuntu 10.04
Posts: 554
Rep:
|
Mdadm Raid 1 - Do I have three raids or one raid with 3 partitons?
What is the recommended setup?
Ubuntu alternate 14.04. I want to setup a raid 1 with 3 partitions: one for boot, one for swap and one for data.
Should I create one raid and then partition the /dev/md0 into 3 partitions (which the installer can't do), or should I create 3 separate raid devices: md0, md1, and md2?
Which is recommended and why?
-Thanks
|
|
|
05-22-2014, 07:45 AM
|
#2
|
LQ Guru
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,426
|
How many physical disks do you actually have?
If you only have 2, create /dev/md0 and partition into 3: "/" (inc boot), swap, "data".
The point of RAID is to protect you from HDD failure, so creating 3 'devices' for one pair of disks doesn't really make sense.
(I need hardly add that RAID is NOT a backup system.)
HTH
|
|
|
05-22-2014, 10:15 AM
|
#3
|
Member
Registered: Oct 2006
Location: California, USA
Distribution: Mint 16, Lubuntu 14.04, Mythbuntu 14.04, Kubuntu 13.10, Xubuntu 10.04
Posts: 554
Original Poster
Rep:
|
Ya, two disks. My point is how do I partition the raid into 3 partitions from the ubuntu alternate installer? All I see that I can do is create three equal partitions on each drive and create 3 raid devices.
I'd like to just create one big raid device and partition it into 3 partitions...but I must be missing something because I can't seem to figure out how to do that in the installer.
|
|
|
05-22-2014, 11:44 AM
|
#4
|
LQ Addict
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841
|
|
|
|
05-22-2014, 12:16 PM
|
#5
|
Member
Registered: Oct 2006
Location: California, USA
Distribution: Mint 16, Lubuntu 14.04, Mythbuntu 14.04, Kubuntu 13.10, Xubuntu 10.04
Posts: 554
Original Poster
Rep:
|
So this sort of proves my point:
According to those instructions, you have md0, md5, and md6 - 3 raid devices.
If I make one big raid partition, then boot up a live ubuntu dvd, install mdadm and then open gparted. I can then partition the md0 raid 1 "device" into 3 partitions.
So there's obviously two ways to do this. Why does the installer want 3 raid devices? I think it'd be simpler to just worry about one raid device and have that have multiple partitions.
If I go with hardware raid, that is what would happen: The hardware raid utility would create one raid 1 using the two drives. Then ubuntu would make the partitions. So you'd have only one raid device but multiple partitions. Is software raid different for this?
What am I missing?
|
|
|
05-22-2014, 01:09 PM
|
#6
|
LQ Addict
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841
|
You have to read more carefully it says different.
It said for 2 disk raid setup partition disk 1 then setup raid.
|
|
|
05-22-2014, 02:03 PM
|
#7
|
LQ Guru
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,196
|
Most tutorial explain that first the partitions on the hard disks are created (sda1, sda2, sdb1, sdb2...) and each partition set is raided. So sda1+sda2 becomes md0, sdb1+sdb2 become md1.
Chrism01 proposes to first create one partition of the size of the hard disk, and then partition md0 into mda0, mda1.. etc.
Are mda0, mda1 correct device names anyway?
What would be the advantage of that approach?
jlinkels
|
|
|
05-22-2014, 02:09 PM
|
#8
|
Member
Registered: Oct 2006
Location: California, USA
Distribution: Mint 16, Lubuntu 14.04, Mythbuntu 14.04, Kubuntu 13.10, Xubuntu 10.04
Posts: 554
Original Poster
Rep:
|
Ok, so on one of my computers I setup the raid outside the installer and then went to the installer and partitioned my md0 device into 3 partitions.
It installed and boots just fine. Now when I boot up and check mdadm I have one raid device to monitor. Simpler than monitoring 3 raid devices.
On one of my servers I did the same idea, but have 4 drives and partitoned 2 raid 1's and one raid 5. So that server has 3 raid devices. The ubuntu installer basically would have led me to setup 6 raid devices.
Why do they go for more raid devices when you can easily do it in less devices? I only want to have one device so that if a drive goes bad and I put in a new one, I only run one sync command.
I guess my question now is why do they do it this way? It looks for certain that you are forced this route by just using the installer.
|
|
|
05-22-2014, 04:05 PM
|
#9
|
LQ Addict
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841
|
Quote:
Why do they go for more raid devices when you can easily do it in less devices? I only want to have one device so that if a drive goes bad and I put in a new one, I only run one sync command.
|
If you have 2 devices it is already synced, jusr take the bad drive out. Also how can you sync a bad drive if you can't mount it?
|
|
|
05-23-2014, 12:11 AM
|
#10
|
Member
Registered: Oct 2006
Location: California, USA
Distribution: Mint 16, Lubuntu 14.04, Mythbuntu 14.04, Kubuntu 13.10, Xubuntu 10.04
Posts: 554
Original Poster
Rep:
|
We're getting off topic.
1. Why are there two options for raid: multiple raids or one raid with multiple partitions?
2. Why does ubuntu's alternate installer only allow the second option?
Those are really my main questions. I am able to make either option work, but I want to make sure I am choosing the industry standard, tried and true method. If anyone can chime in on this one, please do.
|
|
|
05-23-2014, 03:15 PM
|
#12
|
Member
Registered: Oct 2006
Location: California, USA
Distribution: Mint 16, Lubuntu 14.04, Mythbuntu 14.04, Kubuntu 13.10, Xubuntu 10.04
Posts: 554
Original Poster
Rep:
|
1. I like choice - that's why I choost linux
2. That is the same example as ubuntu's. Three raids, not one raid with partitions inside it.
|
|
|
All times are GMT -5. The time now is 01:47 PM.
|
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
|
|