Changes

Jump to navigation Jump to search
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]]
   −
=== Are the Disk Partitioned Correctly ? ===
+
=== Is the Disk Partitioned Correctly ? ===
    
Here two disks are partitioned identically
 
Here two disks are partitioned identically
Line 55: Line 56:  
===== message Log showing Grub errors during the processus of installation=====
 
===== message Log showing Grub errors during the processus of installation=====
   −
If we try to install the grub we will have these errors messages
+
If we try to install grub you will see these errors messages
    
  add_drive_to_raid: Waiting for boot partition to sync before installing grub...
 
  add_drive_to_raid: Waiting for boot partition to sync before installing grub...
Line 82: Line 83:  
== HowTo: Partition / Re-Partition a disk ==
 
== HowTo: Partition / Re-Partition a disk ==
   −
{{note box|if you use the disk for the first time you can go to the next section otherside you need to erase old partitions before create new one.We suppose you have two existing partitions as is the default partitioning on a SME Server raid1.}}
+
{{note box|if you are using the disk for the first time you can go straight to the next section otherwise you need to erase the old partitions before you create a new one. We will presume you have two existing partitions as is the default partitioning on a SME Server raid1.}}
    
=== Delete Existing Partitions ===
 
=== Delete Existing Partitions ===
Line 120: Line 121:  
=== Create new partitions ===
 
=== Create new partitions ===
   −
{{note box|Now we will create two partitions for md1 and md2, as it is the default partitioning of SME. You can make another choice to create just one partition if you want a data disk in a raid array. At this point you will give the whole disk to the partition 1. In this case there is no need to give a boot flag (see below the flag "a")}}
+
{{note box|Now we will create two partitions for md1 and md2, as it is the default partitioning schema of SME. You can make another choice to create just one partition if you want a data disk in a raid array. At this point you will allocate the whole disk to partition 1. In this case there is no need to give a boot flag (see below the flag "a")}}
    
{{warning box|Note: change the partitions system id to reflect Linux raid autodetect}}
 
{{warning box|Note: change the partitions system id to reflect Linux raid autodetect}}
Line 185: Line 186:  
== HowTo: Write the GRUB boot sector ==
 
== HowTo: Write the GRUB boot sector ==
   −
{{note box|The grub on the new disk is necessary to secure 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.
 
   
 
   

Navigation menu