wipe LVM cache

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Is there a way to wipe a cache without recreating it?

When I split the cache using --split-cache, then dd if=/dev/zero the origin volume, and then combine the cache again, the system will think nothing has changed, and the blocks on the cache that were used before, will keep being used, and will "mask" blocks in the root volume, I believe. (The origin volume).

Dmsetup status will show all blocks in the cache are still used:

linux-root: 0 41943040 cache 8 367/3072 128 121600/121600

It seems weird that I can't just clean the cache. I'd have to either dd the entire volume when the cache is combined, or recreate the cache itself.

_______________________________________________
linux-lvm mailing list
linux-lvm@redhat.com
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/



[Index of Archives]     [Gluster Users]     [Kernel Development]     [Linux Clusters]     [Device Mapper]     [Security]     [Bugtraq]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]

  Powered by Linux