You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs: add some details to docs, lower sections into relevant subsections (#398)
* docs: add some details to docs, lower sections into relevant subsections
* meta: add pr template
* Update .github/PULL_REQUEST_TEMPLATE.md
* Update .github/PULL_REQUEST_TEMPLATE.md
* docs: add a callout to avoid needless pages
* docs: add a nugget to let user know that this is when users are added
Copy file name to clipboardExpand all lines: docs/guides/migration-recipe.md
+14-7Lines changed: 14 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -83,7 +83,7 @@ index 68387c9..7a8ace1 100644
83
83
2. Create a new droplet with a new version of Ubuntu, appropriate resources, and name it according to a hostname + current LTS version
84
84
- See the current preferred version of Ubuntu in [the Server Guide](server.rst)
85
85
86
-
### Provision new host for migration
86
+
#### Provision new host for migration
87
87
88
88
1. SSH into `new-host` via the IP address provided by DigitalOcean:
89
89
```console
@@ -125,7 +125,8 @@ index 68387c9..7a8ace1 100644
125
125
```console
126
126
sudo salt-call state.highstate
127
127
```
128
-
7. Log out of `root` session
128
+
7. Log out of `root` session. The first `highstate` run adds the users defined in `pillar/base/users.sls` so that you
129
+
can log in as your user.
129
130
8. Ensure that the new host is not passing health checks in the load balancer:
130
131
```console
131
132
ssh -L 4646:127.0.0.1:4646 lb-a.nyc1.psf.io
@@ -136,7 +137,7 @@ index 68387c9..7a8ace1 100644
136
137
sudo salt-call state.highstate
137
138
```
138
139
139
-
### Begin data migration
140
+
#### Begin data migration to new host
140
141
141
142
1. SSH into `new-host` to enable forwarding of `ssh-agent`
142
143
```console
@@ -151,12 +152,16 @@ index 68387c9..7a8ace1 100644
151
152
```console
152
153
sudo service nginx stop
153
154
```
155
+
```{note}
156
+
Don't forget to pause service checks for both the old and new hosts in things like Dead Man's Snitch, Pingdom, etc.
157
+
```
154
158
4. Ensure that any additional volumes are mounted and in the correct location:
155
159
- Check what disks are currently mounted and where: `df`
156
160
- Determine where any additional disks should be mounted (based on salt configuration of services, for example `docs` and `downloads` roles need a big `/srv` for their data storage
157
161
- Ensure mounting of any external disks are in the right location using `mount` command with appropriate arguments
158
162
- Ensure that the volumes will be remounted on startup by configuring them in `/etc/fstab`
159
-
5. Run rsync once to move the bulk of data and as necessary to watch for changes:
163
+
5. If the service has pillar data for backups (see `pillar/prod/backup/$service.sls`),
164
+
run `rsync` once to move the bulk of data and as necessary to watch for changes:
0 commit comments