root@Debian-1205-bookworm-amd64-base ~ # pvcreate -ff /dev/sdb Cannot use /dev/sdb: device is partitioned root@Debian-1205-bookworm-amd64-base ~ # vgextend vg0 /dev/sdb Cannot use /dev/sdb: device is partitioned Command requires all devices to be found. root@Debian-1205-bookworm-amd64-base ~ # lvresize -l +100%FREE vg0/root New size (9637 extents) matches existing size (9637 extents). root@Debian-1205-bookworm-amd64-base ~ # resize2fs /dev/vg0/root resize2fs 1.47.0 (5-Feb-2023) The filesystem is already 9868288 (4k) blocks long. Nothing to do!
先确认下,/dev/sdb是你空闲的数据盘,里面没有数据也没有在用的话,就删除sdb的分区,然后再继续按照你的这个教程操作。 cd /; umount /dev/sdb*; apt install -y parted; parted /dev/sdb -s mklabel gpt;