Right now I have a raid1 of two 14tb drives on my file server. It's nearly full, so I'm adding a second raid-1 pair and moving to a raid1+0 configuration.
I created the new raid1 pair like this:
Code:
sudo mdadm --create dev/md/mirror_b /dev/sdc /dev/sdd --level=1 --raid-devices=2
I created an empty ext4 filesystem on it, then created the raid0 connecting them like this:
Code:
sudo mdadm --create dev/md/main_raid /dev/md/mirror_a /dev/md/mirror_b --level=0 --raid-devices=2
This created a new 28tb raid0 drive, as I expected. Unfortunately, it's just showing up as 28tb of "Unknown".
I feel like I'm missing a step to get my files back. Is there a command to get mdadm to set up a filesystem with the files already on the drives? I'm trying to turn that 28tb of "Unknown" with a 28tb ext4 filesystem with 14tb of it already full.
I made a backup of everything before I started this process, so if I've ruined this and have no choice but to format the 28tb drive and start over, I can do that. But if there's a proper way to do this, it's worth it to me to learn what it is -- it will save me a whole day waiting for a 14tb file copy, and save a small amount of data that was written to the drive after I made the backup I'd be restoring from.
If I did screw this up, what was the proper way to do it? Should I have created the raid0 with only the new drive pair, copied everything onto it, wiped the old drive pair, and then expanded the new raid0 to use it?
I'm definitely still a linux newbie so any and all help is greatly appreciated.
Bookmarks