lvm_-_thin_provisioning
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
lvm_-_thin_provisioning [2014/06/23 12:12] – [LVM - Thin provisioning] admin | lvm_-_thin_provisioning [2014/06/23 12:59] – [LVM - Thin provisioning] admin | ||
---|---|---|---|
Line 12: | Line 12: | ||
lvcreate -L 200G -T vg_kvm1/ | lvcreate -L 200G -T vg_kvm1/ | ||
</ | </ | ||
- | |||
- | ===Convert thick LV to thin LV in use by KVM guest=== | ||
- | * Shutdown access to lv, for example shut down KVM guest using that thick LV. < | ||
- | * Create thin lv. < | ||
- | * Copy contents from thick to thin lv. < | ||
- | |||
- | ##or use ' | ||
- | |||
- | dd if=/ | ||
- | |||
- | ## free space not yet available: | ||
- | lvs | ||
- | LV | ||
- | thin_vmpxe vg_kvm1 Vwi-aotz-- | ||
- | |||
- | </ | ||
- | * Edit KVM guest disk location. < | ||
- | * Start KVM guest.< | ||
- | * Enable issue discards in lvm.conf, ' | ||
- | |||
- | |||
- | |||
- | create file xml: | ||
- | < | ||
- | # virsh attach-device --config Guest1 ~/ | ||
- | |||
- | make sure discard=unmap, | ||
- | <disk type=' | ||
- | <driver name=' | ||
- | <source file='/ | ||
- | <target dev=' | ||
- | <address type=' | ||
- | </ | ||
- | |||
lvm_-_thin_provisioning.txt · Last modified: 2021/10/09 15:14 by 127.0.0.1