lvm change cache mode

lvs -o+cache_mode,cache_settings /dev/centos/data
LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert CacheMode CacheSettings
data centos Cwi-aoC— <2.54t [lv_cache] [data_corig] 3.16 0.09 0.00 writethrough

lvchange –cachemode writeback centos/data
Logical volume centos/data changed

lvs -o+cache_mode,cache_settings /dev/centos/data
LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert CacheMode CacheSettings
data centos Cwi-aoC— <2.54t [lv_cache] [data_corig] 3.72 0.09 0.00 writeback

Leave a Reply

Your email address will not be published. Required fields are marked *