I am trying the following command:
lxc storage volume copy data/gitlab/2019121901 node20:data/gitlab
where I have:
root@node12:/data/bpool/custom# lxc storage volume list data
+----------------------+------------------------------------------------------------------+-------------+---------+
| TYPE | NAME | DESCRIPTION | USED BY |
+----------------------+------------------------------------------------------------------+-------------+---------+
| container (snapshot) | os-client/lxd-init | | 1 |
+----------------------+------------------------------------------------------------------+-------------+---------+
| custom | gitlab | | 1 |
+----------------------+------------------------------------------------------------------+-------------+---------+
| custom | gitlab-artifacts | | 1 |
+----------------------+------------------------------------------------------------------+-------------+---------+
| custom | storage-test | | 1 |
+----------------------+------------------------------------------------------------------+-------------+---------+
| custom (snapshot) | gitlab-artifacts/2019121901 | | 0 |
+----------------------+------------------------------------------------------------------+-------------+---------+
| custom (snapshot) | gitlab/2019121901 | | 0 |
+----------------------+------------------------------------------------------------------+-------------+---------+
| image | 412fb387e01d8130016d300bbc33fbaee84c1b17ddfb7cb9f85ae63e0c4fa618 | | 1 |
+----------------------+------------------------------------------------------------------+-------------+---------+
root@node12:/data/bpool/custom# lxc storage volume copy data/gitlab/2019121901 node20:data/gitlab
Error: not found
and on node20:
root@node12:/data/bpool/custom# lxc storage volume list node20:data
+--------+--------------+-------------+---------+
| TYPE | NAME | DESCRIPTION | USED BY |
+--------+--------------+-------------+---------+
| custom | storage-test | | 1 |
+--------+--------------+-------------+---------+
| custom | test | | 16 |
+--------+--------------+-------------+---------+
root@node12:/data/bpool/custom#
Copying the storage volume entirely seems to work (it copies the snapshots also)
root@node12:/data/bpool/custom# lxc storage volume copy data/gitlab node20:data/gitlab # Works fine.
Is it because I am trying to copy the snapshot only and the base storage volume doesn’t exists in the destination node?
I am trying to do the same I would do for a container. Create a snapshot, and copy the snapshot alone, not the entire storage volume and all its snapshots
thanks
Luis