The ungleich virtualisation handbook » History » Version 2
Nico Schottelius, 11/06/2018 12:02 PM
1 | 1 | Nico Schottelius | h1. The ungleich virtualisation handbook |
---|---|---|---|
2 | |||
3 | h2. Introduction |
||
4 | |||
5 | * A place is autonomous data center and does not share resources with another place. |
||
6 | * The storage clusters are separated so that they don't influence each other |
||
7 | * Networks are place local -> changing the place means changing the IP addresses |
||
8 | |||
9 | h2. Migrating a VM from one place to another |
||
10 | |||
11 | * Find the VM id (*onevm list* in opennebula) |
||
12 | * Stop the VM (*onevm stop <vimid>*) |
||
13 | * Locate the disk in ceph |
||
14 | ** Locate the correct ceph pool: *ceph osd lspools* |
||
15 | 2 | Nico Schottelius | ** rbd list -p <CEPH POOL> | grep <VMID> |
16 | ** This gives you the *image name* |
||
17 | * Login to the *destination place* and find out the target ceph pool |
||
18 | ** Locate the correct ceph pool: *ceph osd lspools* (this is the TARGET POOL) |
||
19 | * Transfer the disk into the other place ceph cluster |
||
20 | ** rbd export <CEPH POOL>/<IMAGE NAME> - | ssh server-in-other-place "rbd import <TARGET POOL>/import-<VMID>" |
||
21 | |||
22 | 1 | Nico Schottelius | |
23 | |||
24 | h2. See Also |
||
25 | |||
26 | * For storage see [[The ungleich ceph handbook]] |