LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 01-02-2013, 08:52 AM   #1
\/4A
Member
 
Registered: Aug 2012
Posts: 112

Rep: Reputation: Disabled
Some advise on RAID 1 pls


Hi,

I'm building an Ubuntu Server 12.04 minimal based machine and have ordered the machine with 2 identical HDD (SATA) of 500GB each.

My aim is to have RAID1 for redundancy, but it's going to be entirely software RAID (no RAID controller).

Firstly, am I to install the RAID during Ubuntu installation or would the RAID be installed after Ubuntu is setup?

Secondly, does RAID 1 mirror a drive or a partition?
 
Old 01-02-2013, 09:10 AM   #2
eantoranz
Senior Member
 
Registered: Apr 2003
Location: Colombia
Distribution: Kubuntu, Debian, Knoppix
Posts: 1,982
Blog Entries: 1

Rep: Reputation: 83
This should help: http://linuxconfig.org/Linux_Software_Raid_1_Setup
 
1 members found this post helpful.
Old 01-02-2013, 01:37 PM   #3
\/4A
Member
 
Registered: Aug 2012
Posts: 112

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by eantoranz View Post
Thanks, eantoranz.
I really needed such a guide,
 
Old 01-07-2013, 07:23 AM   #4
\/4A
Member
 
Registered: Aug 2012
Posts: 112

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by eantoranz View Post
I'm trying to follow instructions on the above guide to setup RAID1 (my PC has one 80GB and the other is a 320GB. I've installed Ubuntu Server 12.04 on the 80GB which should RAID1 (mirror) to the 320GB. Both are SATA).

However, I've reached a stage where we're setting modules to load at boot time and I seem to be getting totally different results from what's expected in the guide.
At stage 4.2 in the guide,
Quote:
lsmod | grep raid1
results to
Code:
raid1           21056 0
md_mod          70388 1 raid1
However, on my machine I get the following
Code:
raid10          35489 0
raid1           35572 0
If I do
Code:
modprobe md
I get
Code:
FATAL: Module md not found.
Yet, the contents of /etc/modules has the following
Code:
loop
lp
rtc
raid1
md
As per the guide,
Quote:
cat /proc/mdstat
results to
Code:
Personalities : [raid1]
unused devices : <none>
Yet on my PC,
Quote:
cat /proc/mdstat
shows
Code:
Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4] [raid10]
unused devices : <none>
Where could I be going wrong?

Last edited by \/4A; 01-07-2013 at 07:34 AM.
 
Old 01-07-2013, 07:31 AM   #5
eantoranz
Senior Member
 
Registered: Apr 2003
Location: Colombia
Distribution: Kubuntu, Debian, Knoppix
Posts: 1,982
Blog Entries: 1

Rep: Reputation: 83
Perhaps md is not the name of the module that should be loaded? I don't have any md module in my host (kubuntu 12.10). WHat I do have is an md directory and some raid mods inside. Does it ring any bell?

Code:
/lib/modules/2.6.32-38-generic-pae/kernel/drivers/md/raid0.ko
/lib/modules/2.6.32-38-generic-pae/kernel/drivers/md/raid1.ko
/lib/modules/2.6.32-38-generic-pae/kernel/drivers/md/raid10.ko
/lib/modules/2.6.32-38-generic-pae/kernel/drivers/md/raid456.ko
/lib/modules/2.6.32-38-generic-pae/kernel/drivers/md/raid6_pq.ko
 
1 members found this post helpful.
Old 01-07-2013, 08:25 AM   #6
\/4A
Member
 
Registered: Aug 2012
Posts: 112

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by eantoranz View Post
Perhaps md is not the name of the module that should be loaded? I don't have any md module in my host (kubuntu 12.10). WHat I do have is an md directory and some raid mods inside. Does it ring any bell?
Hmm. You're right. They're actually all there and that's where the "Personalities" are being loaded from? So I'm a bit confused now. Are you saying that instead of
Quote:
echo raid1 >> /etc/modules
echo md >> /etc/modules
I need /etc/modules/
to load
Code:
/lib/modules/3.2.0-35-generic/kernel/drivers/md/raid1.ko
 
Old 01-07-2013, 08:27 AM   #7
eantoranz
Senior Member
 
Registered: Apr 2003
Location: Colombia
Distribution: Kubuntu, Debian, Knoppix
Posts: 1,982
Blog Entries: 1

Rep: Reputation: 83
I think you should only have raid1 in /etc/modules given that md does not exist (anymore).
 
1 members found this post helpful.
Old 01-07-2013, 08:30 AM   #8
\/4A
Member
 
Registered: Aug 2012
Posts: 112

Original Poster
Rep: Reputation: Disabled
Ah, OK.
So it's like md is taken care of in the /lib/modules/3.2.0-35-generic/kernel/drivers/ ?

and I'm proceeding onto the next level - Prepare sdb for RAID.
 
Old 01-10-2013, 07:23 AM   #9
\/4A
Member
 
Registered: Aug 2012
Posts: 112

Original Poster
Rep: Reputation: Disabled
Well, I was getting difficulty going through, as many of my instances were different from what was shown in the guide, so I decided to do things from scratch (LITERALLY SCRATCH) and this time followed the official Ubuntu Server documentation on RAID1 (https://help.ubuntu.com/12/04/server...tallation.html) and managed to complete the job.

Now the question arises, is RAID actually working, and if so, is it working OK?
I've been looking at the RAID results from Webmin installed on the machine in question and I've attached some snapshots from Webmin giving the status of RAID (just a reminder, my machine has nonidentical drives: one is an 80GB and the other is a 320GB. I've just used 4GB on each drive for SWAP and 76GB on each drive for the actual stuff. The 360GB has an unused partition of 240GB).
http://i50.tinypic.com/291knkw.jpg
http://i49.tinypic.com/3177fy0.png
http://i46.tinypic.com/123mmbr.png
http://i46.tinypic.com/2ecqbew.png
http://i50.tinypic.com/2llkgid.png
http://i49.tinypic.com/2qk08ao.png

Some advise on this, pls.
 
Old 01-10-2013, 08:11 AM   #10
eantoranz
Senior Member
 
Registered: Apr 2003
Location: Colombia
Distribution: Kubuntu, Debian, Knoppix
Posts: 1,982
Blog Entries: 1

Rep: Reputation: 83
cat /proc/mdstat would do, I think
 
  


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
[SOLVED] return -1 of main but get exit code is 255? why? pls advise. youxi600 Linux - Newbie 13 06-30-2011 02:14 PM
[SOLVED] Boot time raid error, need advise to recompile kernel kapz Slackware 12 09-16-2010 07:19 PM
Fatal mistake w/ dd -- can't see data. Pls. advise. applewax Linux - General 4 05-06-2006 04:25 PM
pls pls pls help me ! i'm tired with httpd config on fedora apache 2.0.48 AngelOfTheDamn Fedora 0 01-24-2004 05:12 PM
a few problem pls advise me jeppe Linux - Newbie 2 09-03-2003 02:42 AM


All times are GMT -5. The time now is 06:43 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration