I attempted to use
lxc copy to copy a container to a new host with a 180 GB brand new ZFS storage pool.
On the source machine, it’s a btrfs storage pool, where “lxc storage info” reports that there are 166 GB storage used, and a total space of 416 GB. “du -hs /” on the single container reports that only about 60 GB are actually in use, while “df -h” reports that the root file system is 388 GB.
So those are lot of different numbers about the size of my source data!
With LXD and ZFS on the target host, which number is the best estimate of disk space that would actually be used? Would it be closer to storage used according to the container, storage used according to LXD or the “total space”?
Disclaimer: Given that my connection between the two servers appears to be unstable and the large volume of data, I’m likely to switch to rsync to get this copy done but remain curious about how this would work.
Backing up containers over the network is potentially of interest to Chrome OS / Crostini users trying to get their data off the laptop.