User Tools

Site Tools


ubuntu-raid1-conversion

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
ubuntu-raid1-conversion [2009/10/30 10:16] snargubuntu-raid1-conversion [2009/10/30 17:46] (current) snarg
Line 214: Line 214:
 </code> </code>
 Now go back to the original terminal window and type: Now go back to the original terminal window and type:
 +<code>
 sudo nano /mnt/temp-newroot/etc/fstab sudo nano /mnt/temp-newroot/etc/fstab
 </code> </code>
Line 229: Line 230:
 Use CTRL+W to save the fstab and exit nano text file editor. Use CTRL+W to save the fstab and exit nano text file editor.
  
-==12. Adjust UUID in /boot/grub/menu.lst to point to the new arrays==+==12. Adjust UUID in /boot/grub/menu.lst to point to the new root array==
 This step will cause the bootloader to load up using the raid array (/dev/md0) instead of the old drive (/dev/sda1). This change is only temporary, as we are editting the file on the OLD root partition. We will fix this to be permanent once we reboot into the new system. This step will cause the bootloader to load up using the raid array (/dev/md0) instead of the old drive (/dev/sda1). This change is only temporary, as we are editting the file on the OLD root partition. We will fix this to be permanent once we reboot into the new system.
 <code> <code>
Line 315: Line 316:
 Also a one-liner: Also a one-liner:
 <code> <code>
-sudo mdadm --manage /dev/md1 --add /dev/sda2+sudo mdadm --manage /dev/md1 --add /dev/sda5
 </code> </code>
 ==17. Watch some rebuild stats. Dont forget the important last step.== ==17. Watch some rebuild stats. Dont forget the important last step.==
Line 336: Line 337:
  
 ==18. Final update to the bootloader to account for the first drive being changed.== ==18. Final update to the bootloader to account for the first drive being changed.==
 +Use nano to edit your /boot/grub/device.map
 +<code>
 +sudo nano /boot/grub/device.map
 +</code>
 +And make sure it looks like this: (note this should be the same as your bios hard disk boot order)
 +<code>
 +(hd0)   /dev/sda
 +(hd1)   /dev/sdb
 +</code>
 Type this to finalise the bootloader config and Master Boot Record on both hard disks: Type this to finalise the bootloader config and Master Boot Record on both hard disks:
 <code> <code>
ubuntu-raid1-conversion.1256868984.txt.gz · Last modified: 2009/10/30 10:16 by snarg