Quote:
Originally Posted by pinniped
Can you post the statistics from 'mdadm'? Just to make sure the drives are both used in the one md, etc. At the moment it sounds like the discs are either not synced or else they are not assembled as a RAID.
If you have a software RAID controller, did you set its function to 'normal' (not RAID)? The 'RAID' mode doesn't work with Linux; you need to leave teh disks as 2 separate devices and let Linux handle everything.
After the devices have been synced (which can take many hours), then when a file is copied you should see the duplicate appear in a fairly short time, although a very small file can take a few minutes - just to be sure you can call 'sync' to force the md driver to finish writing things.
|
Thanks for your comments. Here's the output of fdisk -l and /proc/mdstat:
sh-3.1# fdisk -l
Disk /dev/hda: 17.1 GB, 17179803648 bytes
16 heads, 63 sectors/track, 33288 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes
Device Boot Start End Blocks Id System
/dev/hda1 * 1 9688 4882720+ 83 Linux
/dev/hda2 9689 13563 1953000 82 Linux swap / Solaris
/dev/hda3 13564 23251 4882752 83 Linux
/dev/hda4 23252 32939 4882752 83 Linux
Disk /dev/hdb: 17.1 GB, 17179803648 bytes
16 heads, 63 sectors/track, 33288 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes
Device Boot Start End Blocks Id System
/dev/hdb1 1 9689 4883224+ 83 Linux
/dev/hdb2 9690 10659 488880 82 Linux swap / Solaris
/dev/hdb3 10660 20348 4883256 fd Linux raid
autodetect
/dev/hdb4 20349 30037 4883256 fd Linux raid
autodetect
Disk /dev/md0: 5000 MB, 5000445952 bytes
2 heads, 4 sectors/track, 1220812 cylinders
Units = cylinders of 8 * 512 = 4096 bytes
Disk /dev/md0 doesn't contain a valid partition table
Disk /dev/md1: 500 MB, 500604928 bytes
2 heads, 4 sectors/track, 122218 cylinders
Units = cylinders of 8 * 512 = 4096 bytes
Disk /dev/md1 doesn't contain a valid partition table
sh-3.1# cat /proc/mdstat
Personalities : [raid1]
md1 : active raid1 hda4[1] hda3[0]
488872 blocks super 1.0 [2/2] [UU]
md0 : active raid1 hdb4[1] hdb3[0]
4883248 blocks super 1.0 [2/2] [UU]
unused devices: <none>
I just don't konw why I keep getting "Disk /dev/md0 doesn't contain a valid partition table" error message. I formatted the drive with mkfs.ext3 when I created it too but it keeps giving this error message.
help!!!
Thanks