GithubHelp home page GithubHelp logo

naved001 / ceph-rcopy Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 28 KB

Contains a set of scripts to migrate images in an rbd pool from one ceph to another.

License: Apache License 2.0

Python 100.00%

ceph-rcopy's Introduction

ceph-rcopy

What is this?

A simple script that can migrate rbd images in one ceph to an rbd pool on other ceph.

It uses netcat to join the rbd import and rbd exports over network. This means that the network traffic is unencrypted. So you should probably use it only in private networks or subnets that you control and trust. Maybe in the future I'll use ssh as transport which will add encryption, but it would be significantly slower than netcat.

How to run it?

It requires paramiko and click

  • yum install python2-click python-paramiko -y

Just run ./ceph-rcopy.py --help

How does it work and what are you doing?

It starts a netcat listener on the recieving host, and then sends the data from the host executing the script.

I am not using python sockets or python-rbd libraries because:

  1. Running python code on the remote host to listen on a socket and perform an rbd import would require way more work. The easiest thing to do is run the commands on the remote host that already exist on that host (netcat -l PORT | rbd import name).
  2. And if I already have to make calls to those commands on the remote host, I might as well do the same on the source machine.

Why are you doing this?

Becasue @radonm wanted this to migrate ceph images between our various ceph clusters.

ceph-rcopy's People

Contributors

naved001 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.