hashicorp / consul

Consul is a distributed, highly available, and data center aware solution to connect and configure applications across dynamic, distributed infrastructure.
https://www.consul.io
Other
28.4k stars 4.43k forks source link

Downgrade Consul version from 1.3.0 to 0.8.4 #5199

Closed harika224121 closed 5 years ago

harika224121 commented 5 years ago

Hi Team,

Is it possible to downgrade the Consul version 1.3.0 to 0.8.4 without data loss since data is very important to us since we are using consul as a backend for vault. We have tested the consul upgrade version from 0.8.4 to 1.3.0 in a POC environment and for a backup plan we also want to try if we can downgrade it from 1.3.0 to 0.8.4.

ChipV223 commented 5 years ago

Hi @harika224121,

Downgrading that way could work, but it's not supported and you'll probably run into an issue around a Raft log entry being written by the newer Consul version that the older one doesn't understand. 0.8.4 does have the snapshot command though, so you should be able to use that to back up all of the data in case you need to revert to the old version and restore for some reason:

https://www.consul.io/docs/commands/snapshot.html

Hope that helps!