Skip to content
Snippets Groups Projects
Verified Commit 64fe47bf authored by anarcat's avatar anarcat
Browse files

one more step automated in the migration

parent 5ca994d6
No related branches found
No related tags found
No related merge requests found
......@@ -247,40 +247,34 @@ Import procedure:
./ganeti -v -H $INSTANCE libvirt-import --ganeti-node $SPARE_NODE --libvirt-host $KVM_HOST --suspend --adopt
4. login the new machine through the ganeti console:
gnt-instance console $INSTANCE
5. renumber the host:
4. renumber the host:
vi /etc/network/interfaces
service networking stop
service networking start
./ganeti -v -H $SPARE_NODE renumber-instance $INSTANCE
6. test services by changing your `/etc/hosts`
5. test services by changing your `/etc/hosts`
7. shutdown original instance:
6. shutdown original instance:
ssh $INSTANCE shutdown -h +1 'migrating to new server'
8. destroy test instance:
7. destroy test instance:
gnt-instance remove $INSTANCE
9. redo migration as in step 3, 4 and 5
8. redo migration as in step 3, 4 and 5
10. final test procedure
9. final test procedure
11. switch to DRBD, still on the Ganeti MASTER NODE:
10. switch to DRBD, still on the Ganeti MASTER NODE:
gnt-instance stop $INSTANCE
gnt-instance modify -t drbd $INSTANCE
gnt-instance failover $INSTANCE
gnt-instance start $INSTANCE
12. switch DNS over to the new machine (see step 16 below)
11. switch DNS over to the new machine (see step 16 below)
13. retire old instance ([[retire-a-host]])
12. retire old instance ([[retire-a-host]])
## Importing external instances, manual
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment