Line 17: |
Line 17: |
| i have tested all the command in a virtualbox, it works as expected. | | i have tested all the command in a virtualbox, it works as expected. |
| | | |
− | ====Adding another Hard Drive Later (Raid 1 array only)==== | + | ====Adding another Hard Drive Later (Raid1 array only)==== |
| | | |
| ENSURE THAT THE NEW DRIVE IS THE SAME SIZE OR LARGER AS THE CURRENT DRIVE(S) | | ENSURE THAT THE NEW DRIVE IS THE SAME SIZE OR LARGER AS THE CURRENT DRIVE(S) |
Line 23: |
Line 23: |
| * Install drive as master on the second IDE channel (hdc) or the second SATA channel (sda) | | * Install drive as master on the second IDE channel (hdc) or the second SATA channel (sda) |
| * Boot up | | * Boot up |
− | * Log on as admin to get to the admin console | + | * At the login prompt log on on as admin with the root password to get to the admin console |
| * Go to #5 Manage disk redundancy | | * Go to #5 Manage disk redundancy |
| | | |
− | It should tell you there if the drives are syncing up. Don't turn off the server until the sync is complete or it will start from the beginning again. When it is done syncing it will show a good working raid1. | + | It should show the status and progress if the drives are syncing up. Don't turn off the server until the sync is complete or it will start syncing again from the beginning. When it is done syncing it will show a good working Raid1. |
| | | |
− | If the Manage disk redundancy page gives the message "The free disk count must equal one" and "Manual intervention may be required", then you probably have additional hard drives that need to be disconnected while the RAID is set up. An external USB drive will have this effect, and should be unplugged. | + | If the Manage disk redundancy page displays the message "The free disk count must equal one" and "Manual intervention may be required", then you probably have additional hard drives that need to be disconnected while the RAID is set up. An external USB drive will have this effect, and should be unplugged. |
| | | |
− | {{Note box| the addition of another drive is restricted to a RAID 1 degraded, i.e. when the system has been installed with a single drive (/dev/hda and /dev/hdc or their SATA equivalent). The addition of a third drive to a RAID 1 '''(i.e. a spare)''' is not recognized by the system. To add a spare you need to use '''mdadm''' at the command line}} | + | {{Note box| the addition of another drive is restricted to a Raid1 that is degraded, i.e. when the system has been installed with a single drive (/dev/hda and /dev/hdc or their SATA equivalent). The addition of a third drive to a RAID 1 '''(i.e. a spare)''' is not recognized by the system. To add a spare you need to use the management tool '''mdadm''' at the command line}} |
| | | |
− | {{Note box|I will assume the system is installed with a RAID 1 array functioning on two disks sda and sdb and you want to add another disk sdc as a spare (for use automatically if one disk of the array will fail). This howto operates with RAID 1/5/6 as long as you want to add a spare disk.}} | + | {{Note box|I will assume the system is installed with a Raid1 array functioning with two disks sda and sdb and you want to add another disk sdc as a spare (for adding to the array automatically if one disk of the array fails). This HowTo can be adapted to other types of RAID as long as you want to add a spare disk.}} |
| | | |
| First we need write the partition table from sda (or sdb) to sdc : | | First we need write the partition table from sda (or sdb) to sdc : |
− |
| |
| | | |
| sfdisk -d /dev/sda > sfdisk_sda.output | | sfdisk -d /dev/sda > sfdisk_sda.output |
Line 93: |
Line 92: |
| [0]= number of the disk | | [0]= number of the disk |
| | | |
− | You should ensure that grub is correctly written to spare disk to ensure it will boot correctly. | + | You should ensure that grub has been written correctly to the spare disk to ensure that it will boot correctly. |
| | | |
| From within a terminal with the administrator privileges : | | From within a terminal with the administrator privileges : |
Line 102: |
Line 101: |
| setup (hd2) | | setup (hd2) |
| | | |
− | Last of all, try forcing a failure of one of the first two drives and ensure that the server boots, and the RAID rebuilds corectly. You may then have to the repeat this exercise to get the drives n the correct order (i.e sda/sdb in the array with sdc as the spare) | + | Last of all, try forcing a failure of one of the original two drives and ensure that the server boots, and the RAID rebuilds corectly. You may then have to the repeat this exercise to get the drives in the correct order (i.e sda/sdb in the array with sdc as the spare) |