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" == Rajesh Fowkar <[EMAIL PROTECTED]> writes:
Rajesh> Hi, Today I tried to create different raid devices for
Rajesh> different partitions. It works perfectly but only under
Rajesh> certain circumstances.
Rajesh> My /etc/raidtab file is as follows :
Rajesh> raiddev /dev/md0 raid-level 1 nr-raid-disks 2
Rajesh> nr-spare-disks 0 persistent-superblock 1 chunk-size 4
Rajesh> device /dev/sda5 raid-disk 0
Rajesh> device /dev/sdb5 raid-disk 1
Rajesh> raiddev /dev/md1 raid-level 1 nr-raid-disks 2
Rajesh> nr-spare-disks 0 persistent-superblock 1 chunk-size 4
Rajesh> device /dev/sda6 raid-disk 0
Rajesh> device /dev/sdb6 raid-disk 1
Rajesh> raiddev /dev/md2 raid-level 1 nr-raid-disks 2
Rajesh> nr-spare-disks 0 persistent-superblock 1 chunk-size 4
Rajesh> device /dev/sda7 raid-disk 0
Rajesh> device /dev/sdb7 raid-disk 1
Rajesh> raiddev /dev/md3 raid-level 1 nr-raid-disks 2
Rajesh> nr-spare-disks 0 persistent-superblock 1 chunk-size 4
Rajesh> device /dev/sda9 raid-disk 0
Rajesh> device /dev/sdb9 raid-disk 1
Rajesh> raiddev /dev/md4 raid-level 1 nr-raid-disks 2
Rajesh> nr-spare-disks 0 persistent-superblock 1 chunk-size 4
Rajesh> device /dev/sda11 raid-disk 0
Rajesh> device /dev/sdb11 raid-disk 1
Rajesh> My partitions are as follows :
Rajesh> sda5 - /home to be mirrored to - sdb5 sda6 - /usr to be
Rajesh> mirrored to - sdb6 sda7 - /opt to be mirrored to - sdb7
Rajesh> sda9 - /tmp to be mirrored to - sdb9 sda11 - /var to be
Rajesh> mirrored to - sdb11
Rajesh> Now since all the above partitions are mounted on sda,
Rajesh> when I try to do mkraid /dev/md0 it gives me error that
Rajesh> sda5 is mounted and hence mkraid fails. Then I tried to
Rajesh> unmount /home i.e. /dev/sda5 and then tried with mkraid
Rajesh> /dev/md0. Now it works perfectly. Everything from /home
Rajesh> got mirrored on /dev/sdb5. Fine. Same thing I repeated for
Rajesh> all the partitions in single user mode since some
Rajesh> partitions such as /usr etc. cannot be unmounted(unless in
Rajesh> single user mode). But after doing all the above stuff I
Rajesh> added the following to /etc/rc.d/rc.local file :
Rajesh> raidstart /dev/md0 raidstart /dev/md1 raidstart /dev/md2
Rajesh> raidstart /dev/md3 raidstart /dev/md4
Rajesh> But raid does not start and it gives me the following
Rajesh> error :
Rajesh> <SNIP> cannot import sda5, has active inodes! could not
Rajesh> import sda5! autostart sda5 failed! <SNIP>
Rajesh> This error repeats for all the above partitions. However
Rajesh> after booting if I unmount say /home and then give
Rajesh> raidstart /dev/md0 than everything works fine.
Rajesh> What I have to do to start raid ? Any suggestions.
Rajesh> Thanks for your patient reading. Hope I have made clear my
Rajesh> problem.
Rajesh> Thanks again.
Rajesh> Regards
Rajesh> Rajesh
Rajesh> Nick Hill saw fit to inform LI that:
>>
>>> Rajesh Fowkar wrote: > > 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
>> RAID-1 _is_ mirroring and that's what u're getting. It will
>> mirror the _same_ data on to all the partitions assigned. And
>> the final size of the raid partition created (/dev/md0 in u're
>> case) will be the size of the lowest sized partition among the
>> partition cluster u've assigned to be mirrored, as all the data
>> cannot be mirrored equally on to all the partitions if they're
>> of different sizes... If u want to use all of u're 9 GB, go for
>> striping. RAID-0 will do, for most cases, unless u're too wary
>> of u're data, then u may consider RAID-5, but u'll some space
>> because of the parity data involved, but u'll get excellent
>> recovery of data in cases of failure...
>>
>> Nikhil.
Rajesh> -- Rajesh(ALIAS Shriram) Fowkar
Rajesh>
--------------------------------------------------------------------------------
Rajesh> How I Configured my SiS6215 Card
Rajesh> ?Visit:http://rajesh.computers.webjump.com/ Web Site :
Rajesh> http://rajesh.computers.webjump.com/ Email
Rajesh> :[EMAIL PROTECTED] Address : KURTARKAR NAGARI,
Rajesh> BLDG-C, FLAT NO. T4, THIRD FLOOR, SHANTINAGAR, PONDA -
Rajesh> GOA. (INDIA) PHONE : (0832)315932
Rajesh> Do not dwell in the past, do not dream of the future,
Rajesh> concentrate the mind on the present moment. - Buddha
Rajesh> Scandisk is now checking your hard disk. You can start
Rajesh> praying. - Anon. :-)
Rajesh>
---------------------------------------------------------------------------------
Rajesh> ---------------------------------------------- An alpha
Rajesh> version of a web based tool to manage your subscription
Rajesh> with this mailing list is at
Rajesh> http://lists.linux-india.org/cgi-bin/mj_wwwusr
----------------------------------------------
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