71 |
71 |
|
72 |
72 |
$ gnt-cluster verify
|
73 |
73 |
|
|
74 |
Reverting an upgrade
|
|
75 |
~~~~~~~~~~~~~~~~~~~~
|
|
76 |
|
|
77 |
For going back between revisions (e.g. 2.1.1 to 2.1.0) no manual
|
|
78 |
intervention is required, as for upgrades.
|
|
79 |
|
|
80 |
Starting from version 2.8, ``cfgupgrade`` supports ``--downgrade``
|
|
81 |
option to bring the configuration back to the previous stable version.
|
|
82 |
This is useful if you upgrade Ganeti and after some time you run into
|
|
83 |
problems with the new version. You can downgrade the configuration
|
|
84 |
without losing the changes made since the upgrade. Any feature not
|
|
85 |
supported by the old version will be removed from the configuration, of
|
|
86 |
course, but you get a warning about it. If there is any new feature and
|
|
87 |
you haven't changed from its default value, you don't have to worry
|
|
88 |
about it, as it will get the same value whenever you'll upgrade again.
|
|
89 |
|
|
90 |
The procedure is similar to upgrading, but please notice that you have to
|
|
91 |
revert the configuration **before** installing the old version.
|
|
92 |
|
|
93 |
#. Ensure no jobs are running (master node only)::
|
|
94 |
|
|
95 |
$ gnt-job list
|
|
96 |
|
|
97 |
#. Pause the watcher for an hour (master node only)::
|
|
98 |
|
|
99 |
$ gnt-cluster watcher pause 1h
|
|
100 |
|
|
101 |
#. Stop all daemons on all nodes::
|
|
102 |
|
|
103 |
$ /etc/init.d/ganeti stop
|
|
104 |
|
|
105 |
#. Backup old configuration (master node only)::
|
|
106 |
|
|
107 |
$ tar czf /var/lib/ganeti-$(date +\%FT\%T).tar.gz -C /var/lib ganeti
|
|
108 |
|
|
109 |
#. Run cfgupgrade on the master node::
|
|
110 |
|
|
111 |
$ /usr/lib/ganeti/tools/cfgupgrade --verbose --downgrade --dry-run
|
|
112 |
$ /usr/lib/ganeti/tools/cfgupgrade --verbose --downgrade
|
|
113 |
|
|
114 |
You may want to copy all the messages about features that have been
|
|
115 |
removed during the downgrade, in case you want to restore them when
|
|
116 |
upgrading again.
|
|
117 |
|
|
118 |
#. Install the old Ganeti version on all nodes
|
|
119 |
#. Restart daemons on all nodes::
|
|
120 |
|
|
121 |
$ /etc/init.d/ganeti restart
|
|
122 |
|
|
123 |
#. Re-distribute configuration (master node only)::
|
|
124 |
|
|
125 |
$ gnt-cluster redist-conf
|
|
126 |
|
|
127 |
#. Restart daemons again on all nodes::
|
|
128 |
|
|
129 |
$ /etc/init.d/ganeti restart
|
|
130 |
|
|
131 |
#. Enable the watcher again (master node only)::
|
|
132 |
|
|
133 |
$ gnt-cluster watcher continue
|
|
134 |
|
|
135 |
#. Verify cluster (master node only)::
|
|
136 |
|
|
137 |
$ gnt-cluster verify
|
|
138 |
|
74 |
139 |
|
75 |
140 |
2.0 releases
|
76 |
141 |
------------
|