Hi Raju,

I have been able to configure raid for all my partitions except /boot and /
After unmounting the above patitions if I try to mkraid than still it gives me error 
saying that sda1(/boot) and sda10(/) is still mounted.

Now my /etc/raidtab file is as follows :

----------------------------------------------------
       raiddev /dev/md0
           raid-level              1 
           nr-raid-disks           2
           nr-spare-disks          0
           persistent-superblock   1
           chunk-size              4
  
           device                  /dev/sda5
           raid-disk               0

           device                  /dev/sdb5
           raid-disk               1

       raiddev /dev/md1
           raid-level              1 
           nr-raid-disks           2
           nr-spare-disks          0
           persistent-superblock   1
           chunk-size              4
  
           device                  /dev/sda1
           raid-disk               0

           device                  /dev/sdb1
           raid-disk               1

       raiddev /dev/md2
           raid-level              1 
           nr-raid-disks           2
           nr-spare-disks          0
           persistent-superblock   1
           chunk-size              4
  
           device                  /dev/sda6
           raid-disk               0

           device                  /dev/sdb6
           raid-disk               1


       raiddev /dev/md3
           raid-level              1 
           nr-raid-disks           2
           nr-spare-disks          0
           persistent-superblock   1
           chunk-size              4
  
           device                  /dev/sda9
           raid-disk               0

           device                  /dev/sdb9
           raid-disk               1


       raiddev /dev/md4
           raid-level              1 
           nr-raid-disks           2
           nr-spare-disks          0
           persistent-superblock   1
           chunk-size              4
  
           device                  /dev/sda11
           raid-disk               0

           device                  /dev/sdb11
           raid-disk               1
       
        raiddev /dev/md5
           raid-level              1 
           nr-raid-disks           2
           nr-spare-disks          0
           persistent-superblock   1
           chunk-size              4
  
           device                  /dev/sda7
           raid-disk               0

           device                  /dev/sdb7
           raid-disk               1
        
        raiddev /dev/md6
           raid-level              1 
           nr-raid-disks           2
           nr-spare-disks          0
           persistent-superblock   1
           chunk-size              4
  
           device                  /dev/sda10
           raid-disk               0

           device                  /dev/sdb10
           raid-disk               1

----------------------------------------------------

I am not mounting my sda1 ... 10 partitions. Instead I am mounting md0, md1 etc. For 
this I have inserted the following in /etc/rc.d/rc.sysinit ( I have purposely changed 
this in rc.sysinit rather than rc.local because otherwise since the /usr partition is 
not mounted the Cron Daemon as well as http server give error. I have put the 
following lines in rc.sysinit just before starting of the above daemons :

-------------------------------------------------
raidstart /dev/md0      
        raidstart /dev/md2      
        raidstart /dev/md3      
        raidstart /dev/md4      
        raidstart /dev/md5
        
        mount /dev/md0 /home
        mount /dev/md2 /usr
        mount /dev/md3 /tmp
        mount /dev/md4 /var
        mount /dev/md5 /opt

-------------------------------------------------

The output of /proc/mdstat is as follows :

-----------------------------------------------
Personalities : [raid1] 
read_ahead 1024 sectors
md5 : active raid1 sdb7[1] sda7[0] 1024896 blocks [2/2] [UU]
md4 : active raid1 sdb11[1] sda11[0] 154496 blocks [2/2] [UU]
md3 : active raid1 sdb9[1] sda9[0] 512896 blocks [2/2] [UU]
md2 : active raid1 sdb6[1] sda6[0] 2048896 blocks [2/2] [UU]
md0 : active raid1 sdb5[1] sda5[0] 4096896 blocks [2/2] [UU]
unused devices: <none>
-----------------------------------------------

The output of df -h is as follows :
----------------------------------------------
Filesystem            Size  Used Avail Use% Mounted on
/dev/sda10            485M   45M  415M  10% /
/dev/md0              3.8G   10M  3.6G   0% /home
/dev/md2              1.9G  626M  1.2G  33% /usr
/dev/md3              485M  658k  459M   0% /tmp
/dev/md4              146M   17M  121M  12% /var
/dev/md5              985M   20k  935M   0% /opt
/dev/sda1              25M  2.8M   21M  12% /boot
----------------------------------------------

What should be done to create raid devices for / ( root partition ) and /boot ( boot 
partition ).

Thanks for the patience.

Regards


Rajesh



Raju Mathur saw fit to inform LI that: 
>For the last time, you can EITHER mount the individual partitions
>which comprise the RAID device OR you can mount the RAID device.  If
>md0 == sda5 and sdb5, you can EITHER mount /dev/sda5 OR /dev/md0.  You
>are getting the error since you're mounting /dev/sda5 on /home and
>THEN trying to start /dev/md0.  It will not work.  It will never work.
>
>Regards,
>
>-- Raju
>

-- 
Rajesh(ALIAS Shriram) Fowkar
--------------------------------------------------------------------------------
How I Configured my SiS6215 Card ?Visit:http://rajesh.computers.webjump.com/
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 subscription with this mailing list is at
http://lists.linux-india.org/cgi-bin/mj_wwwusr

Reply via email to