Software RAID1 + LVM on FC5

Discussion in 'Installation/Configuration' started by Daisy, Jan 24, 2007.

  1. Daisy

    Daisy New Member

    I was hoping someone could point me to a good tutorial or maybe throw out some tips on software RAID1 + LVM for FC5. I tried setting it up during install but it's not working right and I'm not sure what's wrong. Being a total linux noob I can't seem to figure out what to do next. Maybe these things can help you to point me in the right direction...

    fdisk -l shows:
    Code:
    Disk /dev/sda: 320.0 GB, 320072933376 bytes
    255 heads, 63 sectors/track, 38913 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    
       Device Boot      Start         End      Blocks   Id  System
    /dev/sda1   *           1          13      104391   fd  Linux raid autodetect
    /dev/sda2              14       38913   312464250   fd  Linux raid autodetect
    
    Disk /dev/sdb: 320.0 GB, 320072933376 bytes
    255 heads, 63 sectors/track, 38913 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    
       Device Boot      Start         End      Blocks   Id  System
    /dev/sdb1   *           1          13      104391   fd  Linux raid autodetect
    /dev/sdb2              14       38913   312464250   fd  Linux raid autodetect
    
    Disk /dev/md1: 319.9 GB, 319963267072 bytes
    2 heads, 4 sectors/track, 78116032 cylinders
    Units = cylinders of 8 * 512 = 4096 bytes
    
    Disk /dev/md1 doesn't contain a valid partition table
    
    Disk /dev/md0: 106 MB, 106823680 bytes
    2 heads, 4 sectors/track, 26080 cylinders
    Units = cylinders of 8 * 512 = 4096 bytes
    
    Disk /dev/md0 doesn't contain a valid partition table
    and cat /proc/mdstat shows:
    Code:
    Personalities : [raid1] 
    md0 : active raid1 sdb1[1]
          104320 blocks [2/1] [_U]
          
    md1 : active raid1 sdb2[1]
          312464128 blocks [2/1] [_U]
          
    unused devices: <none>
    which is all fine and dandy but I don't really understand what it all means. I'm trying to setup two disks to mirror each other so if one fails the other picks up the slack. Simple redundancy (not worried about speed) I appreciate any help.

    Thanks!

    ~D
     
  2. falko

    falko Super Moderator

    Your RAID array is broken (if it was ok it would show [UU] instead of [_U]).

    Did you take a look at this tutorial? http://www.howtoforge.com/linux_lvm
    That should help you getting started.
     
  3. Daisy

    Daisy New Member

    *SIGH* I think the problem is... because I'm so new to linux, stuff like this reads like stereo instructions. I understand partitioning and fdisk and format when your talking about win32 but not linux. After reading the above suggested tutorial, I'm even more confused. I know this makes me sound like a tard but... could you suggest something a touch more uh.... for dummies? I'd really appreciate it. I'd like to get my RAID fixed. :) thanks!
     
  4. falko

    falko Super Moderator

    This tutorial is already for beginners. Did you download the virtual machine that comes with the tutorial?

    You might also want to take a look at this tutorial: http://www.howtoforge.com/replacing_hard_disks_in_a_raid1_array (but it's for RAID1).
     

Share This Page