Skip to content

Instantly share code, notes, and snippets.

@wido
wido / rbd-export-import.py
Created September 6, 2016 18:46
Multi threaded RBD copy
#!/usr/bin/env python
"""
Python script to multi-threaded copy a RBD image from one cluster to another
This script requires a configuration file and a RBD image to copy.
It will copy the RBD image from the source pool to destination pool as
specified in the configuration file.
It assumes the destination image already exists and is at least the size of the