今天想把虚拟机系统磁盘扩容,运行VGDISPLAY时,没有显示,这是什么原因?在如此情况下,如何才能知道卷组名?谢谢。
[[email protected] ~]# df -Th
Filesystem Type Size Used Avail Use% Mounted on
devtmpfs devtmpfs 7.9G 0 7.9G 0% /dev
tmpfs tmpfs 7.9G 0 7.9G 0% /dev/shm
tmpfs tmpfs 7.9G 9.1M 7.9G 1% /run
tmpfs tmpfs 7.9G 0 7.9G 0% /sys/fs/cgroup
/dev/sda2 xfs 30G 8.7G 21G 30% /
/dev/sda1 xfs 497M 90M 408M 19% /boot
/dev/sdb1 ext4 63G 53M 60G 1% /mnt/resource
tmpfs tmpfs 1.6G 0 1.6G 0% /run/user/1000
tmpfs tmpfs 1.6G 0 1.6G 0% /run/user/0
[[email protected] ~]# lsblk -f
NAME FSTYPE LABEL UUID MOUNTPOINT
fd0
sda
├─sda1 xfs efd62c66-c0c1-45b1-848f-ec800f6243e7 /boot
├─sda2 xfs 2c32741d-19d6-4f09-bdbc-a28db4e1d338 /
└─sda3
sdb
└─sdb1 ext4 12c78381-291e-4de0-932a-cf983503c122 /mnt/resource
[[email protected] ~]# fdisk -l
Disk /dev/sdb: 68.7 GB, 68719476736 bytes, 134217728 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk label type: dos
Disk identifier: 0x69c549c6
Device Boot Start End Blocks Id System
/dev/sdb1 128 134215679 67107776 83 Linux
Disk /dev/sda: 42.9 GB, 42949672960 bytes, 83886080 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk label type: dos
Disk identifier: 0x000d853c
Device Boot Start End Blocks Id System
/dev/sda1 * 2048 1026047 512000 83 Linux
/dev/sda2 1026048 62914559 30944256 83 Linux
/dev/sda3 62914560 83886079 10485760 83 Linux
[[email protected] ~]# vgdisplay
[[email protected] ~]#
可以把SDB1容量减小扩充到系统盘上吗?怎么把sda3扩充到sda2上?谢谢!
吉林网友:运行前先看看自己硬盘格式是不是LVM吧,无脑扩容最为致命
吉林网友:
[[email protected] ~]# df -Th
Filesystem Type Size Used Avail Use% Mounted on
devtmpfs devtmpfs 7.9G 0 7.9G 0% /dev
tmpfs tmpfs 7.9G 0 7.9G 0% /dev/shm
tmpfs tmpfs 7.9G 9.1M 7.9G 1% /run
tmpfs tmpfs 7.9G 0 7.9G 0% /sys/fs/cgroup
/dev/sda2 xfs 30G 8.7G 21G 30% /
/dev/sda1 xfs 497M 90M 408M 19% /boot
/dev/sdb1 ext4 63G 53M 60G 1% /mnt/resource
tmpfs tmpfs 1.6G 0 1.6G 0% /run/user/1000
tmpfs tmpfs 1.6G 0 1.6G 0% /run/user/0
[[email protected] ~]# lsblk -f
NAME FSTYPE LABEL UUID MOUNTPOINT
fd0
sda
├─sda1 xfs efd62c66-c0c1-45b1-848f-ec800f6243e7 /boot
├─sda2 xfs 2c32741d-19d6-4f09-bdbc-a28db4e1d338 /
└─sda3
sdb
└─sdb1 ext4 12c78381-291e-4de0-932a-cf983503c122 /mnt/resource
[[email protected] ~]# fdisk -l
Disk /dev/sdb: 68.7 GB, 68719476736 bytes, 134217728 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk label type: dos
Disk identifier: 0x69c549c6
Device Boot Start End Blocks Id System
/dev/sdb1 128 134215679 67107776 83 Linux
Disk /dev/sda: 42.9 GB, 42949672960 bytes, 83886080 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk label type: dos
Disk identifier: 0x000d853c
Device Boot Start End Blocks Id System
/dev/sda1 * 2048 1026047 512000 83 Linux
/dev/sda2 1026048 62914559 30944256 83 Linux
/dev/sda3 62914560 83886079 10485760 83 Linux
[[email protected] ~]# vgdisplay
[[email protected] ~]#
这个怎么看?
黑龙江网友:从头到脚没有lvm