projects
/
sysadmin-cookbook
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
split master and storage node, support machines with dash in name
[sysadmin-cookbook]
/
recepies
/
ganeti
/
migrate-lxc
/
B-ganeti-network-interfaces.sh
diff --git
a/recepies/ganeti/migrate-lxc/B-ganeti-network-interfaces.sh
b/recepies/ganeti/migrate-lxc/B-ganeti-network-interfaces.sh
index
cfedad7
..
7a7794c
100755
(executable)
--- a/
recepies/ganeti/migrate-lxc/B-ganeti-network-interfaces.sh
+++ b/
recepies/ganeti/migrate-lxc/B-ganeti-network-interfaces.sh
@@
-24,8
+24,8
@@
iface eth1 inet static
__INTERFACES__
# this will backup file on original machine which is still running!
__INTERFACES__
# this will backup file on original machine which is still running!
-ping -c 1 $host && ssh_
master
chroot /tmp/$host bak add,commit /etc/network/interfaces
+ping -c 1 $host && ssh_
storage
chroot /tmp/$host bak add,commit /etc/network/interfaces
-scp /tmp/network-interfaces-$host root@$
master
:/tmp/
+scp /tmp/network-interfaces-$host root@$
storage
:/tmp/
-ssh_
master
mv -v /tmp/network-interfaces-$host /tmp/$host/etc/network/interfaces
+ssh_
storage
mv -v /tmp/network-interfaces-$host /tmp/$host/etc/network/interfaces