Hi,


Sorry for this long mail. But it is essential to make clear my problem.

During the last week, in our office we installed Red Hat 6.2 on our new server. 
Configuration
is :

PIII 550MHZ, 256MB SDRAM, Two 9GB SCSI HDD, 48X CDROM.

We configured raid1(mirroring). The configuration steps were as follows :

1. First HDD partitions (/dev/sda) :

        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

2. Second HDD partitions (/dev/sdb) :

        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


3. Installed Red Hat 6.2 on first HDD.

4. Configured raidtab file (/etc/raidtab). The contents are as follows :

 raiddev /dev/md0
           raid-level              1 
           nr-raid-disks           7
           nr-spare-disks          0
           persistent-superblock   1
           chunk-size              4
  
           device                  /dev/sdb10
           raid-disk               0
           device                  /dev/sdb1
           raid-disk               1
           device                  /dev/sdb5
           raid-disk               2
           device                  /dev/sdb6
           raid-disk               3
           device                  /dev/sdb7
           raid-disk               4
           device                  /dev/sdb9
           raid-disk               5
           device                  /dev/sdb11
           raid-disk               6

5. $ mkraid /dev/md0 

6. $ raidstart /dev/md0
   This gives the message that raid is active etc. So now I have put it in 
/etc/rc.d/rc.local.
   So raid is started on booting.

7. The contents of /proc/mdstat after starting raid are as follows :

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>

8. Now my problem is. If I try to mount say one of the raid partitions (/dev/sdb1) in 
/mnt/raid than I am getting the following error :


EXT2-fs error (device sd(8,17)): read_inode_bitmap: Cannot read inode bitmap - 
block_group = 57, inode_bitmap = 1867777
EXT2-fs error (device sd(8,17)): read_inode_bitmap: Cannot read inode bitmap - 
block_group = 58, inode_bitmap = 1900545
EXT2-fs error (device sd(8,17)): ext2_check_inodes_bitmap: Wrong free inodes count in 
super block, stored = 934375, counted = 15847

9. After this if I type df -h it shows that the partition is mounted, but the size of 
/dev/sda1
   and size of /dev/sdb1 are not the same. ( It should have been the same isn't it ). 

10. Now if I go to /mnt/raid and say ls I can see only one directory (lost+found) and 
one more directory tmp which is blinking and I can not CD to this directory. 
lost+found directory is empty. How is that inspite of starting raid the mirroring has 
not taken place and why I am getting the errors when I try to mount a raid partition.

Note : This mount error comes even if I try to mount the raid partition after stopping 
raid. (raidstop /dev/md0).

Can anybody help me on this. How to check whether raid configuration is really 
successful or not ?

Thanks for reading this long mail.

Anticipating some help.

Regards


-- 
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. :-)
---------------------------------------------------------------------------------


----------------------------------------------------------------------
An alpha version of a web based tool to manage your 
subscriptions with this majordomo2 server is available
at http://lists.linux-india.org/cgi-bin/mj_wwwusr

Reply via email to