Page 2 of 2 FirstFirst 12
Results 11 to 14 of 14

Thread: unable to build mdadm raid 5

  1. #11
    Join Date
    Feb 2008
    Beans
    7

    Re: unable to build mdadm raid 5

    hello

    the uuid is in there and i have also followed the information at http://tldp.org/HOWTO/Software-RAID-HOWTO-5.html. i have also removed the mdadm.conf file and ran the reassemble command.

    chris

  2. #12
    Join Date
    Feb 2007
    Location
    Cameron Park CA USA
    Beans
    4,571
    Distro
    Ubuntu Development Release

    Re: unable to build mdadm raid 5

    Okay, can you show us what the mdadm.conf file has in it?
    Regards, frank, at http://yantrayoga.typepad.com/noname/
    Homebuilt Lian-Li PC-Q33WB, Intel i7-4790K 4.6GHz, SSDs,32G RAM | Dell Laptop 13.3".
    Oracle VBox w/ WinXP/Win10 running Xara Designer, PaintShopPro, and InDesign CS.

  3. #13
    Join Date
    Aug 2006
    Beans
    304
    Distro
    Ubuntu 12.04 Precise Pangolin

    Lightbulb Re: unable to build mdadm raid 5

    Here is a set of instructions that I created:

    Create Raid Array with LVM2 Volume Inside

    • Determine the Logical location of all drives to be included in array.
      sudo lshw -short | grep "/dev/"
    • Zero all drives to be included in array
      sudo shred -vfz -n 0 /dev/sdd
    • Restart Computer so that the kernel sees the changes.
    • Format all drives to be included in array.
      sudo fdisk /dev/sdd
      • Delete all partitions from the drive.
      • Create a new primary partition with the default size (default is the entire disk).
      • Change partition type to "Linux raid auto"
      • Write Changes to Drive
      • Repeat for each disk that will be included in the array.
    • Restart Computer so that the kernel sees the changes.
    • Determine the Logical locations of all drives to be included in the array again to verify if any have changed.
    • Create the Raid device (if you have a missing drive replace it with "missing")
      sudo mdadm --create --verbose /dev/md0 --level=5 --raid-devices=3 /dev/sdd1 /dev/sde1 /dev/sda1
    • Wait for the array to build. You can check the progress with:
      sudo mdadm --detail /dev/md0
      cat /proc/mdstat
    • Restart computer to confirm the Configuration.
      ls /dev/ | grep "md"
    • Create physical volume.
      sudo pvcreate /dev/md0
    • Create the volume group. Replace XXX with (Megabytes of array)/65,000, then round to next number (2,4,8,16,32,64,128,256,...).
      sudo vgcreate -s XXXM lvm-raid /dev/md0
    • Create the logical volume.
      sudo lvcreate -l 100%VG lvm-raid -n lvm0
    • Confirm creation of logical volume.
      sudo lvdisplay /dev/lvm-raid/lvm0
    • Format the logical volume.
      sudo mkfs.ext3 /dev/lvm-raid/lvm0
    • Mount the volume
      sudo mkdir /media/lvm0
      sudo mount /dev/lvm-raid/lvm0 /media/lvm0
    • Confirm that the volume is mounted.
      df -h /media/lvm0

  4. #14
    Join Date
    Feb 2008
    Beans
    7

    Re: unable to build mdadm raid 5

    Hello

    thanks for the reply

    I'll try your how to when i get a chance

    Chris

Page 2 of 2 FirstFirst 12

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •