Line 1: |
Line 1: |
| {{Level|Advanced}} | | {{Level|Advanced}} |
| + | {{Warning box|Get it right or you will lose data. '''Take a backup!''' Keep in mind if you make a mistake you can loose a whole hard disk. A common error is to switch /dev/sda with /dev/sdb.}} |
| | | |
− | {{Warning box|Get it right or you will lose data. Take a backup, and keep in mind if you commit a mistake you can loose a whole hard disk, mainly if you switch /dev/sda with /dev/sdb for example}}
| + | SME Servers Raid Options are largely automated, if you built your system with a single hard disk simply logon as ''admin'' and select ''Disk Redundancy'' to add a new drive to your RAID1 array. The same procedure is used if you have a disk failure in a RAID array and you have replaced that failed disk. |
| | | |
− | {{note box|SME Servers Raid Options are largely automated, if you built your system with a single hard disk, or have a hard disk failure, simply logon as ''admin'' and select ''Disk Redundancy'' to add a new drive to your RAID1 array.
| + | But with the best laid plans things don't always go according to plan, these are the processes required to do it manually. |
| | | |
− | But with the best laid plans things don't always go according to plan, these are the processes required to do it manually}}
| + | See also: [[Raid:Manual Rebuild]] |
| | | |
| === Is the Disk Partitioned Correctly ? === | | === Is the Disk Partitioned Correctly ? === |
Line 186: |
Line 187: |
| | | |
| {{note box|The new disk requires grub to ensure the boot sequence}} | | {{note box|The new disk requires grub to ensure the boot sequence}} |
| + | |
| + | {{Warning box|as the dd command is named "data destroyer" you need to be extremely prudent and sure of the name of source partition and/or destination. At first you should skip the dd command, Step 1 below, and attempt to install grub without it, see Step 2 below. If grub can be installed without using dd, then Step 1 can be discarded. }} |
| | | |
| [root@ ~]# '''dd if=/dev/sda1 of=/dev/sdb1''' | | [root@ ~]# '''dd if=/dev/sda1 of=/dev/sdb1''' |
Line 198: |
Line 201: |
| completions of a device/filename.] | | completions of a device/filename.] |
| | | |
− | grub> '''device (hd0) /dev/sdb''' | + | grub> '''device (hd1) /dev/sdb''' |
| | | |
− | grub> '''root (hd0,0)''' | + | grub> '''root (hd1,0)''' |
| Filesystem type is ext2fs, partition type 0xfd | | Filesystem type is ext2fs, partition type 0xfd |
| | | |
− | grub> '''setup (hd0)''' | + | grub> '''setup (hd1)''' |
| Checking if "/boot/grub/stage1" exists... no | | Checking if "/boot/grub/stage1" exists... no |
| Checking if "/grub/stage1" exists... yes | | Checking if "/grub/stage1" exists... yes |
| Checking if "/grub/stage2" exists... yes | | Checking if "/grub/stage2" exists... yes |
| Checking if "/grub/e2fs_stage1_5" exists... yes | | Checking if "/grub/e2fs_stage1_5" exists... yes |
− | Running "embed /grub/e2fs_stage1_5 (hd0)"... 16 sectors are embedded. | + | Running "embed /grub/e2fs_stage1_5 (hd1)"... 16 sectors are embedded. |
| succeeded | | succeeded |
− | Running "install /grub/stage1 (hd0) (hd0)1+16 p (hd0,0)/grub/stage2 /grub/grub.conf"... succeeded | + | Running "install /grub/stage1 (hd1) (hd1)1+16 p (hd1,0)/grub/stage2 /grub/grub.conf"... succeeded |
| Done. | | Done. |
| | | |