Search code examples
linuxdebiandiskspace

Home directory is full. How to increase it's size?


Please see the image below.

Notice that my /home directory is already 100% but I still got plenty of space on /dev/mapper/vg00-srv. Is there a way that I can use that space for my /home or rather increase the size of my /home directory. This is a Debian box.

Debian server

Your response is greatly appreciated.


Solution

  • sudo su -
    umount /srv
    resize2fs /dev/mapper/vg00-srv 800G
    lvresize -L 810G /dev/mapper/vg00-srv
    lvresize -L +80G /dev/mapper/vg00-home
    resize2fs /dev/mapper/vg00-home
    mount /srv