- 论坛徽章:
- 0
|
请问:为什么snapshot没有随源LV变化而变化??
1、在LVM中已创建vg: vg_bc_share, 并创建一个lv:i-596DEAE9.extend.file, 针对此LV创建snapshot:
lvcreate -s -n i-596DEAE9.extend.file.snapshot -L 10G vg_bc_share/i-596DEAE9.extend.file
结果如下:
i-596DEAE9.extend.file vg_bc_share owi-a- 120.01g
i-596DEAE9.extend.file.snapshot vg_bc_share swi-a- 10.00g i-596DEAE9.extend.file 0.00
2、将卷 i-596DEAE9.extend.file 挂载上一台机(mount )
/dev/xvdb1 119G 188M 112G 1% /media
并在/media目录下,dd 或 cp 些文件,结果 “Allocated to snapshot 0.00%” 没有任何的变化
# lvdisplay vg_bc_share/i-596DEAE9.extend.file.snapshot
--- Logical volume ---
LV Name /dev/vg_bc_share/i-596DEAE9.extend.file.snapshot
VG Name vg_bc_share
LV UUID Ixt03f-q0Cd-m97y-IFdT-pQdt-T8rJ-B0cB5L
LV Write Access read/write
LV snapshot status active destination for /dev/vg_bc_share/i-596DEAE9.extend.file
LV Status available
# open 0
LV Size 120.01 GiB
Current LE 30722
COW-table size 10.00 GiB
COW-table LE 2560
Allocated to snapshot 0.00%
Snapshot chunk size 4.00 KiB
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 2048
Block device 253:153
|
|