Hi,
I have got say 6 partitions on sda.
I have created 6 partitions on sdb of equal size.
My /etc/raidtab file is as follows :
raiddev /dev/md0
raid-level 1
nr-raid-disks 6
nr-spare-disks 0
persistent-superblock 1
chunk-size 4
device /dev/sdb1 raid-disk 0
device /dev/sdb5 raid-disk 1
device /dev/sdb6 raid-disk 2
device /dev/sdb7 raid-disk 3
device /dev/sdb9 raid-disk 4
device /dev/sdb10 raid-disk 5
device /dev/sdb11 raid-disk 6
If I mount /dev/md0 and If I type df -h it shows /dev/md0 mounted but the disk size is
shown as only 25MB. Both the HDD are of 9GB each.
How should I confirm whether Raid1 is working properly on our server ?
How just by specifying sdb1, sdb2 etc. raid knows that I am mirroring sda1, sda2 etc.
to sdb1, sdb2 etc. respectively. Am I doing anything wrong here ?
Unless I am sure that the other HDD is exact mirror copy of the first, I could not
depend on this raid.
My /proc/mdstat shows the following after I start raid through init scripts by giving
the command
raidstart /dev/md0
<SNIP>
Personalities : [raid1]
read_ahead 1024 sectors
md0 : active raid1 sdb11[6] sdb9[5] sdb7[4] sdb6[3] sdb5[2] sdb1[1] sdb10[0] 26496
blocks [7/7] [UUUUUUU]
unused devices: <none>
<SNIP>
My partitions are as follows :
------------------------------
Disk /dev/sda: 64 heads, 32 sectors, 8683 cylinders
Units = cylinders of 2048 * 512 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 26 26608 83 Linux
/dev/sda2 27 8683 8864768 5 Extended
/dev/sda5 27 4027 4097008 83 Linux
/dev/sda6 4028 6028 2049008 83 Linux
/dev/sda7 6029 7029 1025008 83 Linux
/dev/sda8 7030 7530 513008 82 Linux swap
/dev/sda9 7531 8031 513008 83 Linux
/dev/sda10 8032 8532 513008 83 Linux
/dev/sda11 8533 8683 154608 83 Linux
Disk /dev/sdb: 64 heads, 32 sectors, 8683 cylinders
Units = cylinders of 2048 * 512 bytes
Device Boot Start End Blocks Id System
/dev/sdb1 1 26 26608 83 Linux
/dev/sdb2 27 8683 8864768 5 Extended
/dev/sdb5 27 4027 4097008 83 Linux
/dev/sdb6 4028 6028 2049008 83 Linux
/dev/sdb7 6029 7029 1025008 83 Linux
/dev/sdb8 7030 7530 513008 82 Linux swap
/dev/sdb9 7531 8031 513008 83 Linux
/dev/sdb10 8032 8532 513008 83 Linux
/dev/sdb11 8533 8683 154608 83 Linux
This is my situation for the last one week. I am unable to find out whether raid1 is
working properly because after mounting /dev/md0 it should have shows 9GB - HDD size
instead it shows 25MB !!
Please help me out of this
Thanks
--
Rajesh(ALIAS Shriram) Fowkar
--------------------------------------------------------------------------------
How I Configured my SiS6215 Card ?Visit:http://rajesh.computers.webjump.com/linux.html
Web Site : http://rajesh.computers.webjump.com/ Email :[EMAIL PROTECTED]
Address : KURTARKAR NAGARI, BLDG-C, FLAT NO. T4, THIRD FLOOR, SHANTINAGAR,
PONDA - GOA. (INDIA) PHONE : (0832)315932
Do not dwell in the past, do not dream of the future, concentrate the mind
on the present moment. - Buddha
Scandisk is now checking your hard disk. You can start praying. - Anon. :-)
---------------------------------------------------------------------------------
----------------------------------------------
LIH is all for free speech. But it was created
for a purpose. Violations of the rules of
this list will result in stern action.