VMWare Ubuntu 20.04 increase disk

The disk of my Ubuntu 20.04 used for development was originally 20Gb, and I increased it to 30GB a while ago. This time, the capacity was insufficient again, so I increased it to 50 GB. Every time I did this work, I had a hard time, so I'm going to leave it as a simple post so that I don't repeat the trouble afterwards. The following is a disk with 30 GB status. The usage is 50%. However, this is because there was not enough disk and the files were temporarily moved to another location. After increasing the disk capacity, the backed up files will be imported again. root@ubuntusrv:~# df -h Filesystem Size Used Avail Use% Mounted on udev 937M 0 937M 0% /dev tmpfs 196M 1.3M 195M 1% /run /dev/mapper/ubuntu--vg-ubuntu--lv 29G 14G 14G 50% / tmpfs 980M 0 980M 0% /dev/shm tmpfs 5.0M 0 5.0M 0% /run/lock tmpfs ...