1panel挂载磁盘与实际不符
自建ubuntu服务器有200G,打开1panel查看磁盘只有100G
解决方法:
df -h / 命令的输出显示:
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/ubuntu--vg-ubuntu--lv 97G 7.5G 84G 9% /
root@iptv:~# sudo lvdisplay /dev/ubuntu-vg/ubuntu-lv
--- Logical volume ---
LV Path /dev/ubuntu-vg/ubuntu-lv
LV Name ubuntu-lv
VG Name ubuntu-vg
LV UUID kCoam9-w4Mj-24e3-UBPx-l0ya-al9p-tLKExK
LV Write Access read/write
LV Creation host, time ubuntu-server, 2025-02-16 12:52:46 +0000
LV Status available
LV Size <196.95 GiB Current LE 50418 Segments 1 Allocation inherit Read ahead sectors auto - currently set to 256 Block device 252:0 运行 resize2fs 命令,调整文件系统大小以使用逻辑卷上的所有空间: sudo resize2fs /dev/ubuntu-vg/ubuntu-lv 再次验证,已成功 root@iptv:~# df -h /