User Tools

Site Tools


general:linux:lvmcache

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
general:linux:lvmcache [2021/02/11 08:22] – [And now reattach the cache] sunkangeneral:linux:lvmcache [2021/02/11 08:25] (current) – [And now reattach the cache] sunkan
Line 191: Line 191:
 Follow first two steps above from section "Removing cache from ThinPool0" (do not re-attach the cache of course) Follow first two steps above from section "Removing cache from ThinPool0" (do not re-attach the cache of course)
  
 +Some - before information
 +<code>
 +bigbang:~# lvdisplay -a F3_2TB/ThinPool0_tdata
 +  --- Logical volume ---
 +  Internal LV Name       ThinPool0_tdata
 +  VG Name                F3_2TB
 +  LV UUID                Fyc9Md-c1XD-xpib-dJDw-Obr4-SYL5-G88yqS
 +  LV Write Access        read/write
 +  LV Creation host, time bigbang, 2019-10-12 14:17:30 +0200
 +  LV Cache pool name     ThinPool0_CDLV
 +  LV Cache origin name   ThinPool0_tdata_corig
 +  LV Status              available
 +  # open                 1
 +  LV Size                500.00 GiB
 +  Cache used blocks      99.99%
 +  Cache metadata blocks  18.54%
 +  Cache dirty blocks     0.00%
 +  Cache read hits/misses 644218163 / 453243621
 +  Cache wrt hits/misses  1046297083 / 31441523
 +  Cache demotions        1455727
 +  Cache promotions       1455727
 +  Current LE             128000
 +  Segments               1
 +  Allocation             inherit
 +  Read ahead sectors     auto
 +  - currently set to     256
 +  Block device           253:36
 +</code>
 +
 +<code>
 +bigbang:~# lvchange --cachemode writethrough F3_2TB/ThinPool0_tdata
 +  Flushing 55 blocks for cache F3_2TB/ThinPool0_tdata.
 +  Logical volume F3_2TB/ThinPool0_tdata changed.
 +</code>
 +
 +<code>
 +bigbang:~# lvconvert --splitcache F3_2TB/ThinPool0
 +  Logical volume F3_2TB/ThinPool0_tdata is not cached and cache pool F3_2TB/ThinPool0_CDLV is unused.
 +</code>
 ==== Now extend the ThinPool0 LV ==== ==== Now extend the ThinPool0 LV ====
 <code> <code>
Line 206: Line 245:
   WARNING: Cached thin pool's data cannot be currently resized and require manual uncache before resize!   WARNING: Cached thin pool's data cannot be currently resized and require manual uncache before resize!
   Logical volume F3_2TB/ThinPool0_tdata is now cached.   Logical volume F3_2TB/ThinPool0_tdata is now cached.
 +</code>
 +
 +
 +And some "after" information
 +<code>
 +bigbang:~# lvdisplay -a F3_2TB/ThinPool0_tdata
 +  --- Logical volume ---
 +  Internal LV Name       ThinPool0_tdata
 +  VG Name                F3_2TB
 +  LV UUID                Fyc9Md-c1XD-xpib-dJDw-Obr4-SYL5-G88yqS
 +  LV Write Access        read/write
 +  LV Creation host, time bigbang, 2019-10-12 14:17:30 +0200
 +  LV Cache pool name     ThinPool0_CDLV
 +  LV Cache origin name   ThinPool0_tdata_corig
 +  LV Status              available
 +  # open                 1
 +  LV Size                1.00 TiB
 +  Cache used blocks      0.13%
 +  Cache metadata blocks  12.46%
 +  Cache dirty blocks     10.12%
 +  Cache read hits/misses 0 / 36
 +  Cache wrt hits/misses  3663 / 1530
 +  Cache demotions        0
 +  Cache promotions       1067
 +  Current LE             262144
 +  Segments               1
 +  Allocation             inherit
 +  Read ahead sectors     auto
 +  - currently set to     256
 +  Block device           253:36
 </code> </code>
general/linux/lvmcache.1613031764.txt.gz · Last modified: 2021/02/11 08:22 by sunkan

Donate Powered by PHP Valid HTML5 Valid CSS Run on Debian Driven by DokuWiki