mkdir -p /etc/origin/node/pods-stopped
mv /etc/origin/node/pods/* /etc/origin/node/pods-stopped/
mv /var/lib/etcd /var/lib/etcd.old
. /etc/etcd/etcd.conf
etcdctl3 snapshot restore /backup/etcd-xxxxxx/db \
--data-dir /var/lib/etcd \
--name $ETCD_NAME \
--initial-cluster "$ETCD_INITIAL_CLUSTER" \
--initial-cluster-token "$ETCD_INITIAL_CLUSTER_TOKEN" \
--initial-advertise-peer-urls $ETCD_INITIAL_ADVERTISE_PEER_URLS \
--skip-hash-check=true
chown -R etcd.etcd /var/lib/etcd/
restorecon -Rv /var/lib/etcd
mv /etc/origin/node/pods-stopped/* /etc/origin/node/pods/