diff --git a/README.md b/README.md index d23dae5..005ae50 100644 --- a/README.md +++ b/README.md @@ -130,3 +130,28 @@ Once you've done this you can run the tests with a simple: Or specific tests with: cucumber features/thin_restore -n 'print help' + + +Dump Metadata +============= + +To dump the metadata of a live thin pool, you must first create a snapshot of +the metadata: + + $ dmsetup message vg001-mythinpool-tpool 0 reserve_metadata_snap + +Extract the metadata: + + $ sudo bin/thin_dump -m /dev/mapper/vg001-mythinpool_tmeta + + + + + + + + + +Finally, release the root: + + $ dmsetup message vg001-mythinpool-tpool 0 release_metadata_snap