master - tests: test repairability of thin pool
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=73971e1e7b1164f4f7c677afc17aabbd09e11252 Commit: 73971e1e7b1164f4f7c677afc17aabbd09e11252 Parent: 7ab5f29a9cf94ef41e54e47f7f00898d44a700e3 Author: Zdenek Kabelac <[email protected]> AuthorDate: Wed Oct 16 10:17:17 2013 +0200 Committer: Zdenek Kabelac <[email protected]> CommitterDate: Wed Oct 16 10:54:59 2013 +0200
tests: test repairability of thin pool
Initial testing of thin pool's metadata with thin repairing tools. Try to use tools from configuration settings, but allow them to be overriden by settings of these variables:LVM_TEST_THIN_CHECK_CMD,LVM_TEST_THIN_DUMP_CMD,LVM_TEST_THIN_REPAIR_CMD
FIXME: test reveals some more important bugs:
pvremove -ff also needs --yes
vgremove -ff doesn not remove metadata when there are no real LVs. vgreduce is not able to reduce VG with pool without pool's PVs
--- test/Makefile.in | 8 ++- test/shell/lvconvert-repair-thin.sh | 117 +++++++++++++++++++++++++++++++++++ 2 files changed, 124 insertions(+), 1 deletions(-)
test/Makefile.in +7 -1
@@ -25,6 +25,9 @@ abs_top_builddir = "@abs_top_builddir@" abs_top_srcdir = "@abs_top_srcdir@" LVM_TEST_RESULTS ?= results +LVM_TEST_THIN_DUMP_CMD ?= "@THIN_DUMP_CMD@" +LVM_TEST_THIN_CHECK_CMD ?= "@THIN_CHECK_CMD@" +LVM_TEST_THIN_REPAIR_CMD ?= "@THIN_REPAIR_CMD@" SUBDIRS = api unit SOURCES = lib/not.c lib/harness.c
@@ -58,12 +61,15 @@ help: @echo " help Display callable targets." @echo -e "\nSupported variables:" @echo " LVM_TEST_DEVDIR Set to '/dev' to run on real /dev." - @echo " LVM_TEST_DIR Where to create test files [TMPDIR]." + @echo " LVM_TEST_DIR Where to create test files [$(LVM_TEST_DIR)]." @echo " LVM_TEST_LOCKING Normal (1), Cluster (3)." @echo " LVM_TEST_LVMETAD Start lvmetad (1)." @echo " LVM_TEST_NODEBUG Do not debug lvm commands." @echo " LVM_TEST_PARALLEL May skip agresive wipe of LVMTEST resources." @echo " LVM_TEST_RESULTS Where to create result files [results]." + @echo " LVM_TEST_THIN_CHECK_CMD Command for thin_check [$(LVM_TEST_THIN_CHECK_CMD)]." + @echo " LVM_TEST_THIN_DUMP_CMD Command for thin_dump [$(LVM_TEST_THIN_DUMP_CMD)]." + @echo " LVM_TEST_THIN_REPAIR_CMD Command for thin_repair [$(LVM_TEST_THIN_REPAIR_CMD)]." @echo " LVM_TEST_UNLIMITED Set to get unlimited test log (>32MB)" @echo " LVM_VERIFY_UDEV Default verify state for lvm.conf." @echo " S Skip given test (regex)."
test/shell/lvconvert-repair-thin.sh new file +117 -0
117 lines not on this page · raw message