Skip to contentSkip to conversation

Question (and feature suggestions) regarding lvmcache and lvmthin

linux-lvm Austin S Hemmelgarn 2 participants 2 messages Mar 6, 2015 – Mar 20, 2015

lore
Share & tools
lore
#0 lore raw

I've got a couple of cached LV's on my system where the origin is a RAID{1,10,5} LV, and have noticed that there doesn't appear to be any way (at least that I can find) of resyncing/scrubbing the origin LV without detaching it from the cache pool, which is significantly inconvenient as I scrub the origin LV's weekly. I was wondering if there was any advice on how to do this without needing to detach it from the pool

On a somewhat related note, It would be a nice feature for both cached LV's and thinpool LV's to be able to just run 'lvchange --syncaction check' on the pool/cached LV and have it scrub each of the constituent LV's if applicable (ie, if you have a thinpool LV where the data and metadata LV's are RAID{1,10,5,6}, then running 'lvchange --syncaction check' on the thinpool would trigger a read-only resync for the data and metadata LV's).

Please cc me on replies, as I'm not subscribed to the list.

#1 lore raw

I agree with you that these features would be nice. Actually, I also wanted to ask for some of them. Unfortunately, I don't know about a way to flush lvmcache without detaching and recreating the cache LV.

As a workaround you could create writethrough caches, albeit their write performance is slower. But in that case, you'd never need to flush the cache, as you could be sure that the origin LVs are always up-to-date.

2015-03-06 17:29 GMT+01:00 Austin S Hemmelgarn <[email protected]>:

Quoted 21 lines

I've got a couple of cached LV's on my system where the origin is a RAID{1,10,5} LV, and have noticed that there doesn't appear to be any way (at least that I can find) of resyncing/scrubbing the origin LV without detaching it from the cache pool, which is significantly inconvenient as I scrub the origin LV's weekly. I was wondering if there was any advice on how to do this without needing to detach it from the pool

On a somewhat related note, It would be a nice feature for both cached LV's and thinpool LV's to be able to just run 'lvchange --syncaction check' on the pool/cached LV and have it scrub each of the constituent LV's if applicable (ie, if you have a thinpool LV where the data and metadata LV's are RAID{1,10,5,6}, then running 'lvchange --syncaction check' on the thinpool would trigger a read-only resync for the data and metadata LV's).

Please cc me on replies, as I'm not subscribed to the list.

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