Results 1 to 5 of 5

Thread: 2nd RAID 0 array

  1. #1
    Join Date
    Apr 2009
    Location
    Surrey, London
    Beans
    291
    Distro
    Ubuntu

    2nd RAID 0 array

    Hi all,

    i have ubuntu 10.10 64bit install on 2x 500gb hard drives and all works fine however i have two more 250gb hard drives that i have put in a different raid 0 array and when i try to create a partition using the disk utility i get this error message.

    Error creating partition: helper exited with exit code 1: In part_add_partition: device_file=/dev/dm-0, start=0, size=499994853376, type=0x83
    Entering MS-DOS parser (offset=0, size=499994853376)
    MSDOS_MAGIC found
    looking at part 0 (offset 32256, size 499990063104, type 0x83)
    new part entry
    looking at part 1 (offset 0, size 0, type 0x00)
    new part entry
    looking at part 2 (offset 0, size 0, type 0x00)
    new part entry
    looking at part 3 (offset 0, size 0, type 0x00)
    new part entry
    Exiting MS-DOS parser
    MSDOS partition table detected
    containing partition table scheme = 0
    got it
    got disk
    new partition
    added partition start=512 size=31744
    committed to disk
    Error doing BLKPG ioctl with BLKPG_ADD_PARTITION for partition 2 of size 512 at offset 31744 on /dev/dm-0: Invalid argument
    how do i fix this ?
    Ubuntu 18.04 VMs

  2. #2
    Join Date
    Apr 2009
    Location
    Surrey, London
    Beans
    291
    Distro
    Ubuntu

    Re: 2nd RAID 0 array

    i have also tried gparted live CD with no luck
    Ubuntu 18.04 VMs

  3. #3
    Join Date
    Apr 2009
    Location
    Surrey, London
    Beans
    291
    Distro
    Ubuntu

    Re: 2nd RAID 0 array

    I have fixed the problem doing the following:

    run this command on the drives in the broken array

    sudo dmraid -rE
    I then went in to the RAID menu (just after bios) and deleted the array then re-made it.

    after this i booted up ubuntu again and used the disk utility to create a partition on the raid.

    hope this helps....
    Ubuntu 18.04 VMs

  4. #4
    Join Date
    Oct 2008
    Location
    Norway
    Beans
    57

    Re: 2nd RAID 0 array

    I think there is something wrong with dmraid. If you investigate i think you will realize that there is actually no path called: /dev/dm-0

  5. #5
    Join Date
    Feb 2007
    Beans
    Hidden!

    Re: 2nd RAID 0 array

    I ran into this today with my HTPC which is using NVRAID.
    I originally had 2 drives mirrored which Ubuntu didn't have a problem with... during the install. Later I wanted to add secondary storage so I figured I would use the Disk Utility. Obviously I got the "error doing with BLKPG" i dropped and recreated the RAID collection many times which didn't work.

    Then i decided to do the entire creation via command line and was able to pull it off. I basically used bits and pieces of this: http://en.gentoo-wiki.com/wiki/RAID/NVRAID_with_dmraid

    1.
    Code:
    sudo dmraid -rE
    to remove the old raid metadata
    2.
    Code:
    sudo reboot
    Reboot. After the BIOS recreate your Raid collection within the onboard RAID disk utility.
    3.
    Code:
    sudo dmraid -r
    to look at what drives are involved in the raid collection. Copy the part that says nvidia_xxxxxx" which correlates to your drives.
    4.
    Code:
    sudo fdisk /dev/mapper/nvidia_xxxxx
    create your partition
    5.
    Code:
    sudo reboot
    Reboot
    6.
    Code:
    sudo mkfs.ext4 /dev/mapper/nvidia_xxxxx
    create your file system...and your done. Now it appears within the Disk Utility like the others and you can mount it.

Tags for this Thread

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
  •