- Install VirtualBox, VMware Player. Of course any other type 2 hypervisor can do the work)
- Create virtual machine with bunch of disks (not need to be huge, 2-3-4GB will be fine)
- Install Linux (or OS you want to play)
- Create PVs, create VG(s), create LVs and start playing with LVM
P.S. You can try also to create files and use them as PVs to play with LVM. But if on your system you have already LVM in use I will not recommend play there.
The way to use files instead of disks or partitions in LVM is this:
- Create files:
dd if=/dev/zero of=lvmtest0.img bs=1024 count=1M
dd if=/dev/zero of=lvmtest1.img bs=1024 count=1M
...
- Link them to loop interfaces:
losetup /dev/loop0 lvmtest0.img
losetup /dev/loop1 lvmtest1.img
- Create them as PVs
pvcreate /dev/loop0 /dev/loop1
And then start with creating VG, LVs and so on
You can check this site for more information
The reason I do not recommend play with LVM on your machine if you already have LVM there is there is always possibility to execute wrong command and to mess with LVM volumes where your OS is installed/your files reside