I deleted some files in /usr, /var, and /tmp and I got some free space in the root partition (some MB out of 40 GB). Then I was googling and I read how to increase space for the root volume and shrink it for the home.
I'm some 500 km far from that computer so I worked on-line, no backup copies... The filesystem is ext4.
OK, following a number of answers on this issue I used the following commands, in this order:
Code: Select all
# lvextend -L +5G /dev/mapper/VG0-root
# lvreduce -L -5G /dev/mapper/VG0-home
# resize2fs /dev/mapper/VG0-root
Code: Select all
# resize2fs /dev/mapper/VG0-home
My last action (so bad in the end!) was rebooting the system... now it does not boot and the server is unreachable in remote. At present I cannot provide outputs from lvs or gvs
My next move: I'll travel tomorrow to the place where the computer is and will try to boot into it with a Linux Mint distro from an USB drive. But I do not know if just reversing the lvreduce it will work.
I very much appreciate any help someone could give me on this.
The system is critical and I do need to recover it. Yes, at these moments one realizes how bad and dangerous is not doing backups