Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

It's a server with 128GB SSD.

There are two LVs, / and /home.

I want to combine them into one since the space is limited. I checked the HOW-TO but didn't found the tutorial for this task.

How can I combine them?

share|improve this question
    
I guess you don't have this problem anymore, but I had a similar problem a while back. unix.stackexchange.com/a/67993/32067 Maybe my answer will help others. –  Nick ODell Jun 10 '13 at 21:21
add comment

1 Answer

up vote 3 down vote accepted

As they are distinct file systems, the only way to merge them would be copy the contents over and afterwards remove the other one.

But I don't see that you'll gain very much free space. To me, this config seems ideal:

  • a / of about 10 GiB, maybe more,
  • a /home of the needed size, and
  • resize the one or other as needed.
share|improve this answer
    
Thanks. Your idea worked for me and here is the tutorial that I followed. linux-bsd-sharing.blogspot.com/2012/06/… –  Cheng Jun 18 '12 at 16:13
    
If only one volume's contents need to be retained, one could use something like resize2fs after adding the space from the "unneeded" logical volume onto the end of the "needed" one... [I'm stuck in a similar situation with a system that has a too-small root partition; I don't want to reinstall, and I've got a spare logical volume on the same disk... >< ] –  snogglethorpe Jun 10 '13 at 1:43
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.