我尝试按照不同的答案,例如这里 [0],但所有这些说明都失败了,因为 system-config-lvm GUI 报告根分区已满,但当我启动它时,我可以检查实际上只使用了一半的磁盘空间。
编辑
df -h 的输出
Filesystem Size Used Avail Use% Mounted on
udev 946M 0 946M 0% /dev
tmpfs 193M 21M 173M 11% /run
/dev/mapper/ubuntu16server--vg-root 26G 16G 8.4G 66% /
tmpfs 965M 0 965M 0% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 965M 0 965M 0% /sys/fs/cgroup
/dev/sda1 30G 11G 20G 35% /media/usb0
/dev/mmcblk0p2 473M 121M 329M 27% /boot
/dev/mmcblk0p1 511M 3.4M 508M 1% /boot/efi
tmpfs 193M 0 193M 0% /run/user/1000
sudo pvs 的输出
/dev/mmcblk0rpmb: read failed after 0 of 4096 at 4128768: Input/output error
/dev/mmcblk0rpmb: read failed after 0 of 4096 at 4186112: Input/output error
/dev/mmcblk0rpmb: read failed after 0 of 4096 at 0: Input/output error
/dev/mmcblk0rpmb: read failed after 0 of 4096 at 4096: Input/output error
PV VG Fmt Attr PSize PFree
/dev/mmcblk0p3 ubuntu16server-vg lvm2 a-- 28.14g 16.00m
sudo vgs 的输出
VG #PV #LV #SN Attr VSize VFree
ubuntu16server-vg 1 2 0 wz--n- 28.14g 16.00m
sudo lvs 的输出
LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert
root ubuntu16server-vg -wi-ao---- 26.20g
swap_1 ubuntu16server-vg -wi-ao---- 1.93g
df -i 的输出
Filesystem Inodes IUsed IFree IUse% Mounted on
udev 241942 478 241464 1% /dev
tmpfs 247010 732 246278 1% /run
/dev/mapper/ubuntu16server--vg-root 1716960 135983 1580977 8% /
tmpfs 247010 1 247009 1% /dev/shm
tmpfs 247010 5 247005 1% /run/lock
tmpfs 247010 16 246994 1% /sys/fs/cgroup
/dev/sda1 0 0 0 - /media/usb0
/dev/mmcblk0p2 124928 301 124627 1% /boot
/dev/mmcblk0p1 0 0 0 - /boot/efi
tmpfs 247010 4 247006 1% /run/user/1000