Altering shard duration

Hi,

we have a influxdb 1.7 database that has retention policy of 90 days which means we store roughly 1,5TB of data. The shard duration is only 24 hours, which I believe might result higher disk space usage, correct? This leads to my next question of what happens if I just extend the shard duration to 7 days? According to https://docs.influxdata.com/influxdb/v1.7/query_language/database_management/#modify-retention-policies-with-alter-retention-policy it seems to be possible, but there’s no kind of mention, is it safe to change and will the old data still be available although it’s stored in shards that are just 24hours worth of data.

Hi , lassozci , as long as you don’t drop the retention policy enlarging the shard duration will not remove old data.
Please take a backup first if you are not sure …