tree: 1c20d4b1d5559fab5c5f86650b7a16828adbe7e0 [path history] [tgz]
  1. proto/
  2. tmpfiles.d/
  3. BUILD.gn
  4. DIR_METADATA
  5. lvm_metadata.cc
  6. lvm_metadata.h
  7. lvm_metadata_test.cc
  8. main.cc
  9. migration_metrics.cc
  10. migration_metrics.h
  11. OWNERS
  12. README.md
  13. stateful_metadata.cc
  14. stateful_metadata.h
  15. stateful_metadata_test.cc
  16. thinpool_migrator.cc
  17. thinpool_migrator.h
  18. thinpool_migrator_test.cc
thinpool_migrator/README.md

thinpool_migrator

Thinpool_migrator is a special purpose utility designed to migrate an ext4 stateful partition to an LVM layout where the entire partition resides inside a thinpool. The thinpool migrator achieves this by resizing the filesystem down by ~2% of disk size and generating thinpool metadata to make the current filesystem appear as a thinly provisioned logical volume.

Thinpool migrator is inspired by g2p/lvmify (https://github.com/g2p/lvmify) that is now a part of g2p/blocks (https://github.com/g2p/blocks) with a slightly more convoluted step of putting a thinpool underneath the logical volume.