Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP - Restore fixes #6158

Merged
merged 4 commits into from Mar 31, 2016
Merged

WIP - Restore fixes #6158

merged 4 commits into from Mar 31, 2016

Conversation

corylanou
Copy link
Contributor

Required for all non-trivial PRs
  • Rebased/mergable
  • Tests pass
  • CHANGELOG.md updated
  • Docs webpages updated

This PR addresses the upgrading of a single node from 0.11 to 0.12. In 0.11, the meta store information was stored in raft.db via the raft services. In 0.12, the meta store information is now stored in meta.db which is a binary protobuf file.

If you are upgrading from from 0.11 to 0.12, the following steps need to be taken:

NOTE: This process will remove the raft.db and node.json files. It is recommended you backup the entire directory structure in case of a failure during the upgrade.

  1. While still running 0.11, export your meta data with a command like:
influxd backup <backup directory>
  1. Upgrade the influxd binary from 0.11 to 0.12. Do not start the service yet.

  2. Restore the meta store with the following command:

influxd restore -metadir=<meta directory> <backup directory>
  1. Start the service and confirm the meta data is present.


raftFile := filepath.Join(c.path, "raft.db")
if _, err := os.Stat(raftFile); err == nil {
return fmt.Errorf("detected %s. either downgrade and export your meta data to import before continuing, or delete the file to start fresh", raftFile)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Once we have a docs page, I will update this error message to reference the page.

@jwilder jwilder added this to the 0.12.0 milestone Mar 30, 2016
@jwilder
Copy link
Contributor

jwilder commented Mar 30, 2016

👍

@benbjohnson
Copy link
Contributor

👍

@corylanou corylanou merged commit 2f6340b into master Mar 31, 2016
@corylanou corylanou deleted the restore-fixes branch March 31, 2016 22:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants