Re: mirroring the whole disk

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Anze Vidmar escribió:

> 1) OK, now I'm wondering how to setup GRUB loader, so if I disconnect
> the 1st hdd (in case it fails) the other can take the control.

This links with a question about labels of the past week. You can
configure Grub references to LABELS, not partitions. Grub will start up
root partition with LABEL /, and boot with label /boot, not will depends
with the disk.
To build it, is better make soft raids on installation time.

>
> 2) And the other question: Let's say I've successfully booted from the
> second disk and I've inserted a new blank disk in place of 1st (dead)
> hdd. How to rebuld the mirror?

mdadm --manage /dev/md0 --remove /dev/hda1
mdadm --manage /dev/md1 --remove /dev/hda2
mdadm --manage /dev/md2 --remove /dev/hda3
- extract bad disk, and add new good drive
mdadm --manage /dev/md0 --add /dev/hda1
mdadm --manage /dev/md1 --add /dev/hda2
mdadm --manage /dev/md2 --add /dev/hda3

The raid remakes auto the mirror. You can see the state at /proc/mdstat

>
> I'm using FC4, but I'm sure it's the same thing with EL4 that I will
> be using in the future.
>
> Regards,

equal

>
> Anze
>

-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux