@cryptotaxi247 / netdata-1 / commits / 05da6a27a

Add improved reinstall documentation. (#13047)

Including explaining how to do a clean reinstall, and how to switch install types.

Austin S. Hemmelgarn committed Jun 6, 2022 at 12:29 UTC 05da6a27a273df5d6f43d16fd5de4f2b26423a6c
1 file changed +39 -3
packaging/installer/REINSTALL.md
+39 -3
@@ -11,8 +11,11 @@ Netdata Agent on your node.
11
12 ## One-line installer script (`kickstart.sh`)
13
14 +### Reinstalling with the same install type
15 +
16 Run the one-line installer script with the `--reinstall` parameter to reinstall the Netdata Agent. This will preserve
15 -any [user configuration](/docs/configure/nodes.md) in `netdata.conf` or other files.
17 +any [user configuration](/docs/configure/nodes.md) in `netdata.conf` or other files, and will keep the same install
18 +type that was used for the original install.
19
20 If you used any [optional
21 parameters](/packaging/installer/methods/kickstart.md#optional-parameters-to-alter-your-installation) during initial
@@ -24,6 +27,41 @@ optional parameters.
27 wget -O /tmp/netdata-kickstart.sh https://my-netdata.io/kickstart.sh && sh /tmp/netdata-kickstart.sh --reinstall
28 ```
29
30 +### Performing a clean reinstall
31 +
32 +Run the one-line installer script with the `--reinstall-clean` parameter to perform a clean reinstall of the
33 +Netdata Agent. This will wipe all existing configuration and historical data, but can be useful sometimes for
34 +getting a badly broken installation working again. Unlike the regular `--reinstall` parameter, this may use a
35 +different install type than the original install used.
36 +
37 +If you used any [optional
38 +parameters](/packaging/installer/methods/kickstart.md#optional-parameters-to-alter-your-installation) during initial
39 +installation, you need to pass them to the script again during reinstallation. If you cannot remember which options you
40 +used, read the contents of the `.environment` file and look for a `REINSTALL_OPTIONS` line. This line contains a list of
41 +optional parameters.
42 +
43 +```bash
44 +wget -O /tmp/netdata-kickstart.sh https://my-netdata.io/kickstart.sh && sh /tmp/netdata-kickstart.sh --reinstall-clean
45 +```
46 +
47 +### Changing the install type of an existing installation
48 +
49 +The clean reinstall procedure outlined above can also be used to manually change the install type for an existing
50 +installation. Without any extra parameters, it will automatically pick the preferred installation type for your
51 +system, even if that has changed since the original install. If you want to force use of a specific install type,
52 +you can use the `--native-only`, `--static-only`, or `--build-only` parameter to control which install type gets
53 +used, just like with a new install.
54 +
55 +When using the `--reinstall-clean` option to change the install type, you will need to manually preserve any
56 +configuration or historical data you want to keep. The following directories may need to be preserved:
57 +
58 +- `/etc/netdata` (`/opt/netdata/etc/netdata` for static installs): For agent configuration.
59 +- `/var/lib/netdata` (`/opt/netdata/var/lib/netdata` for static installs): For claiming configuration.
60 +- `/var/cache/netdata` (`/opt/netdata/var/cache/netdata` for static installs): For historical data.
61 +
62 +When copying these directories back after the reinstall, you may need to update file ownership by running `chown
63 +-R netdata:netdata` on them.
64 +
65 ## Troubleshooting
66
67 If you still experience problems with your Netdata Agent installation after following one of these processes, the next
@@ -32,5 +70,3 @@ installer](/packaging/installer/methods/kickstart.md).
70
71 You can also post to our [community forums](https://community.netdata.cloud/c/support/13) or create a new [bug
72 report](https://github.com/netdata/netdata/issues/new?assignees=&labels=bug%2Cneeds+triage&template=BUG_REPORT.yml).
35 -
36 -