Mailing List Archive

Autosnapshoot RunEvery calculation - somting wrong
Hello,

I found in the documentation: 'AutoSnapshot/RunEvery': Runs every X
minutes an snapshot-creation. Removing this property or having a value
<= 0 disables auto-snapshotting.


But if  I set 1440 (60x24) for daily snapshot, it will executed every 3
days...



linstor snapshot list


? web6         ? autoSnap00002 ? drbd-03, drbd-04 ? 0: 20 GiB, 1: 400
GiB ? 2022-05-02 15:24:24 ? Successful?
? web6         ? autoSnap00003 ? drbd-03, drbd-04 ? 0: 20 GiB, 1: 400
GiB ? 2022-05-05 15:24:28 ? Successful?
? web6         ? autoSnap00004 ? drbd-03, drbd-04 ? 0: 20 GiB, 1: 400
GiB ? 2022-05-08 15:24:19 ? Successful?



linstor resource-definition list-properties web6

? AutoSnapshot/Keep           ? 3       ?
? AutoSnapshot/NextAutoId     ? 4       ?
? AutoSnapshot/RunEvery       ? 1440    ?



What is wrong?


Zsolt
Re: Autosnapshoot RunEvery calculation - somting wrong [ In reply to ]
Hello,

What Linstor version are you running?

I tried to reproduce this, and let a resource be auto-snapshotted for a
week with your 1440 setting. It was not perfect, since the 24h timer gets
restarted every time we restart the controller (for example we had a
snapshot at 2022-05-11 11:50:03, restarted the controller at 2022-05-12
09:11 so the next snapshot was 2022-05-13 09:11:43).
But without restarting the controller, the snapshots were created as
expected every 24h (+- a few seconds).

Although I doubt that you are restarting the controller in such a strange
pattern, without being able to reproduce the issue, I'd have to ask you for
more logs, possible Error Reports, or even TRACE logs in order to dig
deeper into this issue.

--
Best regards,
Gabor Hernadi
Re: Autosnapshoot RunEvery calculation - somting wrong [ In reply to ]
linstor 1.6.1; GIT-hash: df9121a4e86502351bd7373446dc0f9233ab3bb5

  Active: active (running)since Thu 2021-05-13 16:14:37 CEST; 1 years 0
months ago

I think it was earlyer setup for 3 days, but after I changed to 1 day.
It seams changes isn't activated? Maybe restart solve the problem?

Zsolt

2022. 05. 16. 9:21 keltezéssel, Gábor Hernádi írta:
> Hello,
>
> What Linstor version are you running?
>
> I tried to reproduce this, and let a resource be auto-snapshotted for
> a week with your 1440 setting. It was not perfect, since the 24h timer
> gets restarted every time we restart the controller (for example we
> had a snapshot at 2022-05-11 11:50:03, restarted the controller at
> 2022-05-12 09:11 so the next snapshot was 2022-05-13 09:11:43).
> But without restarting the controller, the snapshots were created as
> expected every 24h (+- a few seconds).
>
> Although I doubt that you are restarting the controller in such a
> strange pattern, without being able to reproduce the issue, I'd have
> to ask you for more logs, possible Error Reports, or even TRACE logs
> in order to dig deeper into this issue.
>
> --
> Best regards,
> Gabor Hernadi
>
> _______________________________________________
> Star us on GITHUB:https://github.com/LINBIT
> drbd-user mailing list
> drbd-user@lists.linbit.com
> https://lists.linbit.com/mailman/listinfo/drbd-user
Re: Autosnapshoot RunEvery calculation - somting wrong [ In reply to ]
Hi,

> linstor 1.6.1; GIT-hash: df9121a4e86502351bd7373446dc0f9233ab3bb5
>
This is the version of the client. Use `linstor controller version` to get
the version of the linstor-controller.


> Active: active (running) since Thu 2021-05-13 16:14:37 CEST; 1 years 0
> months ago
>
Whatever the exact version the controller is running, this is quite old..

Before I ran the 1 week test, I ran several smaller tests (minutes instead
of days), where I initially set the auto-snapshot to 3 minutes, waited for
the first one and changed to every 1 minute. Worked as expected, so chances
are that there was indeed a bug which got fixed since the version you are
running for a year now.


> I think it was earlyer setup for 3 days, but after I changed to 1 day. It
> seams changes isn't activated? Maybe restart solve the problem?
>
I would assume so. Restarting the controller necessarily makes the
controller re-parse the properties.

--
Best regards,
Gabor Hernadi
Re: Autosnapshoot RunEvery calculation - somting wrong [ In reply to ]
Tisztelt Gábor,


2022. 05. 16. 11:03 keltezéssel, Gábor Hernádi írta:
> Hi,
>
> linstor 1.6.1; GIT-hash: df9121a4e86502351bd7373446dc0f9233ab3bb5
>
> This is the version of the client. Use `linstor controller version` to
> get the version of the linstor-controller.


linstor controller 1.11.1; GIT-hash:
fe95a94d86c66c6c9846a3cf579a1a776f95d3f4

Yes, it is old, but work correctly on isolated system. We need to found
a time to completely reinstall this hosts, because it is Opensuse, and
in new Opensuse versions linstor is not included (compiled). Yes I know
that it can be included over docker and other solutions, but I don't
want another complications. We change all this systems to other
distribution.

>   Active: active (running)since Thu 2021-05-13 16:14:37 CEST; 1
> years 0 months ago
>
> Whatever the exact version the controller is running, this is quite old..
>
> Before I ran the 1 week test, I ran several smaller tests (minutes
> instead of days), where I initially set the auto-snapshot to 3
> minutes, waited for the first one and changed to every 1 minute.
> Worked as expected, so chances are that there was indeed a bug which
> got fixed since the version you are running for a year now.
>
> I think it was earlyer setup for 3 days, but after I changed to 1
> day. It seams changes isn't activated? Maybe restart solve the
> problem?
>
> I would assume so. Restarting the controller necessarily makes the
> controller re-parse the properties.


I will try it, and thank You for information.


>
> --
> Best regards,
> Gabor Hernadi