Fedora Linux Support Community & Resources Center
  #1  
Old 9th June 2010, 08:14 AM
4colordesign Offline
Registered User
 
Join Date: Jun 2010
Posts: 16
windows_xp_2003ie
resync two raid1 hard disk in fedora 12

I have two 80 GB IDE hard disk. I have create raid1 partition in both drive using
http://www.ping.co.il/node/1/ link. raid is working fine. But i have copy some data on one hard disk (md0) but this data is not autometically copy in second hard disk(md1). I want when data is write on one hard disk, this data autometically write in second hard disk.

Please help me. I am new for linux.
Reply With Quote
  #2  
Old 9th June 2010, 10:06 AM
markkuk Offline
Registered User
 
Join Date: Apr 2005
Location: Finland
Posts: 5,075
windows_xp_2003firefox
Re: resync two raid1 hard disk in fedora 12

Md0 and md1 are two RAID devices, not hard drives. Anything written to either md0 or md1 is written to both physical hard drives (if you use RAID 1).
Reply With Quote
  #3  
Old 9th June 2010, 10:24 AM
4colordesign Offline
Registered User
 
Join Date: Jun 2010
Posts: 16
linuxfedorafirefox
Re: resync two raid1 hard disk in fedora 12

Thank you markkuk for reply,

I am using RAID 1 but data not written in both hard drives
Reply With Quote
  #4  
Old 9th June 2010, 04:52 PM
markkuk Offline
Registered User
 
Join Date: Apr 2005
Location: Finland
Posts: 5,075
windows_xp_2003firefox
Re: resync two raid1 hard disk in fedora 12

What makes you think that the data isn't written to both drives? Please provide details about your configuration and an example.
Reply With Quote
  #5  
Old 10th June 2010, 07:04 AM
4colordesign Offline
Registered User
 
Join Date: Jun 2010
Posts: 16
windows_xp_2003ie
Re: resync two raid1 hard disk in fedora 12

Thank you markkuk for reply,

For example I am copy 1 GB or more data in main hard disk where fedora 12 boots. This data automatically copy in second hard disk in RAID 1 right? But this data cannot copy in other hard disk in my case. Can I mistake somewhere? I set up RAID 1 using http://www.ping.co.il/node/1/ link. Fedora 12 boots from both drives.
My configuration is 1 GB RAM - 80 GB IDE hard disk.
Reply With Quote
  #6  
Old 10th June 2010, 08:48 AM
leigh123linux
Guest
 
Posts: n/a
linuxfedorafirefox
Re: resync two raid1 hard disk in fedora 12

If you want mirror Raid both hard drives need to be members of the same /dev/md device.

http://www.cyberciti.biz/faq/linux-c...id-one-arrays/
Reply With Quote
  #7  
Old 10th June 2010, 09:56 AM
4colordesign Offline
Registered User
 
Join Date: Jun 2010
Posts: 16
windows_xp_2003firefox
Re: resync two raid1 hard disk in fedora 12

Thank you leigh123linux for reply,

No, i do not want mirror raid both hard drives to be members of the same /dev/md device.
I want two device /dev/md0 and /dev/md1.
Reply With Quote
  #8  
Old 10th June 2010, 10:20 AM
markkuk Offline
Registered User
 
Join Date: Apr 2005
Location: Finland
Posts: 5,075
windows_xp_2003firefox
Re: resync two raid1 hard disk in fedora 12

What do you mean by "main hard drive"? If you followed the article you linked to then your root filesystem is a RAID array and anything written to it will be on both hard drives, as I already told in message #2. Post the output of "fdisk -l", "cat /proc/mdstat", "blkid" and "mount".
Reply With Quote
  #9  
Old 10th June 2010, 10:46 AM
4colordesign Offline
Registered User
 
Join Date: Jun 2010
Posts: 16
windows_xp_2003ie
Re: resync two raid1 hard disk in fedora 12

Thank you markkuk for reply,

[root@localhost ~]# cat /proc/mdstat
Personalities : [raid1]
md1 : active raid1 sda3[1]
76758144 blocks [2/1] [_U]

md0 : active raid1 sda1[1]
204736 blocks [2/1] [_U]

unused devices: <none>


[root@localhost ~]# fdisk -l

Disk /dev/sda: 79.9 GB, 79890043904 bytes
255 heads, 63 sectors/track, 9712 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xcfcbcfcb

Device Boot Start End Blocks Id System
/dev/sda1 1 26 204800 fd Linux raid autodetect
Partition 1 does not end on cylinder boundary.
/dev/sda2 26 157 1048576 82 Linux swap / Solaris
Partition 2 does not end on cylinder boundary.
/dev/sda3 157 9712 76758232+ fd Linux raid autodetect

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

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

Disk /dev/md1: 78.6 GB, 78600339456 bytes
2 heads, 4 sectors/track, 19189536 cylinders
Units = cylinders of 8 * 512 = 4096 bytes
Disk identifier: 0x00000000

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


[root@localhost ~]# blkid
/dev/sda1: UUID="21035da9-f6af-dfa2-bfe7-8010bc810f04" TYPE="linux_raid_member"
/dev/sda2: UUID="fef6086a-032a-447f-a2fd-88db202e0a66" TYPE="swap"
/dev/sda3: UUID="4e970044-2396-87be-bfe7-8010bc810f04" TYPE="linux_raid_member"
/dev/md0: UUID="0565d907-8d7e-4d19-95e2-c1f83498904e" TYPE="ext3"
/dev/md1: UUID="c60031ea-2915-4a1a-a8b8-80a725d0516a" TYPE="ext3"


[root@localhost ~]# mount
/dev/md1 on / type ext3 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
tmpfs on /dev/shm type tmpfs (rw,rootcontext="system_u:object_r:tmpfs_t:s0")
/dev/md0 on /boot type ext3 (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
gvfs-fuse-daemon on /root/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev)
Reply With Quote
  #10  
Old 10th June 2010, 11:56 AM
leigh123linux
Guest
 
Posts: n/a
linuxfedorafirefox
Re: resync two raid1 hard disk in fedora 12

Quote:
Originally Posted by 4colordesign View Post
thank you markkuk for reply,

[root@localhost ~]# cat /proc/mdstat
personalities : [raid1]
md1 : Active raid1 sda3[1]
76758144 blocks [2/1] [_u]

md0 : Active raid1 sda1[1]
204736 blocks [2/1] [_u]

unused devices: <none>


[root@localhost ~]# fdisk -l

disk /dev/sda: 79.9 gb, 79890043904 bytes
255 heads, 63 sectors/track, 9712 cylinders
units = cylinders of 16065 * 512 = 8225280 bytes
disk identifier: 0xcfcbcfcb

device boot start end blocks id system
/dev/sda1 1 26 204800 fd linux raid autodetect
partition 1 does not end on cylinder boundary.
/dev/sda2 26 157 1048576 82 linux swap / solaris
partition 2 does not end on cylinder boundary.
/dev/sda3 157 9712 76758232+ fd linux raid autodetect

disk /dev/md0: 209 mb, 209649664 bytes
2 heads, 4 sectors/track, 51184 cylinders
units = cylinders of 8 * 512 = 4096 bytes
disk identifier: 0x00000000

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

disk /dev/md1: 78.6 gb, 78600339456 bytes
2 heads, 4 sectors/track, 19189536 cylinders
units = cylinders of 8 * 512 = 4096 bytes
disk identifier: 0x00000000

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


[root@localhost ~]# blkid
/dev/sda1: Uuid="21035da9-f6af-dfa2-bfe7-8010bc810f04" type="linux_raid_member"
/dev/sda2: Uuid="fef6086a-032a-447f-a2fd-88db202e0a66" type="swap"
/dev/sda3: Uuid="4e970044-2396-87be-bfe7-8010bc810f04" type="linux_raid_member"
/dev/md0: Uuid="0565d907-8d7e-4d19-95e2-c1f83498904e" type="ext3"
/dev/md1: Uuid="c60031ea-2915-4a1a-a8b8-80a725d0516a" type="ext3"


[root@localhost ~]# mount
/dev/md1 on / type ext3 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
tmpfs on /dev/shm type tmpfs (rw,rootcontext="system_u:object_r:tmpfs_t:s0")
/dev/md0 on /boot type ext3 (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
gvfs-fuse-daemon on /root/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev)

lol ......
Reply With Quote
  #11  
Old 10th June 2010, 01:08 PM
tsorvoja Offline
Registered User
 
Join Date: Jul 2004
Location: Finland
Age: 34
Posts: 380
linuxfedorafirefox
Re: resync two raid1 hard disk in fedora 12

4colordesign it seems that you have created two RAID-1 devices /dev/md0 and /dev/md1. If you want one RAID-1 device which contains two disks then you should include e.g. /dev/sda1 and /devsdb1 to /dev/md0.
Currently your configuration is missing the other pair of RAID-1 configuration. See:
<snip>
personalities : [raid1]
md1 : Active raid1 sda3[1]
76758144 blocks [2/1] [_u] <-- this should be uu not _u

md0 : Active raid1 sda1[1]
204736 blocks [2/1] [_u] <-- this should be uu not _u
</snip>

Hopefully this clears things more up that previous "lol"...

---------- Post added at 03:08 PM CDT ---------- Previous post was at 03:04 PM CDT ----------

In addition: you can check the status of raid devices with "cat /proc/mdstat".
Reply With Quote
  #12  
Old 14th June 2010, 10:24 AM
4colordesign Offline
Registered User
 
Join Date: Jun 2010
Posts: 16
linuxfedorafirefox
Re: resync two raid1 hard disk in fedora 12

Thanks tsorvoja for reply,

my problem is solve.
thanks again
Reply With Quote
Reply

Tags
disk, fedora, hard, raid1, resync

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
FC10 RAID1 Hard Drives - Install problems with swap codechris Installation, Upgrades and Live Media 0 3rd April 2009 05:17 PM
kickstart - skip initial soft RAID1 resync jfh Installation, Upgrades and Live Media 0 13th October 2008 01:58 PM
[HOW-TO] Setup disk software mirroring (Raid1) zeky Guides & Solutions (No Questions) 0 3rd November 2005 09:52 AM
grub hard disk error after removing secondary hard disk with fc2 installed s86c EOL (End Of Life) Versions 3 6th March 2005 07:13 AM


Current GMT-time: 13:39 (Thursday, 18-09-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat