所以我使用 Gparted 来减小分区的大小。该分区的最小大小为 206598,最大大小为 476939。我尝试将分区大小调整为 206598,但当我这样做时。我收到以下错误。我尝试使用 pvmove,但收到 PE 范围错误,所以我显然没有输入正确的值。
GParted 0.30.0 --enable-libparted-dmraid --enable-online-resize
Libparted 3.2
Shrink /dev/sda1 from 465.76 GiB to 201.76 GiB 00:00:00 ( ERROR )
calibrate /dev/sda1 00:00:00 ( SUCCESS )
path: /dev/sda1 (partition)
start: 2048
end: 976771071
size: 976769024 (465.76 GiB)
shrink file system 00:00:00 ( ERROR )
lvm pvresize -v --yes --setphysicalvolumesize 211556352K '/dev/sda1' 00:00:00 ( ERROR )
0 physical volume(s) resized / 1 physical volume(s) not resized
Wiping internal VG cache
Wiping cache of LVM-capable devices
Archiving volume group "ubuntu-vg" metadata (seqno 7).
WARNING: /dev/sda1: Pretending size is 423112704 not 976769024 sectors.
Resizing volume "/dev/sda1" to 423112704 sectors.
Resizing physical volume /dev/sda1 from 119234 to 51649 extents.
/dev/sda1: cannot resize to 51649 extents as later ones are allocated.
========================================
任何帮助将不胜感激!
答案1
尝试 KDE 分区管理器。我认为 GParted 无法移动已使用的 LVM 扩展。KDE 分区管理器调用它lvm pvmove
来解决您的问题。