请教:lvm管理中的snapshot使用失败
huarc 2015-06-25 09:28:09 请问:为什么snapshot不随源LV变化而变化???
1、在服务器上已创建卷组:vg_bc_share, 然后划出一个lv: i-596DEAE9.extend.file,针对此LV创建了一个snapshot
lvcreate -s -n i-596DEAE9.extend.file.snapshot -L 10G vg_bc_shar/ i-596DEAE9.extend.file
结果显示如下:
bc-NW13:~ # lvs | grep 596DEAE9
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、将此卷mount上一台机
/dev/xvdb1 119G 188M 112G 1% /media
并在/media目录下:dd, cp等操作
3、不论以上如何操作: “ Allocated to snapshot 0.00% ” 这个永远不变
bc-NW13:~ # 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