lvmcache writethrough synchronisation at system startup

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

 



Hi Everyone,

Recently I have set up a simple lvmcache on my machine. This is a write-through
cache, so in my view it should never be necessary to copy data from the
cachepool to the origin LV. But this is exactly what happens: on system start
the 

lvs -o+cache_policy,cache_settings,cache_mode

displays something like:
  LV     VG   Attr       LSize   Pool     Origin       Data%  Meta%  Move Log Cpy%Sync Convert CachePolicy CacheSettings CacheMode   
  home   main Cwi-aoC---  21.83t [cache1] [home_corig] 99.99  0.55            90.39            smq                       writethrough

and for a next day or two it writes the whole cachepool to the origin. The data
on the cached LV seems fine as long as sha512 is concerned. 

Is this supposed to be that way?

My setup:
I have 2 mdraid devices: one 24T raid6, one 1T raid1, and one separate SSD. All
are LUKS-encrypted, SSD is partitioned into MBR boot partition, encrypted /boot
partition and a big encrypted partition for a PV. The encrypted block devices
(except /boot) are PVs in my VG. The 24T RAID holds the origin LV, the 1T RAID
is made into a cachepool.

BR,
M.W.

-- 
On a paper submitted by a physicist colleague:

"This isn't right.  This isn't even wrong."
		-- Wolfgang Pauli

Attachment: signature.asc
Description: PGP signature

_______________________________________________
linux-lvm mailing list
linux-lvm@xxxxxxxxxx
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