lvm_-_thin_provisioning
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
lvm_-_thin_provisioning [2014/06/23 12:12] – [LVM - Thin provisioning] admin | lvm_-_thin_provisioning [2014/06/23 19:48] – [LVM - Thin provisioning] admin | ||
---|---|---|---|
Line 4: | Line 4: | ||
< | < | ||
# create thin pool | # create thin pool | ||
- | lvcreate -L 200G vg_kvm1/ | + | lvcreate -L 200G -T vg_kvm1/ |
# create thin lv | # create thin lv | ||
lvcreate -V32G -T vg_kvm1/ | lvcreate -V32G -T vg_kvm1/ | ||
+ | |||
+ | lvcreate -V1G -T vg001/ | ||
# create thin pool and lv in one command | # create thin pool and lv in one command | ||
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