找出快照精简卷上的已用空间

我有以下lvmconfiguration

Hard Disk: /dev/sdb (Size 10 GB) VG: vg_root on /dev/sdb THIN_POOL thin_pool occupying the whole physical extent lvcreate -y --extents 100%free --thin vg_root/thin_pool Thin volume on the thin pool lvcreate --name lv_1 --virtualsize 1GB --thinpool vg_root/thin_pool Another thin volume on the thin_pool lvcreate --name lv_2 --virtualsize 2GB --thinpool vg_root/thin_pool mount and create a file of 1 GB on the volume Snapshot volume for lv_2 lvcreate -y --setactivationskip n --snapshot --thinpool vg_root/thin_pool vg_root/lv_2 --name snapshot_1 mount and create a file of 250MB on the volume 

我假设snapshot_1实际使用的空间将是250MB,而不是(1GB + 250MB)。 有没有办法找出snapshot_1(250 MB)上实际使用的物理空间。

 thin_dump -f xml /dev/mapper/vg_root_thin_pool_tmeta 

我将继续讨论同一个问题,因为这些问题可能是有联系的。 让我知道是否需要分开下一个问题:

转储有关逻辑卷的信息。

  begin superblock: "", 3, 8, 128, 326976 device: 1 mapped_blocks: 60 transaction: 0 creation time: 0 snap time: 0 (0..1) -> (0..1), 0 2047 -> 58, 0 4094 -> 57, 0 6141 -> 52, 0 

我们如何将设备ID映射到lvm卷?