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
@@ -35,8 +35,6 @@ At a high-level, this script downloads and installs the following
35
35
- Oracle Feeder - Price Server (latest in main)
36
36
- Oracle Feeder - Feeder (latest in main)
37
37
38
-
> As the script isn't very robust, it is preferable to copy each command and run it line by line.
39
-
40
38
## Post setup
41
39
42
40
After the script has completed running and the applications are downloaded, be sure to update the following:
@@ -65,7 +63,7 @@ Regardless of the scenarios, the steps described in Phase 1 and Phase 3 should b
65
63
66
64
## Phase 1
67
65
68
-
### SSH keys ###
66
+
### SSH keys
69
67
70
68
Regardless of whether the data is migrated or is generated from a snapshot, the replacement server (Server B) should be able to access the origin server (Server A) via SSH.
71
69
@@ -86,10 +84,9 @@ eval `ssh-agent`
86
84
ssh-add ~/.ssh/id_ed25519.pub
87
85
```
88
86
89
-
### Sync script ###
87
+
### Sync script
90
88
91
-
Create the following sync script (sync.sh) in Server B:
92
-
Use the script _sample/sync.sh_ in Server B to get the files over for the initial sync.
89
+
Update _sample/sync.sh_ by specifying the user and the host, and use it in Server B to get the files over for the initial sync.
93
90
94
91
(No need to move .terra/config/node_key.json - [https://discord.com/channels/566086600560214026/566126867686621185/842673595117207573])
95
92
@@ -127,11 +124,11 @@ The service can be confirmed to be running by executing
127
124
journalctl -u price-server.service -f
128
125
```
129
126
130
-
## Phase 2A: Migration with no pre-existing blockchain data ##
127
+
## Phase 2A: Migration with no pre-existing blockchain data
131
128
132
129
For a new server, a snapshot of the blockchain needs to be downloaded for quick sync.
Use the file _sample/migrate.sh_ to copy the file from the old server to the new server **after stopping both servers**.
189
+
Modify _sample/migrate.sh_ by specifying the user and the host, and use it to copy the file from the old server to the new server **after stopping both servers**.
193
190
194
-
### Actual migration ###
191
+
### Actual migration
195
192
196
193
The sequence of commands below needs to be **excuted in quick succession**.
## Phase 2B: Migration with blockchain data available ##
206
+
## Phase 2B: Migration with blockchain data available
210
207
211
208
Prepare the server by making sure that the software components are in place. There is no need to download the blockchain snapshot since the data is already available for migration.
212
209
@@ -280,9 +277,9 @@ When the feeder is running smooth for a while, the monitoring script can be star
One performance tip for SSD storage technologies is the removal of continuous [TRIM](https://www.digitalocean.com/community/tutorials/how-to-configure-periodic-trim-for-ssd-storage-on-linux-servers).
288
285
@@ -296,124 +293,51 @@ _If_ there are drives that have this option, they can be remounted in place with
296
293
297
294
In the _/etc/fstab_ file, the `discard` property needs to be removed so that when the drives get mounted on boot, continuous TRIM will not be enabled.
298
295
299
-
## Periodic TRIM ##
296
+
## Auto-mounting
300
297
301
-
If continuous TRIM is disabled, periodic TRIM needs to be performed.
298
+
To prepare for the case that the server reboots, the external volume needs to be automatically mounted. This can be done by modifying the _/etc/fstab_ file.
302
299
303
-
Create the cron script _/etc/cron.weekly/fstrim_:
300
+
Before doing so, check for the UUID of the drive that is mounted. The UUID is used instead of the path is because the mapping can be different.
304
301
305
-
```
306
-
#!/bin/sh
307
-
/usr/sbin/fstrim --all || true
308
-
```
309
-
310
-
Then make the script executable:
302
+
First determine which is the drive that is mapped to the mount point:
311
303
312
304
```bash
313
-
sudo chmod a+x /etc/cron.weekly/fstrim
305
+
mount
314
306
```
315
307
316
-
## Hostname ##
317
-
318
-
Some distributions may not set the hostname to match the name set in the dashboard.
319
-
320
-
The name can be permanently changed using `hostnamectl`:
308
+
Then list the drives:
321
309
322
310
```bash
323
-
sudo hostnamectl set-hostname validator-terra
324
-
```
325
-
326
-
# Fresh new setup
327
-
328
-
### Initialize the node
329
-
330
-
A new node needs to be initialized with a moniker. E.g.
331
-
332
-
terrad init "Validator A"
333
-
334
-
This will create a ".terrad" directory in the home folder. It comes with a file that needs to be replaced by one from Mainnet.
For the Mainnet (columbus-4), the genesis file can be downloaded from https://columbus-genesis.s3-ap-northeast-1.amazonaws.com/columbus-4-genesis.json (reference [docs.terra.money](https://docs.terra.money/node/join-network.html#download-the-genesis-file)).
341
-
342
-
~~The address book can be found at https://network.terra.dev/addrbook.json (reference [docs.terra.money](https://docs.terra.money/node/join-network.html#picking-a-network)).~~ The address book is not actually required.
343
-
344
-
For the Testnet (tequila-0004), the genesis file can be downloaded from https://raw.githubusercontent.com/terra-project/testnet/master/tequila-0004/genesis.json (reference [github.com](https://github.com/terra-project/testnet)).
345
-
346
-
For Bombay testnet, the genesis file is at https://raw.githubusercontent.com/terra-project/testnet/master/bombay-0007/genesis.json
347
-
348
-
Update the seeds (~/.terrad/config/config.toml) to begin running the blockchain. The seeds for Mainnet are (reference: [docs.terra.money](https://docs.terra.money/node/join-network.html#define-seed-nodes)):
For the Mainnet (columbus-4), the genesis file can be downloaded from https://columbus-genesis.s3-ap-northeast-1.amazonaws.com/columbus-4-genesis.json (reference [docs.terra.money](https://docs.terra.money/node/join-network.html#download-the-genesis-file)).
16
+
17
+
~~The address book can be found at https://network.terra.dev/addrbook.json (reference [docs.terra.money](https://docs.terra.money/node/join-network.html#picking-a-network)).~~ The address book is not actually required.
18
+
19
+
For the Testnet (tequila-0004), the genesis file can be downloaded from https://raw.githubusercontent.com/terra-project/testnet/master/tequila-0004/genesis.json (reference [github.com](https://github.com/terra-project/testnet)).
20
+
21
+
For Bombay testnet, the genesis file is at https://raw.githubusercontent.com/terra-project/testnet/master/bombay-0007/genesis.json
22
+
23
+
Update the seeds (~/.terrad/config/config.toml) to begin running the blockchain. The seeds for Mainnet are (reference: [docs.terra.money](https://docs.terra.money/node/join-network.html#define-seed-nodes)):
0 commit comments