Timezone Questions

Hi all,

I am taking snapshots on a server using sanoid with the timezone set to UTC in the systemd unit. My systems operating system is otherwise using AEDT.

When I run sanoid --monitor-snapshots in the source everything is fine. I am also replicating these to a secondary Linux server, sanoid --monitor-snapshots also reports back fine there too.

Replicating these to a TrueNAS Scale server sanoid --monitor-snapshots reports;

CRIT: Archive/BackUp newest daily is snapshot 1d 10h 55m 41s old (should be < 1d 8h 0m 0s)

So it looks like I am 2hrs off but my replication is up to date.

UTC is an 11hr offset from AEDT.

I tried setting the environment variable in shell export TZ=UTC for testing but it still reports the same error.

I am clearly missing the basics here. Can someone please point out the obvious.

Thanks

Adam

I’m not sure how to resolve the time zone issue with truenas, but if all else fails you could just adjust the template in your sanoid.conf to allow an extra however many hours before it crits and warns. If you look at where the backup and hotspare templates are defined, they’re well commented and should be self documenting.

Thanks @mercenary_sysadmin , it seems to have righted itself overnight. I read over the config file again, I’ll be sure to check first next time.

1 Like

(post deleted by author)