How would I copy/backup/migrate an instance and a volume at a crucial location inisde the instance to another server?
My setup, thanks to your help as of now is:
lxc storage create container-pool zfs source=zfs/container-pool zfs set quota=336g zfs/container-pool ### absolute total for the whole pool lxc storage volume create container-pool mysql-volume zfs set recordsize=16k zfs/container-pool/custom/zfs_mysql-volume lxc init ubuntu:20.04 container-name -s container-pool lxc config device add container-name mysql-disk disk pool=container-pool source=mysql-volume path=/var/lib/mysql lxc start container-name
When I run
lxc copy container-name remote:container-name -s remote-pool & \ lxc storage volume copy container-pool/mysql-volume remote:remote-pool/mysql-volume
- both stores be snapshotted and transfered, or frozen and then transfered? And if they are frozen how do I do it without downtime of the instance?
- any snapshots that are already there also be copied over?
- the transfer be optimized?
- the mount of the mysql-volume be in tact on the instance on the remote server? If no how do I make it so?
- the ZFS preferences like
recordszie=16kbe in tact on the remote server?
Thanks in advance!