LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 12-05-2008, 07:37 AM   #1
kartikrajus
LQ Newbie
 
Registered: Dec 2008
Posts: 3

Rep: Reputation: 0
RAID 1 Configuration doesn't sync


Hi,

I am new to Linux and trying to configure RAID1 on CentOS 5.2. The configuration is successful and I am able to boot the machine by replacing any of the drive after making some changes in GRUB for the next drive.

But it seems my disks are not syncing together. I don't have any clue. Please help me to understand this.

Thanks in advance!

kartik
 
Old 12-05-2008, 08:10 AM   #2
Andrey@
LQ Newbie
 
Registered: Feb 2008
Distribution: Slackware
Posts: 22

Rep: Reputation: 1
First look to /proc/mdstat.
 
Old 12-09-2008, 01:49 AM   #3
kartikrajus
LQ Newbie
 
Registered: Dec 2008
Posts: 3

Original Poster
Rep: Reputation: 0
Hi,

I looked at the result it gives me following details;

# cat /proc/mdstat

Personalities : [raid1]
md0 : active raid1 hda1[0]
200704 blocks [2/1] [U_]

md1 : active raid1 hda2[0]
488183104 blocks [2/1] [U_]

unused devices: <none>

I am not able to understand on how to sync both the drive.

Please help me.

Best regards,

Ranjeet Rai
 
Old 12-11-2008, 01:16 AM   #4
Andrey@
LQ Newbie
 
Registered: Feb 2008
Distribution: Slackware
Posts: 22

Rep: Reputation: 1
fdisk -l by root
 
Old 12-11-2008, 07:37 AM   #5
kartikrajus
LQ Newbie
 
Registered: Dec 2008
Posts: 3

Original Poster
Rep: Reputation: 0
Question RAID 1 Stop resync

Hi,

I setup RAID again, and found that my both the drive is syncing by running the command #cat /proc/mdstat. The status was showing that it is syncing. I left them syncing and made some changes like installing application and copying data in home folder and on desktop.

Once the resync was complete, I removed slave drive and it booted from the master drive and I was able to found all the changes. Then I removed the master drive and added the previously removed drive. Although, it stop at GRUB> but after making changes in GRUB it started booting and I found all the changes as it is. This shows that initially the RAID was successfully configured.

Now I have added both the drive, I am making some changes to it like copying some other file in home directory and checking on both the drive for it's availability, but it shows on one only.

I checked it's status by running following command;

The output from;

# cat /proc/mdstat

Personalities : [raid1]
md1 : active raid1 hdb2[1] hda2[0]
4096448 blocks [2/2] [UU]

md0 : active raid1 hda1[0]
10241280 blocks [2/1] [U_]

unused devices: <none>

Then;


# fdisk -l

Disk /dev/hda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 1275 10241406 fd Linux raid autodetect
/dev/hda2 1276 1785 4096575 fd Linux raid autodetect

Disk /dev/hdb: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hdb1 * 1 1275 10241406 fd Linux raid autodetect
/dev/hdb2 1276 1785 4096575 fd Linux raid autodetect

Disk /dev/md0: 10.4 GB, 10487070720 bytes
2 heads, 4 sectors/track, 2560320 cylinders
Units = cylinders of 8 * 512 = 4096 bytes

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

Disk /dev/md1: 4194 MB, 4194762752 bytes
2 heads, 4 sectors/track, 1024112 cylinders
Units = cylinders of 8 * 512 = 4096 bytes

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


Then,

]# mdadm --detail /dev/md0
/dev/md0:
Version : 00.90.03
Creation Time : Thu Dec 11 11:28:45 2008
Raid Level : raid1
Array Size : 10241280 (9.77 GiB 10.49 GB)
Used Dev Size : 10241280 (9.77 GiB 10.49 GB)
Raid Devices : 2
Total Devices : 1
Preferred Minor : 0
Persistence : Superblock is persistent

Update Time : Thu Dec 11 18:56:56 2008
State : clean, degraded
Active Devices : 1
Working Devices : 1
Failed Devices : 0
Spare Devices : 0

UUID : 65363e94:f26f3493:2876b70b:af9364ff
Events : 0.1142

Number Major Minor RaidDevice State
0 3 1 0 active sync /dev/hda1
1 0 0 1 removed


and Then;

# mdadm --detail /dev/md1
/dev/md1:
Version : 00.90.03
Creation Time : Thu Dec 11 11:28:43 2008
Raid Level : raid1
Array Size : 4096448 (3.91 GiB 4.19 GB)
Used Dev Size : 4096448 (3.91 GiB 4.19 GB)
Raid Devices : 2
Total Devices : 2
Preferred Minor : 1
Persistence : Superblock is persistent

Update Time : Thu Dec 11 13:04:49 2008
State : clean
Active Devices : 2
Working Devices : 2
Failed Devices : 0
Spare Devices : 0

UUID : e091d7e6:31b1c02c:81370c2f:32087bb4
Events : 0.4

Number Major Minor RaidDevice State
0 3 2 0 active sync /dev/hda2
1 3 66 1 active sync /dev/hdb2

Please, help me to resync both the drive.

Regards,

Kartikrajus
 
  


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
Raid 1 configuration anandagarwal Linux - General 1 12-19-2006 05:55 PM
HardDrive MD0 Raid Out of Sync Suse 10.2 carl0ski SUSE / openSUSE 0 12-12-2006 02:59 AM
Will RAID-1 sync changes made under another OS ? cbonar Linux - Hardware 0 01-08-2005 12:20 PM
RAID 1 / Partition won't sync? georgee Linux - Software 0 10-23-2004 06:26 AM
Raid 1 stopping sync problem after swap guanyu Linux - Networking 0 03-07-2003 01:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07: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
Open Source Consulting | Domain Registration