partial lvm code for testing