ubuntu-raid1-conversion
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
ubuntu-raid1-conversion [2009/10/29 18:22] – snarg | ubuntu-raid1-conversion [2009/10/30 17:33] – snarg | ||
---|---|---|---|
Line 2: | Line 2: | ||
===Created for Phil, using Ubuntu 9.10 Karmic Koala=== | ===Created for Phil, using Ubuntu 9.10 Karmic Koala=== | ||
This Procedure will take a standard install of Ubuntu, and mirror it to a spare hard disk, forming a RAID-1 array. Ubuntu by default on a standard install has 2 partitions. One for the root (/) filesystem and one for swap space. This procedure sets up individual raid arrays for each of these (root filesystem and swap). This procedure makes heavy use of the linux shell (terminal). In Ubuntu you can load a terminal from the Applications menu, under Accessories. | This Procedure will take a standard install of Ubuntu, and mirror it to a spare hard disk, forming a RAID-1 array. Ubuntu by default on a standard install has 2 partitions. One for the root (/) filesystem and one for swap space. This procedure sets up individual raid arrays for each of these (root filesystem and swap). This procedure makes heavy use of the linux shell (terminal). In Ubuntu you can load a terminal from the Applications menu, under Accessories. | ||
+ | \\ | ||
+ | \\ | ||
{{: | {{: | ||
Line 22: | Line 24: | ||
Command (m for help): p | Command (m for help): p | ||
- | Disk / | + | Disk / |
- | 255 heads, 63 sectors/ | + | 255 heads, 63 sectors/ |
Units = cylinders of 16065 * 512 = 8225280 bytes | Units = cylinders of 16065 * 512 = 8225280 bytes | ||
Disk identifier: 0xeea1cf79 | Disk identifier: 0xeea1cf79 | ||
Line 212: | Line 214: | ||
</ | </ | ||
Now go back to the original terminal window and type: | Now go back to the original terminal window and type: | ||
+ | < | ||
sudo nano / | sudo nano / | ||
</ | </ | ||
Line 227: | 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 / | + | ==12. Adjust UUID in / |
This step will cause the bootloader to load up using the raid array (/dev/md0) instead of the old drive (/ | This step will cause the bootloader to load up using the raid array (/dev/md0) instead of the old drive (/ | ||
< | < | ||
Line 315: | Line 318: | ||
sudo mdadm --manage /dev/md1 --add /dev/sda2 | sudo mdadm --manage /dev/md1 --add /dev/sda2 | ||
</ | </ | ||
- | ==17. Watch some rebuild stats. | + | ==17. Watch some rebuild stats. |
- | Voila! | + | |
Type "cat / | Type "cat / | ||
Line 333: | Line 335: | ||
unused devices: < | unused devices: < | ||
</ | </ | ||
- | {{:ubuntu-raid1-conversion-before-and-after.png|}} | + | |
+ | ==18. Final update to the bootloader to account for the first drive being changed.== | ||
+ | Type this to finalise the bootloader config and Master Boot Record on both hard disks: | ||
+ | < | ||
+ | sudo update-grub | ||
+ | sudo grub-install /dev/sda | ||
+ | sudo grub-install /dev/sdb | ||
+ | </ | ||
+ | \\ | ||
+ | ALL DONE!! | ||
+ | \\ | ||
+ | update- 20091030 |
ubuntu-raid1-conversion.txt · Last modified: 2009/10/30 17:46 by snarg