我有一个 Ubuntu Server 的虚拟实例正在运行。将虚拟磁盘从 37GB 增加到 50GB,但现在坚持为 LVM 获取额外空间。
我尝试了 lvextend 和 resize2fs ,结果如下;
sudo lvextend -L +14G /dev/ubuntu-vg/ubuntu-lv
Insufficient free space: 3584 extents needed, but only 0 available
sudo resize2fs -p /dev/ubuntu-vg/ubuntu-lv
The filesystem is already 9042944 (4k) blocks long. Nothing to do!
sudo lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
loop0 7:0 0 55.4M 1 loop /snap/core18/2066
loop1 7:1 0 70.3M 1 loop /snap/lxd/21029
loop2 7:2 0 67.6M 1 loop /snap/lxd/20326
loop3 7:3 0 32.3M 1 loop /snap/snapd/12704
loop4 7:4 0 55.5M 1 loop /snap/core18/2074
loop5 7:5 0 32.3M 1 loop /snap/snapd/12398
sda 8:0 0 50G 0 disk
├─sda1 8:1 0 512M 0 part /boot/efi
├─sda2 8:2 0 1G 0 part /boot
└─sda3 8:3 0 48.5G 0 part
└─ubuntu--vg-ubuntu--lv 253:0 0 34.5G 0 lvm /
sr0 11:0 1 1024M 0 rom
我在哪一步完全空白?