You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just went through a successful lxd recover which reimport my container and its snapshots from the intact zpool. Snapshots are taken on a schedule:
# lxc config show -e ganymede | grep snapshot
snapshots.expiry: 3d
snapshots.schedule: '@daily, @startup'
However, after lxd recover brought those snapshots back, they lost their expires at field:
# lxc info ganymede | sed -n '/^Snapshots:$/,$ p'
Snapshots:
+---------+----------------------+----------------------+----------+
| NAME | TAKEN AT | EXPIRES AT | STATEFUL |
+---------+----------------------+----------------------+----------+
| snap222 | 2024/05/07 05:28 UTC | | NO |
+---------+----------------------+----------------------+----------+
| snap223 | 2024/05/08 05:28 UTC | | NO |
+---------+----------------------+----------------------+----------+
| snap224 | 2024/05/09 05:28 UTC | | NO |
+---------+----------------------+----------------------+----------+
| snap225 | 2024/05/09 22:21 UTC | 2024/05/12 22:21 UTC | NO |
+---------+----------------------+----------------------+----------+
In the above, snap225 was taken after the lxd recover.
However, the instance's backup.yaml should have had this information which is where it learned about the taken at field. That said, it seems the recovery have overwritten the backup.yaml with the bogus values now:
In fact, looking at the snap225 section of the backup.yaml (added post-recovery), it seems that during normal operations LXD doesn't save the right expires_at field in the backup.yaml file.
I just went through a successful
lxd recover
which reimport my container and its snapshots from the intact zpool. Snapshots are taken on a schedule:However, after
lxd recover
brought those snapshots back, they lost theirexpires at
field:In the above,
snap225
was taken after thelxd recover
.However, the instance's
backup.yaml
should have had this information which is where it learned about thetaken at
field. That said, it seems the recovery have overwritten thebackup.yaml
with the bogus values now:Additional information:
# snap list lxd Name Version Rev Tracking Publisher Notes lxd 5.21.1-d46c406 28460 5.21/stable canonical✓ -
The text was updated successfully, but these errors were encountered: