Helper function to relocate container/vm to a new storage backend on the same host:

function MoveContainerStorage() {
  container="$1"
  newBackend="$2"
  lxc stop "$container"
  lxc move "${container}" "${container}-tmp" -s "$newBackend"
  lxc move "${container}-tmp" "${container}"
  lxc start "${container}"
}