Migrate index-version from inmem to tsi1 missing data

I use influxdb 1.7 with index-version = “inmem”. As I read the doc, I migrate to tsi1 follow the steps below.

  1. sudo service influxdb stop
  2. sudo influx_inspect buildtsi -datadir /var/lib/influxdb/data -waldir /var/lib/influxdb/wal
  3. sudo service influxdb start

After doing these, the data I stored previous were missing. Does it take some time to convert to tsi or Is there something wrong with my operation?

As I find out that “sudo service influxdb start” the user of the influxd daemon process is “influxdb”.
So I make a mistake to convert inmem data to tsi. step 2 should be as follow:

sudo -H -u influxdb bash -c ‘influx_inspect buildtsi -datadir /var/lib/influxdb/data -waldir /var/lib/influxdb/wal’

Hi @jackyxie,
Do you still have missing data ?

I change the user to convert to tsi. It’s ok now.