我有一台虚拟机 (fedora),并通过 ssh 连接到它。这台虚拟机分配了一个 300G 容量的虚拟磁盘,但我无法通过 LVM 将其添加到虚拟机,您能一步一步帮助我吗?我只有 ssh 连接
fdisk -l 的输出如下:
[root@localhost /]# fdisk -l
Disk /dev/sda: 300 GiB, 322122547200 bytes, 629145600 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: dos
Disk identifier: 0xe27efc6d
Device Boot Start End Sectors Size Id Type
/dev/sda1 2048 4095 2048 1M 83 Linux
/dev/sda2 * 4096 618495 614400 300M 83 Linux
/dev/sda3 618496 4812799 4194304 2G 82 Linux swap / Solaris
/dev/sda4 4812800 41943039 37130240 17.7G 5 Extended
/dev/sda5 4814848 41943039 37128192 17.7G 83 Linux
lvmdiskscan的结果:
[root@localhost /]# lvmdiskscan
/dev/sda2 [ 300.00 MiB]
/dev/sda3 [ 2.00 GiB]
/dev/sda5 [ 17.70 GiB]
0 disks
3 partitions
0 LVM physical volume whole disks
0 LVM physical volumes
[root@localhost /]#