LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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 11-06-2008, 05:08 AM   #1
roders22
Member
 
Registered: Feb 2007
Posts: 34

Rep: Reputation: 15
RAID1 how does it mirror


Ok i've setup RAID1 of my system, where "sda1" will mirror itself on "sdb1", i did that yesterday, and when i type cat /proc/mdstat, it was showing me something is sync etc... Now what i want to knw is, how does the sync work i.e. How does the system know when to mirror?? Is there command line for it?? To be more specific how do i get "sda1" to sync/mirror onto "sdb1" every 12 hours?? Can anyone guide me please.

In root mailbox i got this message, should i worry or is it normal??
Quote:
This is an automatically generated mail message from mdadm
running on mau.appletree.office

A DegradedArray event had been detected on md device /dev/md1.

Faithfully yours, etc.

P.S. The /proc/mdstat file currently contains the following:

Personalities : [raid1]
md0 : active raid1 sdb1[1] sda1[0]
10241280 blocks [2/2] [UU]

md1 : active raid1 sda2[0]
478142528 blocks [2/1] [U_]

unused devices: <none>
 
Old 11-06-2008, 05:18 AM   #2
DT0X
LQ Newbie
 
Registered: Nov 2008
Location: South-West UK
Distribution: Fedora, RHEL 4 and 5, Ubuntu 7 and AIX
Posts: 12

Rep: Reputation: 0
What is the system? What version of what OS?

If its basic software RAID 1 then it's all done behind the scenes (constant mirror of one disk to another - so if you lose one disk the other will still run and no data will be lost) and as far as you or me need to know, everytime a write is made to disk it is instantly mirrored to your second disk (well maybe not instantly but near enough)...

You can run the command mdadm --query --detail /dev/md0 for more info.

Thats all I can say as far as the information you've given and what that means to me!

As for the error - degraded means one of the disks is already missing from the array, are there any more errors related to this? This basically would mean your RAID wasnt working if this was the case.

Last edited by DT0X; 11-06-2008 at 05:24 AM.
 
Old 11-06-2008, 05:39 AM   #3
roders22
Member
 
Registered: Feb 2007
Posts: 34

Original Poster
Rep: Reputation: 15
I am not sure what you mean by "What is the System?" The OS is centos5.
But yesterday as soon as i finished the installation everything worked fine, it was sync nicely then i tested by unplug 1 of the HD and both of them was working. Today i've installed a few bits and transferred a few files. Tested again checked on the other HD to see if it was mirrored there but none of file and updates was present there.
Quote:
[root@mau ~]# mdadm --query --detail /dev/md0
Version : 00.90.03
Creation Time : Wed Nov 5 19:12:13 2008
Raid Level : raid1
Array Size : 10241280 (9.77 GiB 10.49 GB)
Device Size : 10241280 (9.77 GiB 10.49 GB)
Raid Devices : 2
Total Devices : 1
Preferred Minor : 0
Persistence : Superblock is persistent

Update Time : Thu Nov 6 15:34:09 2008
State : clean, degraded
Active Devices : 1
Working Devices : 1
Failed Devices : 0
Spare Devices : 0

UUID : 0e31d364:7b6cf8e7:cebf8568:6ac74d63
Events : 0.32

Number Major Minor RaidDevice State
0 0 0 0 removed
1 8 17 1 active sync /dev/sdb1
It seems that my raid doesn't work anymore. How do i get it back?
 
Old 11-06-2008, 05:53 AM   #4
DT0X
LQ Newbie
 
Registered: Nov 2008
Location: South-West UK
Distribution: Fedora, RHEL 4 and 5, Ubuntu 7 and AIX
Posts: 12

Rep: Reputation: 0
I just used the word system because it was how you began your first post, sorry to confuse.

To add your disk back into the array see this document http://tldp.net/HOWTO/html_single/So...D-HOWTO/#ss6.3 towards the bottom with raidhotadd etc...

Looks like someone had similar issues (albeit on Debian) here http://www.linuxquestions.org/questi...-array-475053/


HTH
 
  


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
Have software raid1, but like to change to raid1+0 or 0+1, how? spaceuser Debian 8 03-17-2008 02:07 PM
RAID1 = Is It Working? carlosinfl Linux - Hardware 8 02-15-2007 06:28 PM
LXer: How To Create A Local Debian/Ubuntu Mirror With apt-mirror LXer Syndicated Linux News 0 01-04-2007 05:33 PM
break raid1 mirror hoover93 Linux - Software 0 10-05-2005 10:55 AM
Soft RAID1 (mirror) rebuild GAVollink Linux - Hardware 4 04-25-2003 08:18 AM


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