User Tools

Site Tools


administration:system-mirror

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
administration:system-mirror [2008/03/12 20:35] damiradministration:system-mirror [2008/11/24 11:36] damir
Line 3: Line 3:
 ===== Prologue ===== ===== Prologue =====
  
-  * with the instructions that follow we move a complete root system disk from bare partitions to a raid 1 software layer. +  * with the instructions that follow we move a complete root system disk from bare partitions to a RAID 1 software layer. 
-  * all the work is done without putting the server off-line, but it's better to stop the services before starting the copy of the files from the old disk to the new one.+  * obviously you can use the same trick to upgrade to a RAID 5 software system 
 +  * **all the work is done without putting the server off-line, but it's better to stop the services before starting the copy of the files from the old disk to the new one**
   * only one reboot process is needed if the disks are already installed on the server and if the whole process is correct.   * only one reboot process is needed if the disks are already installed on the server and if the whole process is correct.
  
Line 106: 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 **/1/etc/fstab** file   * after the copy we need to create a new initrd and change the information in the **/1/etc/fstab** file
Line 127: 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**
 <code> <code>
-mkinitrd --preload raid1 --preload raid456 --fstab /1/etc/fstab /boot/initrd-2.6.23.15-80.fc7-2.img 2.6.23.15-80.fc7+mkinitrd --preload raid1 --preload raid456 --preload sata_nv --fstab /1/etc/fstab /boot/initrd-$(uname -r)-raid.img $(uname -r)
 </code> </code>
 +
  
 ==== Edit the grub configuration file in the original disk ==== ==== Edit the grub configuration file in the original disk ====
Line 151: Line 154:
         root (hd1,0)         root (hd1,0)
         kernel /vmlinuz-2.6.23.15-80.fc7 ro root=/dev/vg1/root vga=791 selinux=0 noipv6 panic=30         kernel /vmlinuz-2.6.23.15-80.fc7 ro root=/dev/vg1/root vga=791 selinux=0 noipv6 panic=30
-        initrd /initrd-2.6.23.15-80.fc7-2.img+        initrd /initrd-2.6.23.15-80.fc7-2-raid.img
 </code> </code>
  
Line 173: Line 176:
   rsync -aH /boot/ /1/boot/   rsync -aH /boot/ /1/boot/
 </code> </code>
 +
  
 ==== Reboot ==== ==== Reboot ====
Line 180: Line 184:
 </code> </code>
  
-  * at the boot prompt select the second boot option and verify that is the right one checking that contains the **root (hd1,0)** line+  * **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
  
administration/system-mirror.txt · Last modified: 2009/03/16 15:00 by damir