Hi.
I have created a VM which uses thin LVM. Now I want to start a fresh VM with the same id and back up old data. For that, I have renamed my disk (i.e vm-101-disk-0) to vm-101-disk-0-old and. Now I want to create a new volume.
The thing is I have a template which I create my Vms from, and I want my new volume to be based on my template volume (vm-100-disk-0, 100 is the id of template).
Now, to create new volume, if I use lvcreate --snapshot to create a snapshot from base volume, then when I start a vm, it throws an error:
It seems when i create a snapshot, it doesn't create a /dev/dm-index and mentioned file which refers to that block device.
So what should I do? when I clone a template, it automatically creates a volume based on template's volume. how can I achieve something like that?
I have created a VM which uses thin LVM. Now I want to start a fresh VM with the same id and back up old data. For that, I have renamed my disk (i.e vm-101-disk-0) to vm-101-disk-0-old and. Now I want to create a new volume.
The thing is I have a template which I create my Vms from, and I want my new volume to be based on my template volume (vm-100-disk-0, 100 is the id of template).
Now, to create new volume, if I use lvcreate --snapshot to create a snapshot from base volume, then when I start a vm, it throws an error:
(vmsthin is my vg)Could not open '/dev/vmsthin/vm-101-disk-0': No such file or directory
It seems when i create a snapshot, it doesn't create a /dev/dm-index and mentioned file which refers to that block device.
So what should I do? when I clone a template, it automatically creates a volume based on template's volume. how can I achieve something like that?