Software Raid 1 Problem

Discussion in 'HOWTO-Related Questions' started by dsi_me, Jan 9, 2012.

  1. dsi_me

    dsi_me New Member

    I am using your How-to -
    How To Set Up Software RAID1 On A Running System (Incl. GRUB2 Configuration) (Ubuntu 10.04)

    I am having a bit different configuration as used in the howto
    i have the following partitions
    Code:
     
    Device Boot      Start         End      Blocks   Id  System
    /dev/sda1   *           1        2432    19530752   83  Linux
    /dev/sda2            2432       30402   224665601    5  Extended
    /dev/sda5            2432        3648     9764864   83  Linux
    /dev/sda6            3648        6687    24413184   83  Linux
    /dev/sda7           29915       30402     3906560   82  Linux swap / Solaris
    /dev/sda8            6687        9727    24413184   83  Linux
    /dev/sda9            9727       29915   162157568   83  Linux
    
    Code:
     
    sudo df -h
    Filesystem            Size  Used Avail Use% Mounted on
    /dev/sda1              19G  2.3G   16G  13% /
    none                  493M  228K  492M   1% /dev
    none                  497M     0  497M   0% /dev/shm
    none                  497M   76K  497M   1% /var/run
    none                  497M     0  497M   0% /var/lock
    none                  497M     0  497M   0% /lib/init/rw
    /dev/sda8              23G  173M   22G   1% /tmp
    /dev/sda9             153G   22G  124G  15% /home
    /dev/sda5             9.2G  150M  8.6G   2% /usr/local
    /dev/sda6              23G  181M   22G   1% /var/log
    
    & also the partition type is ext3 instead of ext4 as used in howto.

    I dont know what is going wrong. After completing first 2 pages, when i rebooted the system, it is unable to mount all the partitions - /home, /var/log, /usr/local, /tmp

    Please suggest what can be done or where am I going wrong?
     
  2. falko

    falko Super Moderator

    Where's /dev/sdb?

    That doesn't matter.
     
  3. dsi_me

    dsi_me New Member

    hey, thanks for ur reply

    I successfully installed software raid on my system. :D all thanks to howtoforge.com

    I was doing some mistake in mapping that's why I was getting that problem. Thanks though
     
  4. epretorious

    epretorious HowtoForge Supporter

    You should also take the time to correctly label each partition type in the MBR so that the kernel can autodetect the RAID partitions:
    Code:
    [eric@openfiler ~]$ sudo fdisk -l /dev/sda /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
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disk identifier: 0x00062e7f
    
       Device Boot      Start         End      Blocks   Id  System
    /dev/sda1   *          63      208844      104391   83  Linux
    /dev/sda2          208845     8225279     4008217+  83  Linux
    [COLOR="SeaGreen"]/dev/sda3         8225280  1953525167   972649944   fd  Linux raid autodetect[/COLOR]
    
    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
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disk identifier: 0x00043aa0
    
       Device Boot      Start         End      Blocks   Id  System
    /dev/sdb1              63      208844      104391   83  Linux
    /dev/sdb2          208845     8225279     4008217+  82  Linux swap / Solaris
    [COLOR="SeaGreen"]/dev/sdb3         8225280  1953525167   972649944   fd  Linux raid autodetect[/COLOR]
    
    [eric@openfiler ~]$ sudo cat /proc/mdstat      
    Personalities : [raid1] 
    md0 : active raid1 [COLOR="SeaGreen"]sda3[0] sdb3[1][/COLOR]
          972648784 blocks super 1.2 [2/2] [UU]
     

Share This Page