执行时fdisk -l
有两个“Linux LVM”分区,但使用时lvs
不返回任何内容并lvmdiskscan
返回“0 LVM 物理卷”。
我应该使用什么工具来与这些分区交互?(缩小、调整大小等)
sudo fdisk -l
给出
Disk /dev/sda: 477 GiB, 512110190592 bytes, 1000215216 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: CED3CBCF-A524-4E54-8A0D-0341958E40C2
Device Start End Sectors Size Type
/dev/sda1 2048 4095 2048 1M BIOS boot
/dev/sda2 4096 1052671 1048576 512M Linux LVM
/dev/sda3 1052672 868701837 867649166 413.7G Linux LVM
/dev/sda4 868702208 1000215182 131512975 62.7G Linux swap
Disk /dev/sdc: 477 GiB, 512110190592 bytes, 1000215216 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/sdb: 477 GiB, 512110190592 bytes, 1000215216 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
lvmdiskscan
给出
/dev/sda2 [ 512.00 MiB]
/dev/sda3 [ 413.73 GiB]
/dev/sda4 [ 62.71 GiB]
/dev/sdb [ 476.94 GiB]
/dev/sdc [ 476.94 GiB]
2 disks
3 partitions
0 LVM physical volume whole disks
0 LVM physical volumes
df
给出
Filesystem Size Used Avail Use% Mounted on
dev 32G 0 32G 0% /dev
run 32G 628K 32G 1% /run
/dev/sda3 79G 1.2G 74G 2% /
tmpfs 32G 0 32G 0% /dev/shm
tmpfs 32G 0 32G 0% /sys/fs/cgroup
tmpfs 32G 0 32G 0% /tmp
/dev/sda2 488M 28M 425M 7% /boot
tmpfs 6.3G 0 6.3G 0% /run/user/1000
pvscan
返回
No matching physical volumes found
vgscan
返回
Reading volume groups from cache.
vgs
并且pvs
不返回任何内容
从 Ubuntu 14.04 实时 CD执行操作时fdisk -l
,分区被报告为Linux
而不是Linux LVM
,其 ID 为 83 而不是 8e,可能是安装在 arch 安装上的工具错误地将分区检测为 LVM,而 LVM 工具知道它们不是 LVM 分区并忽略它们?