Hi. I've got a working Ubuntu 12.04 server, which is going to serve as media server. I've added two disks of size 3TB to put my data on, and I wish to combine these as one 6TB logical volume which I could mount under /media
.
So far, I have created one partition on each disks with fdisk
and formatted them to ext3. But now I am stuck on how to continue. Do I use Mdadm to create a Jbod array? Or do I use LVM to make a logical volume of these two disks? I can't seem to find the documentation I need, it's mostly about extending existing volumes or installing a fresh system which I don't need.
My OS is on /dev/sdc1
(it's a USB thumb-drive), and the two newly created partitions are on /dev/sda1
and /dev/sdb1
.
Hope you can give me some directions.
Best Answer
You should have a look at this detailed answer.
Here's a summary of it:
The diagram I copied from this answer visualises this (but with three filesystems, rather than just one):
As you can see, creating an ext3 filesystem is the last step, not the first. If you have an existing ext3 partition that isn't in LVM, you can't migrate it to LVM. You'll have to backup the partition, delete the partition, setup LVM, and then copy the files back.