Changes

From SME Server
Jump to navigationJump to search
441 bytes added ,  11:51, 22 March 2010
no edit summary
Line 1: Line 1:  
==Raid: Manual Rebuild==
 
==Raid: Manual Rebuild==
 
{{Level|Medium}}
 
{{Level|Medium}}
 +
 +
Under Re-Write
 +
 +
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.
 +
 +
== HowTo Manage/Check a RAID1 Array from the command Line ==
 +
 +
=== Are the Disk Partitioned Correctly ? ===
 +
 +
Here two disks are partitioned identically
 +
 +
[root@ ~]# '''fdisk -lu /dev/sda; fdisk -lu /dev/sdb'''
 +
 +
Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
 +
255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors
 +
Units = sectors of 1 * 512 = 512 bytes
 +
 +
    Device Boot      Start        End      Blocks  Id  System
 +
/dev/sda1  *          63      208844      104391  fd  Linux raid autodetect
 +
/dev/sda2          208845  1953520064  976655610  fd  Linux raid autodetect
 +
 +
Disk /dev/sdb: 1000.2 GB, 1000204886016 bytes
 +
255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors
 +
Units = sectors of 1 * 512 = 512 bytes
 +
 +
    Device Boot      Start        End      Blocks  Id  System
 +
/dev/sdb1  *          63      208844      104391  fd  Linux raid autodetect
 +
/dev/sdb2          208845  1953520064  976655610  fd  Linux raid autodetect
 +
 +
==== Example : Incorrecty Partitioned 2nd Disk ====
 +
 +
[root@ ~]# '''fdisk -l /dev/sdb; fdisk -lu /dev/sdb'''
 +
 +
Disk /dev/sdb: 1000.2 GB, 1000204886016 bytes
 +
255 heads, 63 sectors/track, 121601 cylinders
 +
Units = cylinders of 16065 * 512 = 8225280 bytes
 +
 +
    Device Boot      Start        End      Blocks  Id  System
 +
/dev/sdb1  *          1          13      104384+  fd  Linux raid autodetect
 +
'''Partition 1 does not end on cylinder boundary.'''
 +
/dev/sdb2              13      121601  976655647  fd  Linux raid autodetect
 +
 +
Disk /dev/sdb: 1000.2 GB, 1000204886016 bytes
 +
255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors
 +
Units = sectors of 1 * 512 = 512 bytes
 +
 +
    Device Boot      Start        End      Blocks  Id  System
 +
/dev/sdb1  *          1      208769      104384+  fd  Linux raid autodetect
 +
'''Partition 1 does not end on cylinder boundary.'''
 +
/dev/sdb2          208770  1953520063  976655647  fd  Linux raid autodetect
 +
    
===The Leadup===
 
===The Leadup===
Line 37: Line 88:     
and a look from fdisks view shows
 
and a look from fdisks view shows
  −
[root@ ~]# fdisk -l /dev/sdb; fdisk -lu /dev/sdb
  −
  −
Disk /dev/sdb: 1000.2 GB, 1000204886016 bytes
  −
255 heads, 63 sectors/track, 121601 cylinders
  −
Units = cylinders of 16065 * 512 = 8225280 bytes
  −
  −
    Device Boot      Start        End      Blocks  Id  System
  −
/dev/sdb1  *          1          13      104384+  fd  Linux raid autodetect
  −
Partition 1 does not end on cylinder boundary.
  −
/dev/sdb2              13      121601  976655647  fd  Linux raid autodetect
  −
  −
Disk /dev/sdb: 1000.2 GB, 1000204886016 bytes
  −
255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors
  −
Units = sectors of 1 * 512 = 512 bytes
  −
  −
    Device Boot      Start        End      Blocks  Id  System
  −
/dev/sdb1  *          1      208769      104384+  fd  Linux raid autodetect
  −
Partition 1 does not end on cylinder boundary.
  −
/dev/sdb2          208770  1953520063  976655647  fd  Linux raid autodetect
      
Note the correct partitioning on sda
 
Note the correct partitioning on sda
Line 238: Line 269:  
  Syncing disks.
 
  Syncing disks.
   −
Have another look, looks nice
  −
  −
[root@ ~]# fdisk -lu /dev/sda; fdisk -lu /dev/sdb
  −
  −
Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
  −
255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors
  −
Units = sectors of 1 * 512 = 512 bytes
  −
  −
    Device Boot      Start        End      Blocks  Id  System
  −
/dev/sda1  *          63      208844      104391  fd  Linux raid autodetect
  −
/dev/sda2          208845  1953520064  976655610  fd  Linux raid autodetect
  −
  −
Disk /dev/sdb: 1000.2 GB, 1000204886016 bytes
  −
255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors
  −
Units = sectors of 1 * 512 = 512 bytes
  −
  −
    Device Boot      Start        End      Blocks  Id  System
  −
/dev/sdb1  *          63      208844      104391  fd  Linux raid autodetect
  −
/dev/sdb2          208845  1953520064  976655610  fd  Linux raid autodetect
      
====Add the partitions back====
 
====Add the partitions back====
88

edits

Navigation menu