1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00
lvm2/lib/metadata
David Teigland 3ae5569570 Add dm-writecache support
dm-writecache is used like dm-cache with a standard LV
as the cache.

$ lvcreate -n main -L 128M -an foo /dev/loop0

$ lvcreate -n fast -L 32M -an foo /dev/pmem0

$ lvconvert --type writecache --cachepool fast foo/main

$ lvs -a foo -o+devices
  LV            VG  Attr       LSize   Origin        Devices
  [fast]        foo -wi-------  32.00m               /dev/pmem0(0)
  main          foo Cwi------- 128.00m [main_wcorig] main_wcorig(0)
  [main_wcorig] foo -wi------- 128.00m               /dev/loop0(0)

$ lvchange -ay foo/main

$ dmsetup table
foo-main_wcorig: 0 262144 linear 7:0 2048
foo-main: 0 262144 writecache p 253:4 253:3 4096 0
foo-fast: 0 65536 linear 259:0 2048

$ lvchange -an foo/main

$ lvconvert --splitcache foo/main

$ lvs -a foo -o+devices
  LV   VG  Attr       LSize   Devices
  fast foo -wi-------  32.00m /dev/pmem0(0)
  main foo -wi------- 128.00m /dev/loop0(0)
2018-11-06 14:18:41 -06:00
..
cache_manip.c Allow dm-cache cache device to be standard LV 2018-11-06 13:44:54 -06:00
lv_alloc.h build: Don't generate symlinks in include/ dir 2018-05-14 10:30:20 +01:00
lv_manip.c Add dm-writecache support 2018-11-06 14:18:41 -06:00
lv.c Add dm-writecache support 2018-11-06 14:18:41 -06:00
lv.h Remove unused clvm variations for active LVs 2018-06-07 16:17:04 +01:00
merge.c Add dm-writecache support 2018-11-06 14:18:41 -06:00
metadata-exported.h Add dm-writecache support 2018-11-06 14:18:41 -06:00
metadata.c Add dm-writecache support 2018-11-06 14:18:41 -06:00
metadata.h Remove lvmetad 2018-07-11 11:26:42 -05:00
mirror.c metadata: prevent writing beyond metadata area 2018-10-29 16:53:17 -05:00
pool_manip.c Remove unused clvm variations for active LVs 2018-06-07 16:17:04 +01:00
pv_alloc.h doc: change fsf address 2016-01-21 12:11:37 +01:00
pv_manip.c pvresize: add missing return 2018-06-08 14:36:56 +02:00
pv_map.c build: Don't generate symlinks in include/ dir 2018-05-14 10:30:20 +01:00
pv_map.h build: Don't generate symlinks in include/ dir 2018-05-14 10:30:20 +01:00
pv.c build: Don't generate symlinks in include/ dir 2018-05-14 10:30:20 +01:00
pv.h device_mapper: rename libdevmapper.h -> all.h 2018-06-08 12:31:45 +01:00
raid_manip.c Revert "raid: fix left behind SubLVs" 2018-10-25 14:35:56 +02:00
segtype.c segtype: add linear 2018-06-05 16:23:18 +02:00
segtype.h Add dm-writecache support 2018-11-06 14:18:41 -06:00
snapshot_manip.c Remove unused clvm variations for active LVs 2018-06-07 16:17:04 +01:00
takeover_matrix.h lvconvert: add infrastructure for RaidLV reshaping support 2017-02-24 05:20:58 +01:00
thin_manip.c Remove unused clvm variations for active LVs 2018-06-07 16:17:04 +01:00
vdo_manip.c cov: drop uneeded header files 2018-10-15 17:49:44 +02:00
vg.c cov: drop uneeded header files 2018-10-15 17:49:44 +02:00
vg.h Remove lvmetad 2018-07-11 11:26:42 -05:00