diff options
author | Joe Thornber <thornber@redhat.com> | 2002-02-11 12:01:59 +0000 |
---|---|---|
committer | Joe Thornber <thornber@redhat.com> | 2002-02-11 12:01:59 +0000 |
commit | 713599407cc26d5e60889e828b923ed06f156ca0 (patch) | |
tree | b229d39faeee28d10247e338b92a80534f31e143 /doc/testing.txt | |
parent | 03888774a5aa7978ff69c9434ab48a589f1b8851 (diff) | |
download | lvm2-713599407cc26d5e60889e828b923ed06f156ca0.tar.gz lvm2-713599407cc26d5e60889e828b923ed06f156ca0.tar.xz lvm2-713599407cc26d5e60889e828b923ed06f156ca0.zip |
o Little recipe for testing LVM2 with loopback devices.
Diffstat (limited to 'doc/testing.txt')
-rw-r--r-- | doc/testing.txt | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/doc/testing.txt b/doc/testing.txt new file mode 100644 index 00000000..f0957860 --- /dev/null +++ b/doc/testing.txt @@ -0,0 +1,46 @@ +Here's how I test new LVM2 builds without interfering with the stable +LVM2 that is running the LV's on my development box. + +1) Create a set of loopback devices. + +2) Create a new directory to contain the LVM2 configuration files for + this setup. (I use /etc/lvm_loops) + +3) Write a suitable lvm.conf file, this goes in the directory you just + created. eg, my /etc/lvm_loops/lvm.conf looks like: + + log { + file="/tmp/lvm2_loop.log" + level=9 + verbose=0 + overwrite=1 + } + + devices { + scan = "/dev" + filter = ["a/loop/", "r/.*/"] + } + + + The important this to note is the devices section which makes sure that + only the loopback devices are considered for LVM2 operations. + +4) When you want to use this test setup just set the environment + variable LVM_SYSTEM_DIR to point to your config directory + (/etc/lvm_loops in my case). + +5) It's a good idea to do a vgscan to initialise the filters: + + export LVM_SYSTEM_DIR=/etc/lvm_loops + ./lvm vgscan + + where ./lvm is the new build of LVM2 that I'm trying out. + +7) Test away. Make sure that you are explicit about which lvm + executable you want to execute (eg, ./lvm if you are in + LVM2/tools). + + + + + |