I would like to convert my tsm data to tsi. I tried using the buildtsi command but it says I need root permissions because it will create directories where I have my influx data (/var/lib/influxdb/data), but when I give it the sudo command it says I will not have access to the data unless I run influx as root. Any thoughts on how I should proceed? Thanks
sudo influx_inspect buildtsi -datadir /var/lib/influxdb/data/ -waldir /var/lib/influxdb/wal/
You are currently running as root. This will build your
index files with root ownership and will be inaccessible
if you run influxd as a non-root user. You should run
buildtsi as the same user you are running influxd.
Are you sure you want to continue? (y/N):