Thnks for reply @Jay_Clifford
I have to uninstall version 1.8 to install version 2.1, through yum… or through .rpm (yum localinstall .rpm)
Because if I stop influx 1.8.x and do an influxdb upgrade, the command is not recognized.
EDIT:
I did the following:
I have influxdb 1.8.10 and I want to upgrade to 2.1
I have the influxdb 1.8.10 backup.
I have stopped the service
I have downloaded the binary and unzipped it
I have entered inside the uncompressed path and I have the influxd (2.1.1) and I execute the ./influxd upgrade
[code] sudo ./influxd upgrade
{“level”:“info”,“ts”:1647939086.8667152,“caller”:“upgrade/upgrade.go:402”,“msg”:“Starting InfluxDB 1.x upgrade”}
{“level”:“info”,“ts”:1647939086.866802,“caller”:“upgrade/upgrade.go:405”,“msg”:“Upgrading config file”,“file”:“/etc/influxdb/influxdb.conf”}
{“level”:“info”,“ts”:1647939086.8672688,“caller”:“upgrade/upgrade.go:409”,“msg”:“Config file upgraded.”,“1.x config”:“/etc/influxdb/influxdb.conf”,“2.x config”:“/root/.influxdbv2/config.toml”}
{“level”:“info”,“ts”:1647939086.867286,“caller”:“upgrade/upgrade.go:419”,“msg”:“Upgrade source paths”,“meta”:“/var/lib/influxdb/meta”,“data”:“/var/lib/influxdb/data”}
{“level”:“info”,“ts”:1647939086.867296,“caller”:“upgrade/upgrade.go:420”,“msg”:“Upgrade target paths”,“bolt”:“/root/.influxdbv2/influxd.bolt”,“engine”:“/root/.influxdbv2/engine”}
{“level”:“info”,“ts”:1647939086.909203,“caller”:“bolt/bbolt.go:83”,“msg”:“Resources opened”,“service”:“bolt”,“path”:“/root/.influxdbv2/influxd.bolt”}
{“level”:“info”,“ts”:1647939086.9192967,“caller”:“migration/migration.go:175”,“msg”:“Bringing up metadata migrations”,“service”:“migrations”,“migration_count”:18}
Welcome to InfluxDB 2.0!
? Please type your primary username user
? Please type your password **********
? Please type your password again **********
? Please type your primary organization name im
? Please type your primary bucket name im
? Please type your retention period in hours, or 0 for infinite 0
? Setup with these parameters?
Username: user
Organization: im
Bucket: im
Retention Period: infinite
Yes
{“level”:“info”,“ts”:1647939226.2515893,“caller”:“upgrade/setup.go:73”,“msg”:“CLI config has been stored.”,“path”:“/root/.influxdbv2/configs”}
{“level”:“info”,“ts”:1647939226.251667,“caller”:“upgrade/database.go:202”,“msg”:“Checking available disk space”}
{“level”:“info”,“ts”:1647939226.2543473,“caller”:“upgrade/database.go:223”,“msg”:“Computed disk space”,“free”:“24 GB”,“required”:“565 MB”}
? Proceeding will copy all V1 data to “/root/.influxdbv2”
Space available: 24 GB
Space required: 565 MB
Yes
{“level”:“info”,“ts”:1647939240.3682117,“caller”:“upgrade/database.go:51”,“msg”:“Upgrading databases”}
{“level”:“warn”,“ts”:1647939240.4192066,“caller”:“upgrade/database.go:158”,“msg”:“Empty retention policy”}
{“level”:“warn”,“ts”:1647939240.4606638,“caller”:“upgrade/database.go:158”,“msg”:“Empty retention policy”}
{“level”:“warn”,“ts”:1647939240.495276,“caller”:“upgrade/database.go:158”,“msg”:“Empty retention policy”}
{“level”:“warn”,“ts”:1647939240.5332541,“caller”:“upgrade/database.go:158”,“msg”:“Empty retention policy”}
{“level”:“warn”,“ts”:1647939240.7229803,“caller”:“upgrade/database.go:158”,“msg”:“Empty retention policy”}
{“level”:“warn”,“ts”:1647939240.7699192,“caller”:“upgrade/database.go:158”,“msg”:“Empty retention policy”}
{“level”:“warn”,“ts”:1647939240.804222,“caller”:“upgrade/database.go:158”,“msg”:“Empty retention policy”}
{“level”:“warn”,“ts”:1647939240.8655705,“caller”:“upgrade/database.go:158”,“msg”:“Empty retention policy”}
{“level”:“warn”,“ts”:1647939240.9048724,“caller”:“upgrade/database.go:158”,“msg”:“Empty retention policy”}
{“level”:“warn”,“ts”:1647939240.942009,“caller”:“upgrade/database.go:158”,“msg”:“Empty retention policy”}
{“level”:“warn”,“ts”:1647939240.9749124,“caller”:“upgrade/database.go:158”,“msg”:“Empty retention policy”}
{“level”:“info”,“ts”:1647939251.475856,“caller”:“upgrade/database.go:195”,“msg”:“Database upgrade complete”,“upgraded_count”:15}
{“level”:“info”,“ts”:1647939251.4759476,“caller”:“upgrade/security.go:45”,“msg”:“Upgrading 1.x users”}
{“level”:“warn”,“ts”:1647939251.503806,“caller”:“upgrade/security.go:50”,“msg”:“User is admin and will not be upgraded”,“username”:“user”}
{“level”:“info”,“ts”:1647939251.5285735,“caller”:“upgrade/security.go:115”,“msg”:“User upgrade complete”,“upgraded_count”:2}
{“level”:“warn”,“ts”:1647939251.5286121,“caller”:“upgrade/upgrade.go:484”,“msg”:“1.x users were upgraded, but 1.x auth was not enabled. Existing clients will fail authentication against 2.x if using invalid credentials”}
{“level”:“info”,“ts”:1647939251.5286314,“caller”:“upgrade/upgrade.go:489”,“msg”:“Upgrade successfully completed. Start the influxd service now, then log in”,“login_url”:“localhost:8086”}
[/code]
but now what i need to do? remove influxdb 1.8.10? install 2.1 and i have the new config?