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

Add migration between persistent_homes true/false #52

Closed
wants to merge 1 commit into from

Conversation

ionphractal
Copy link
Contributor

This PR makes it possible to smoothly transition between persistent_homes true/false without loosing data.

The following premises apply for this:

  • if you migrate from false (volatile homes), the "bosh deploy" step does not recreate the VMs
  • no user is logged or has files open in during the time of the upgrade (open work will be lost because data is moved accross devices)
  • the respective destination folder (new_home_dir/user) is not already present
  • the destination disk has enough free disk space

@cf-gitbot
Copy link

We have created an issue in Pivotal Tracker to manage this:

https://www.pivotaltracker.com/story/show/171493221

The labels on this github issue will be updated when the story is started.

@h4xnoodle
Copy link
Contributor

Hi @ionphractal can you describe some of the testing you've done to ensure this works and is compatible with current stemcells? Is this something specific for your environment or would benefit any consumer of this release?

@ionphractal
Copy link
Contributor Author

@h4xnoodle Sorry for the late reply. This wasn't on my top high prio list and at some point fell under the desk.

I "tested" with a rather old deployment we have with multiple users on it that grew over time in terms of users. Not sure how some users ended up having a different naming structure but I think it was because we had volatile homes in the beginning, created users and switched to persistent homes. But at some point we decided to remove persistent homes again and the deployment update failed because a user folder wasn't where it was expected to be. So I made a dev release with the changes and from this PR on successfully was able to switch now back and forth between volatile and persistent homes.

@bosh-admin-bot
Copy link

This pull request was marked as Stale because it has been open for 21 days without any activity. If no activity takes place in the coming 7 days it will automatically be close. To prevent this from happening remove the Stale label or comment below.

@bosh-admin-bot
Copy link

This pull request was closed because it has been labeled Stale for 7 days without subsequent activity. Feel free to re-open this pull request at any time by commenting below.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants