在以下情况下是否可以对单个整个磁盘安装进行 LVM 快照?
root@talon1 ~ # lvs
LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert
root xubuntu-vg -wi-ao---- 464.30g
swap_1 xubuntu-vg -wi-ao---- 980.00m
root@talon1 ~ # vgs
VG #PV #LV #SN Attr VSize VFree
xubuntu-vg 1 2 0 wz--n- <465.26g 0
root@talon1 ~ # fdisk -l
Disk /dev/sda: 465.8 GiB, 500107862016 bytes, 976773168 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: 36D8E4F9-C29B-4F16-ABBB-1ED3F8168A1B
Device Start End Sectors Size Type
/dev/sda1 2048 1050623 1048576 512M EFI System
/dev/sda2 1050624 976771071 975720448 465.3G Linux LVM
Disk /dev/mapper/xubuntu--vg-root: 464.3 GiB, 498539167744 bytes, 973709312 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/xubuntu--vg-swap_1: 980 MiB, 1027604480 bytes, 2007040 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
从这教程,看起来我需要一个单独的分区。
是否还可以动态创建一个 15-16 GB 的小分区并将其用于快照?
答案1
否,除非您向卷组添加另一个磁盘。