0

So I'm completely new to Ubuntu and am trying to set up a backup/media server at home. I saw the guide on Lifehacker and figured I'd give it a try.

My system is an i3 3225 on an Intel DH77DF mobo with 8GB of ram. There's a 64GB mSATA SSD as the boot drive and two 4TB WD Red drives for the RAID1 configuration.

I installed Ubuntu 14.04 LTS in UEFI mode on the SSD without issues but as soon as I create the software RAID1 (and it finishes syncing after 9 hours), gparted gives me the following errors:

Libparted Bug Found!

End of file while reading Invalid argument

The primary GPT table is corrupt, but the backup appears OK, so that will be used.

These appear twice as almost for each 4TB drive.

Am I doing something wrong when creating the RAID? The RAID also appears as md127 if that helps.

Thanks, Mark

PS - This RAID setup has been a huge pain so far and I could write a good rant but I'll refrain for now. For example, mdadm wasn't initially installed so I had to figure that out. This was also after the fact I found out BIOS RAID is really FakeRAID.

2 Answers2

1

Apparently you have some leftover broken partition tables on the drives. This causes the version of libparted in Ubuntu to refuse to operate on it. Wipe it out so you can start fresh with dd:

sudo dd if=/dev/zero count=64 of=/dev/md127

Alternatively you should be able to use the disk utility to create a new partition table on the raid array. After either of these, you should be able to use gparted.

psusi
  • 38,031
0

With the help of a friend I figured it out!!

After doing more research because I wasn't entirely satisfied with having to create two raids on one set of drives (no offence), I managed to set it up how I want it. Moving over to the terminal rather than the GUI helped a lot and the big issue was left over GPT table data from my previous raid attempts. Once I figured out how to clear that data and create the raid from scratch, I had no other issues.

To check for left over data:
sudo mdadm -D /dev/sda
retuns "..does not appear to be an md device." (same for /sdb)

But when I go to create the raid:
sudo mdadm –create /dev/md1 –level=1 –raid-devices=2 /dev/sda /dev/sdb
returns "../Dev/sda appears to be part of a raid array..."

So to clear the old GPT data I had to go to each drive and:

sudo gdisk /dev/sda 2 (for GPT) x (for expert commands) z (wipe the gpt data) Yes Yes
(credit goes to @Steve HHH for his answer here)

From there I created the raid1 in the terminal rather than the GUI using the same code above:

sudo mdadm –create /dev/md1 –level=1 –raid-devices=2 /dev/sda /dev/sdb

After that finished syncing I used the GUI based GParted to create the separate partitions and no more errors are appearing. I can finally move forward with this media server!