Hi Dhinesh...
In Raid 1, whatever disk u give as "raid disk 0" is used as primary to
construct the second "raid disk 1". So, what u should do is that remove the
failed disk, say /dev/sda1 and make the second working disk as "raid disk
0". and add the new disk to "raid disk 1", and run raidstart /dev/md0.
device /dev/sdb1
raid-disk 0
device /dev/sdc1
raid-disk 1
reconstruction will begin and add this /dev/sdc1 into your raid 1.
Regards,
Abhishek
> -----Original Message-----
> From: Selvarajan, Dhinesh [SMTP:[EMAIL PROTECTED]]
> Sent: Monday, July 24, 2000 12:41 PM
> To: '[EMAIL PROTECTED]'
> Subject: Raid
>
> Hi,
>
> we are using Red Hat Linux 6.2 on Intel based machines.we are having
> two
> 18 GB harddrives and we did Raid 1( Mirroring) during
> Installation.suppose
> if I remove
> one of the disk,machine is booting well without any problem.My doubt is if
> one of the harddisk fails then how to add the new hardisk in the RAID 1
> and
> reconstruct the array.
> what are configuration files i have to edit and execute command in order
> to
> reconstruct array in the new hardisk.
>
> The following is the /etc/raidtab file
> raiddev /dev/md0
> raid-level 1
> nr-raid-disks 2
> chunk-size 64k
> persistent-superblock 1
> #nr-spare-disks 0
> device /dev/sda1
> raid-disk 0
> device /dev/sdb1
> raid-disk 1
> raiddev /dev/md1
> raid-level 1
> nr-raid-disks 2
> chunk-size 64k
> persistent-superblock 1
> #nr-spare-disks 0
> device /dev/sda6
> raid-disk 0
> device /dev/sdb6
> raid-disk 1
> raiddev /dev/md2
> raid-level 1
> nr-raid-disks 2
> chunk-size 64k
> persistent-superblock 1
> #nr-spare-disks 0
> device /dev/sda7
> raid-disk 0
> device /dev/sdb7
> raid-disk 1
> raiddev /dev/md3
> raid-level 1
> nr-raid-disks 2
> chunk-size 64k
> persistent-superblock 1
> #nr-spare-disks 0
> device /dev/sda8
> raid-disk 0
> device /dev/sdb8
> raid-disk 1
>
> I created the same partition in new hardisk and i used dd command to copy
> the files from root and boot partition.
> dd if=/dev/sda6 of=/dev/sdb6 in order to copy data from the hardisk to new
> hardisk partition /dev/sdb6
> After that i executed the command
> mkraid raidtab -f --only-superblock
> when i try to run command there is no superblock option in the command.The
> system is not booting from the new hardisk.
> I used raidtools-0.90-6.
> can you give me a solution for this problem?.if you have any query please
> contact me
> My ph : 510-670-1710 ext:1252
> Thanks
> Dhinesh
> Alladvantage.com
>
>
>