Re: snapshot timestamp

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


On Fri, Aug 4, 2023 at 7:49 AM Tony Liu <tonyliu0592@xxxxxxxxxxx> wrote:
> Hi,
> We know snapshot is on a point of time. Is this point of time tracked internally by
> some sort of sequence number, or the timestamp showed by "snap ls", or something else?

Hi Tony,

The timestamp in "rbd snap ls" output is the snapshot creation

> I noticed that when "deep cp", the timestamps of all snapshot are changed to copy-time.

Correct -- exactly the same as the image creation timestamp (visible in
"rbd info" output).

> Say I create a snapshot at 1PM and make a copy at 3PM, the timestamp of snapshot in
> the copy is 3PM. If I rollback the copy to this snapshot, I'd assume it will actually bring me
> back to the state of 1PM. Is that correct?


> If the above is true, I won't be able to rely on timestamp to track snapshots.
> Say I create a snapshot every hour and make a backup by copy at the end of the day.
> Then the original image is damaged and backup is used to restore the work. On this
> backup image, how do I know which snapshot was on 1PM, which was on 2PM, etc.?
> Any advices to track snapshots properly in such case?

I would suggest embedding that info along with any additional metadata
needed in the snapshot name.


ceph-users mailing list -- ceph-users@xxxxxxx
To unsubscribe send an email to ceph-users-leave@xxxxxxx

[Index of Archives]     [Information on CEPH]     [Linux Filesystem Development]     [Ceph Development]     [Ceph Large]     [Ceph Dev]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]

  Powered by Linux