tree: 289ebe9a19436765d830f37be77eef77edfe2c3e [path history] [tgz]
  1. BUILD.gn
  2. DIR_METADATA
  3. lvm_metadata.cc
  4. lvm_metadata.h
  5. lvm_metadata_test.cc
  6. main.cc
  7. OWNERS
  8. README.md
  9. stateful_metadata.cc
  10. stateful_metadata.h
  11. stateful_metadata_test.cc
  12. thinpool_migrator.cc
  13. thinpool_migrator.h
  14. 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.