请教: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
...全文
313 回复 打赏 收藏 转发到动态 举报
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

19,612

社区成员

发帖
与我相关
我的任务
社区描述
系统使用、管理、维护问题。可以是Ubuntu, Fedora, Unix等等
社区管理员
  • 系统维护与使用区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧