administration:system-mirror
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
administration:system-mirror [2008/03/12 19:37] – damir | administration:system-mirror [2009/03/16 14:00] (current) – damir | ||
---|---|---|---|
Line 107: | Line 107: | ||
* wait until the system is copied | * wait until the system is copied | ||
| | ||
+ | |||
==== Create the new initrd image file ==== | ==== Create the new initrd image file ==== | ||
* after the copy we need to create a new initrd and change the information in the **/ | * after the copy we need to create a new initrd and change the information in the **/ | ||
Line 128: | Line 129: | ||
* the reference to the swap partition on the first disk must be commented | * the reference to the swap partition on the first disk must be commented | ||
- | * now we can create the new initrd image | + | * now we can create the new initrd image **include also the serial-ata module, if necessary** |
< | < | ||
- | mkinitrd --preload raid1 --preload raid456 --fstab / | + | mkinitrd --preload raid1 --preload raid456 |
</ | </ | ||
+ | |||
==== Edit the grub configuration file in the original disk ==== | ==== Edit the grub configuration file in the original disk ==== | ||
Line 152: | Line 154: | ||
root (hd1,0) | root (hd1,0) | ||
kernel / | kernel / | ||
- | initrd / | + | initrd / |
</ | </ | ||
Line 174: | Line 176: | ||
rsync -aH /boot/ /1/boot/ | rsync -aH /boot/ /1/boot/ | ||
</ | </ | ||
+ | |||
==== Reboot ==== | ==== Reboot ==== | ||
Line 181: | Line 184: | ||
</ | </ | ||
- | * at the boot prompt select the second boot option and verify that is the right one checking that contains the **root (hd1,0)** line | + | |
* if everything was right the system should boot with the raid 1 disk | * if everything was right the system should boot with the raid 1 disk | ||
Line 221: | Line 224: | ||
</ | </ | ||
| | ||
- | ==== add the second disk to the raid system ==== | + | ==== add the second disk to the raid system |
< | < | ||
Line 229: | Line 232: | ||
* the raid subsystem is synchronizing the content of both disks | * the raid subsystem is synchronizing the content of both disks | ||
- | ==== one last task is to create the second swap partition ==== | + | ==== .... and update the grub code ==== |
+ | |||
+ | < | ||
+ | grub | ||
+ | root (hd0,0) | ||
+ | setup (hd0) | ||
+ | quit | ||
+ | </ | ||
+ | |||
+ | ==== the last task is to create the second swap partition ==== | ||
< | < | ||
Line 236: | Line 248: | ||
</ | </ | ||
- | * uncomment the line about he swap partition inside /etc/fstab | + | * uncomment the line about the swap partition inside /etc/fstab |
===== Kernel upgrade ===== | ===== Kernel upgrade ===== |
administration/system-mirror.1205350625.txt.gz · Last modified: 2008/03/12 19:37 by damir