3

I want to extend my root volume but I think I'm missing a crucial step.

In the /etc/fstab file I found following entries:

enter image description here

After lvdisplay I get following results:

enter image description here

So it looks like the LV size is 40.00GiB

As final check I entered the following command: df -h

enter image description here

Where is the remaining disk space?

Just to clear a few things out: I'm not a server guy, but a software engineer. The guy who created the servers(templates) said it would be easy to extend the disks. He already tried a few hours to do this, but wasn't able to complete the task. So, could someone help me to solve this issue (or give an appropriate solution)?

  • 2
    Please use use cut-and-paste for posting console output and format it as "code" or "<pre>" rather than posting screenshots. That often improves readability, attracts better answers and allows indexing by search engines, which may help people with similar questions. – HBruijn Dec 16 '15 at 10:45
4

Last time I had to extend memory on an ubuntu device (14.04) I used the command lvdisplay, lvextend and resize2fs.

using sudo lvdisplay, note the LV Path and the Free PE/Size (should be a plain number).

after that, I used sudo lvextend -l <Free PE/Size> <LV Path>.

lastly the command sudo resize2fs <LV Path> did the actual resizing.

I checked to see if it was done with Df -h.

I hope this helps.

| improve this answer | |
  • 1
    I forgot the resize2fs command! Now it works :) – GuyT Dec 16 '15 at 9:31

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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