掃描目前實體卷冊的狀態
# pvscan
PV /dev/sda3 VG pve lvm2 [118.99 GiB / 14.61 GiB free]
Total: 1 [118.99 GiB] / in use: 1 [118.99 GiB] / in no VG: 0 [0 ]
掃描目前卷冊群組的狀態
# vgscan
Reading all physical volumes. This may take a while…
Found volume group “pve” using metadata type lvm2
顯示目前系統上面的 VG 狀態
# vgdisplay pve
— Volume group —
VG Name pve
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 80
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 5
Open LV 2
Max PV 0
Cur PV 1
Act PV 1
VG Size 118.99 GiB
PE Size 4.00 MiB
Total PE 30461
Alloc PE / Size 26720 / 104.38 GiB
Free PE / Size 3741 / 14.61 GiB
VG UUID M7GUTE-om2m-DMcv-1D0G-o3FQ-Ta3I-HCsZa3
[@more@]
# lvs
LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert
data pve twi-aotz– 66.74g 1.69 1.36
root pve -wi-ao—- 29.50g
snap_vm-103-disk-1_OK pve Vri—tz-k 8.00g data vm-103-disk-1
swap pve -wi-ao—- 8.00g
vm-103-disk-1 pve Vwi-a-tz– 8.00g data 13.88
顯示硬碟分割
# fdisk -l
Device Start End Sectors Size Type
/dev/sda1 2048 4095 2048 1M BIOS boot
/dev/sda2 4096 528383 524288 256M EFI System
/dev/sda3 528384 250069646 249541263 119G Linux LVM
Disk /dev/mapper/pve-root: 29.5 GiB, 31675383808 bytes, 61865984 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/mapper/pve-swap: 8 GiB, 8589934592 bytes, 16777216 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/mapper/pve-vm–103–disk–1: 8 GiB, 8589934592 bytes, 16777216 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 65536 bytes / 65536 bytes
掃描目前邏輯卷冊的狀態
# lvscan
ACTIVE ‘/dev/pve/swap‘ [8.00 GiB] inherit
ACTIVE ‘/dev/pve/root‘ [29.50 GiB] inherit
ACTIVE ‘/dev/pve/data‘ [66.74 GiB] inherit
ACTIVE ‘/dev/pve/vm-103-disk-1‘ [8.00 GiB] inherit
inactive ‘/dev/pve/snap_vm-103-disk-1_OK‘ [8.00 GiB] inherit
# vgs
VG #PV #LV #SN Attr VSize VFree
pve 1 5 0 wz–n- 118.99g 14.61g