Skip to main content
We’ve updated our Terms of Service. A new AI Addendum clarifies how Stack Overflow utilizes AI interactions.
Commonmark migration
Source Link

The lvmcache(7) manpage describes how you can remove the cache pool without removing its origin volume:

###Removing a cache pool LV without removing its linked origin LV

Removing a cache pool LV without removing its linked origin LV

This writes back data from the cache pool to the origin LV when necessary, then removes the cache pool LV, leaving the un-cached origin LV.

lvremove VG/CachePoolLV

Example:

# lvs vg
  LV     VG   Attr       LSize   Pool   Origin
  cache0 vg   Cwi---C---  10.00g
  lvol0  vg   Cwi-a-C--- 100.00g cache0 [lvol0_corig]

# lvremove vg/cache0

# lvs vg
  LV    VG   Attr       LSize   Pool Origin
  lvol0 vg   -wi-a----- 100.00g

So in my case, I would do lvremove anson-TA75MH2/lv_cache. This does nessesitate recreating the cache pool from scratch, but that is OK, just slightly bothersome. (I plan on doing this within the next few minutes if nobody posts anything better.)

The lvmcache(7) manpage describes how you can remove the cache pool without removing its origin volume:

###Removing a cache pool LV without removing its linked origin LV

This writes back data from the cache pool to the origin LV when necessary, then removes the cache pool LV, leaving the un-cached origin LV.

lvremove VG/CachePoolLV

Example:

# lvs vg
  LV     VG   Attr       LSize   Pool   Origin
  cache0 vg   Cwi---C---  10.00g
  lvol0  vg   Cwi-a-C--- 100.00g cache0 [lvol0_corig]

# lvremove vg/cache0

# lvs vg
  LV    VG   Attr       LSize   Pool Origin
  lvol0 vg   -wi-a----- 100.00g

So in my case, I would do lvremove anson-TA75MH2/lv_cache. This does nessesitate recreating the cache pool from scratch, but that is OK, just slightly bothersome. (I plan on doing this within the next few minutes if nobody posts anything better.)

The lvmcache(7) manpage describes how you can remove the cache pool without removing its origin volume:

Removing a cache pool LV without removing its linked origin LV

This writes back data from the cache pool to the origin LV when necessary, then removes the cache pool LV, leaving the un-cached origin LV.

lvremove VG/CachePoolLV

Example:

# lvs vg
  LV     VG   Attr       LSize   Pool   Origin
  cache0 vg   Cwi---C---  10.00g
  lvol0  vg   Cwi-a-C--- 100.00g cache0 [lvol0_corig]

# lvremove vg/cache0

# lvs vg
  LV    VG   Attr       LSize   Pool Origin
  lvol0 vg   -wi-a----- 100.00g

So in my case, I would do lvremove anson-TA75MH2/lv_cache. This does nessesitate recreating the cache pool from scratch, but that is OK, just slightly bothersome. (I plan on doing this within the next few minutes if nobody posts anything better.)

Source Link
AJMansfield
  • 924
  • 1
  • 10
  • 20

The lvmcache(7) manpage describes how you can remove the cache pool without removing its origin volume:

###Removing a cache pool LV without removing its linked origin LV

This writes back data from the cache pool to the origin LV when necessary, then removes the cache pool LV, leaving the un-cached origin LV.

lvremove VG/CachePoolLV

Example:

# lvs vg
  LV     VG   Attr       LSize   Pool   Origin
  cache0 vg   Cwi---C---  10.00g
  lvol0  vg   Cwi-a-C--- 100.00g cache0 [lvol0_corig]

# lvremove vg/cache0

# lvs vg
  LV    VG   Attr       LSize   Pool Origin
  lvol0 vg   -wi-a----- 100.00g

So in my case, I would do lvremove anson-TA75MH2/lv_cache. This does nessesitate recreating the cache pool from scratch, but that is OK, just slightly bothersome. (I plan on doing this within the next few minutes if nobody posts anything better.)