Portal Home > Knowledgebase > Articles Database > Help Needed Merging 2 HDD`s


Help Needed Merging 2 HDD`s




Posted by SarKarRaj, 10-25-2009, 12:53 PM
Hi, I have 2 HDD`s on linux server , 1 have named as /home and the other as /home1 . I wanted to merge /home1 into /home And it should appear as whole as /home . Can anybody please tell me the commands to do that . Thanks in advance.

Posted by eth00, 10-25-2009, 01:07 PM
You could reformat them and use LVM to do this. You could also use RAID0 ...neither of which I would recommend. If you are going to be having 2 hard drives combined like that you are going to set yourself up for failure. If one of the two hard drives fails you will have a lot of problems on your hands. If you are by chance using cPanel you can have home and home1 and the system will put accounts on both.

Posted by luki, 10-25-2009, 01:07 PM
Chances are those two partitions are different in size, so you'll need to use LVM to create a volume group composed of those two physical volumes, and then make a logical volume for home and set up a file system on it. Note that to do that you must copy the data elsewhere and then copy it back onto the newly formatted logical volume. Also note that if you lose one disk, you lose all the data. There is no redundancy. This is equivalent to a RAID0 setup. There is no simple set of commands to do it, so unless you really understands that needs to be done, hire someone who does.

Posted by PCS-Chris, 10-25-2009, 01:12 PM
As others have said, you would be better off putting both disks into a LVM volume group and then create a single /home partition from that. Using LVM would also allow you to add additional drives to the volume group at a later date, to add additional storage.



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read