mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-18 10:04:20 +03:00
5bb6266046
Add this functionality to lvconvert: 'lvconvert --thin cachedLV --thinpool vg/poll' Converts cachedLV to external origin (which will be read-only). New thin volume is created in thinpool LV and it's using external origin as source for unprovisioned chunks. This conversion happens online (while volume is in use). Thin LV remains fully writable. Cached external origin no longer could be written so cache will be used ONLY for read operations. For this limitation we require cache mode to be writethrough (as writeback cannot write to read-only volumes). When thinLV is later removed cached external origin is again fully usable, just note, LV remain in 'read-only' mode. When read-write is needed, 'lvchange -prw' has to be used. Single external origin could be user by multiple thinLV in multiple differen thin pool.