可以理解为克隆,备份文件之间是完整且独立的,Proxmox VE 备份始终是完整备份-包含VM / CT配置和所有数据,占用空间较大。备份后可以删除虚拟机,然后从备份文件恢复虚拟机,[备份👉快照模式] 只是虚拟机备份模式中的一种,以最小的不一致风险为代价,提供了最低的操作停机时间。它通过执行 Proxmox VE 实时备份来工作,该备份在VM运行时复制数据块。
GNU Parted 3.2
Using /dev/sda
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted)
执行
print
提示
(parted) print
Model: VMware, VMware Virtual S (scsi)
Disk /dev/sda: 62.3GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:
Number Start End Size File system Name Flags
1 17.4kB 1049kB 1031kB bios_grub
2 1049kB 538MB 537MB fat32 boot, esp
3 538MB 34.4GB 33.8GB lvm
(parted)
扩容LVM,执行
resizepart 3 100%
quit
提示
(parted) resizepart 3 100%
(parted) quit
Information: You may need to update /etc/fstab.
更新物理卷的大小,LVM所在驱动器
如果是emmc,执行
pvresize /dev/mmcblk3
非emmc,执行
pvresize /dev/sda3
提示
Physical volume "/dev/sda3" changed
1 physical volume(s) resized or updated / 0 physical volume(s) not resized
扩容逻辑卷,执行
cat /etc/pve/storage.cfg
提示
dir: local
path /var/lib/vz
content iso,vztmpl,backup
lvmthin: local-lvm
thinpool data
vgname pve
content rootdir,images
执行
lvdisplay
提示
--- Logical volume ---
LV Path /dev/pve/swap
LV Name swap
VG Name pve
LV UUID ArHV9L-H5ZI-M4gs-Gj1M-4bFV-qbWO-K2VYk4
LV Write Access read/write
LV Creation host, time proxmox, 2020-07-02 19:06:14 +0800
LV Status available
# open 2
LV Size <3.88 GiB
Current LE 992
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:0
--- Logical volume ---
LV Path /dev/pve/root
LV Name root
VG Name pve
LV UUID L1MtJ0-LX2s-JfVn-5bTY-WdM8-jfxZ-Gi2oTD
LV Write Access read/write
LV Creation host, time proxmox, 2020-07-02 19:06:14 +0800
LV Status available
# open 1
LV Size 7.75 GiB
Current LE 1984
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:1
--- Logical volume ---
LV Name data
VG Name pve
LV UUID AYiySQ-K6O5-Ye17-XAtF-m154-tRoG-mljDuL
LV Write Access read/write
LV Creation host, time proxmox, 2020-07-02 19:06:15 +0800
LV Pool metadata data_tmeta
LV Pool data data_tdata
LV Status available
# open 0
LV Size <14.00 GiB
Allocated pool data 0.00%
Allocated metadata 1.58%
Current LE 3583
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:4
执行
pvs
lvextend -l +100%FREE /dev/pve/data
提示
Size of logical volume pve/data_tdata changed from <14.00 GiB (3583 extents) to 43.87 GiB (11231 extents).
Logical volume pve/data_tdata successfully resized.