> Hello All, > I am currently using Raid 1 ( Mirroring setup) in my > machine( Red Hat Linux 7.2, Kernel-2.4.17). My machine > already has two IDE disks with a capacity of 2gb each. > In that, I created the raid 1 partition as follows. > Partition Device Capacity > / ( root ) hda2 1882 MB > swap hda1 138 MB > Similarly, > / ( root ) hdc2 1882 MB > swap hdc1 138 MB > Till yesterday, the entire mirroring setup was working > very fine. But now,my primary hard disk ( hda ) goes > off due to some disk failure. So I removed the hda > disk and started re-booting the machine with the hdc > disk which has already has the exact replica of the > hda. Now I can able to run the machine with only one > disk ( i.e.,hdc only ). But inorder to overcome this > disk failure again, I planned to insert a new spare > disk ( 2 GB ) into the machine and gave the following > command, > dd if=/dev/hdc3 of=/dev/hda3
no need to give this command. Just edit /etc/raidtab ( i am assuming u are using raidtools >v0 .50) Are you sure u dont have raid.conf in your machine? checkout. If you dont have then probaly u are using the newer raidtools which uses /etc/raidtab rather. Actually in newer raidtools when a disk fails in the array and your system can boot still ( in mirrioring i.e. Raid 1 or when you have the /boot partition also on another disk etc etc) if you replace the faulty disk. and your say mkraid, automaitc reconstruction will start. issue cat /proc/mdstat for the stastics about the Raid which will tell how the status of the reconstruction. There is really no need to issude any dd command for it. And if it is older raidtools and you have your raid.conf file, following is applicable: (once the first disk is removed, the RAID set will be running in degraded mode. To restore full operation mode, you need to: stop the array (mdstop /dev/md0) replace the failed drive run ckraid raid.conf to reconstruct its contents run the array again (mdadd, mdrun). At this point, the array will be running with all the drives, and again protects against a failure of a single drive. ) (Please do Correct me if I am wrong) Regards, Sagar Srivastava CWLGlobal, Bangalore [EMAIL PROTECTED] > > _______________________________________________ linux-india-help mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/linux-india-help
