- 論壇徽章:
- 0
|
請(qǐng)問:為什么snapshot沒有隨源LV變化而變化??
1、在LVM中已創(chuàng)建vg: vg_bc_share, 并創(chuàng)建一個(gè)lv:i-596DEAE9.extend.file, 針對(duì)此LV創(chuàng)建snapshot:
lvcreate -s -n i-596DEAE9.extend.file.snapshot -L 10G vg_bc_share/i-596DEAE9.extend.file
結(jié)果如下:
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 掛載上一臺(tái)機(jī)(mount )
/dev/xvdb1 119G 188M 112G 1% /media
并在/media目錄下,dd 或 cp 些文件,結(jié)果 “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
|
|