H h.b.c New Member Apr 15, 2023 4 0 1 Apr 15, 2023 #1 Hello Initially I created my devian VM with 30G disk, and resize to about 212G in GUI. But the increased size has not been reflected actually. I searched some articles and tried "lvextend" command, but failed. How do I do? Please help me. Thanks.
Hello Initially I created my devian VM with 30G disk, and resize to about 212G in GUI. But the increased size has not been reflected actually. I searched some articles and tried "lvextend" command, but failed. How do I do? Please help me. Thanks.
V vashvampir Member Dec 4, 2021 45 33 18 31 Russia, Moscow Apr 15, 2023 #2 Hello! Hello. The lvextend command will not help in this case, since you do not have LVM. In your case you need: 1. Turn off swap (swapoff /dev/sda3) 2. Remove swap partition 3. Expand the root partition (for example you may see this guide https://linuxconfig.org/how-to-resize-ext4-root-partition-live-without-umount or https://support.tools/post/online-resize-of-a-root-ext4-file-system/) 4. Create (if needed) a new swap partition (or swapfile) 5. Expand the root file system (resize2fs /dev/sda2)
Hello! Hello. The lvextend command will not help in this case, since you do not have LVM. In your case you need: 1. Turn off swap (swapoff /dev/sda3) 2. Remove swap partition 3. Expand the root partition (for example you may see this guide https://linuxconfig.org/how-to-resize-ext4-root-partition-live-without-umount or https://support.tools/post/online-resize-of-a-root-ext4-file-system/) 4. Create (if needed) a new swap partition (or swapfile) 5. Expand the root file system (resize2fs /dev/sda2)