I know there have been other threads about this subject, but I do not manage / understand any how ..
Assume the particular VM is situated in dataset '<pool-x><vms>test_vm'
If you create a snapshot of a VM or any other zvol, that snapshot does refer to a delta not the whole zvol.
And I want to make a copy of the whole zvol !
- to another dataset in the same pool
- to a dataset in an other pool (my actual intention)
- to a pool on a remote machine
And it would have been very nice, if that had been possible from the GUI !!! .... (as far as I can see and tried it is not
What ever.
Patrick Hausen does suggest in an earlier thread:
zfs snapshot <pool-name>/path/to/vm-zvol@20220830
zfs send <pool-name>/path/to/vm-zvol@20220830 > /mnt/<pool-name>/some/storage/space/vm-zvol-20220830.img
What I tried, but did not have the result hoped for.
What I want is to have a new zvol with is an exact an full representation of the actual zvol to copy.
And following the procedure above I get a copy of the snapshot, which is only a small delta ....
not the complete zvol as it is at this moment!
So .... how to archive that .....
Restore the zvol copy later on probably equals:
- stop the test_vm (if it is running)
- delete the data set '<pool-x><vms>test_vm'(everything in it)
- recreate that dataset
- copy the backup zvol from the other pool to '<pool-x><vms>test_vm'
- start the vm
I hope it works this way ...
Assume the particular VM is situated in dataset '<pool-x><vms>test_vm'
If you create a snapshot of a VM or any other zvol, that snapshot does refer to a delta not the whole zvol.
And I want to make a copy of the whole zvol !
- to another dataset in the same pool
- to a dataset in an other pool (my actual intention)
- to a pool on a remote machine
And it would have been very nice, if that had been possible from the GUI !!! .... (as far as I can see and tried it is not
What ever.
Patrick Hausen does suggest in an earlier thread:
zfs snapshot <pool-name>/path/to/vm-zvol@20220830
zfs send <pool-name>/path/to/vm-zvol@20220830 > /mnt/<pool-name>/some/storage/space/vm-zvol-20220830.img
What I tried, but did not have the result hoped for.
What I want is to have a new zvol with is an exact an full representation of the actual zvol to copy.
And following the procedure above I get a copy of the snapshot, which is only a small delta ....
not the complete zvol as it is at this moment!
So .... how to archive that .....
Restore the zvol copy later on probably equals:
- stop the test_vm (if it is running)
- delete the data set '<pool-x><vms>test_vm'(everything in it)
- recreate that dataset
- copy the backup zvol from the other pool to '<pool-x><vms>test_vm'
- start the vm
I hope it works this way ...