I have just started to take snapshots of my VMs - specifically creating snapshot of a test VM to get use to the whole snapshot 'thing'. So far I have twice created a snapshot, tested it by making changes to the VM and then reverting back via the snapshot - and it works! Problem is the snapshot then disappears! I have some confusion where the snapshot(s) is/are located but from what I have gleaned so far the snapshot is created in the volume group where the LV is. Here are my LVs
The two LVs I am using for testing are ubuntuvm and win10. All the other LVs are part of my live system. Yesterday I created a snapshot of ubuntuvm called ubuntuvm_snap - it was stored in /dev/vg01 (I have no other Volume Groups on this machine). Indeed, yesterday I tested the snapshot using the command sudo lvconvert -merge /dev/vg01/ubuntuvm_snap and everything worked fine. Today I have made some changes to ubuntuvm and messed things up a bit so want to go back to when I took the snapshot yesterday. But, to me at least, the snapshot is no longer there
Seems to me I'm doing something fundamentally wrong in my snapshot creating process. (To create the snapshot I used sudo lvcreate -L 5G -s -n ubuntuvm_snap /dev/vg01/ubuntuvm).
Code:
dad@dadubuntu:~$ sudo lvs
LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert
home vg01 -wi-ao---- 50.00g
root vg01 -wi-ao---- 40.00g
swap vg01 -wi-ao---- 8.00g
ubuntuvm vg01 -wi-a----- 40.00g
win10 vg01 -wi-a----- 50.00g
workspace vg01 -wi-a----- 250.00g
Code:
dad@dadubuntu:~$ cd /dev/vg01
dad@dadubuntu:/dev/vg01$ ls
home root swap ubuntuvm win10 workspace
dad@dadubuntu:/dev/vg01$