* timestamp for shared snapshot
@ 2011-02-16 9:42 devicemapper niko
2011-02-16 14:36 ` Mike Snitzer
0 siblings, 1 reply; 4+ messages in thread
From: devicemapper niko @ 2011-02-16 9:42 UTC (permalink / raw)
To: dm-devel
[-- Attachment #1.1: Type: text/plain, Size: 152 bytes --]
Hi,guys.
I tried shared snapshot recently,I found there's no timestamp for snapshot.
Is it possible to add timestamp and comment for each snapshots ?
[-- Attachment #1.2: Type: text/html, Size: 218 bytes --]
[-- Attachment #2: Type: text/plain, Size: 0 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: timestamp for shared snapshot
2011-02-16 9:42 timestamp for shared snapshot devicemapper niko
@ 2011-02-16 14:36 ` Mike Snitzer
2011-02-16 17:55 ` Alasdair G Kergon
0 siblings, 1 reply; 4+ messages in thread
From: Mike Snitzer @ 2011-02-16 14:36 UTC (permalink / raw)
To: devicemapper niko; +Cc: dm-devel
On Wed, Feb 16 2011 at 4:42am -0500,
devicemapper niko <devicemapper.niko@gmail.com> wrote:
> Hi,guys.
>
> I tried shared snapshot recently,I found there's no timestamp for snapshot.
>
> Is it possible to add timestamp and comment for each snapshots ?
I assume you're using Mikulas' shared snapshot kernel patches? E.g.:
http://people.redhat.com/mpatocka/patches/kernel/new-snapshots/r23/
And a patched lvm2 with shared snapshot support? E.g.:
http://people.redhat.com/mpatocka/patches/userspace/new-snapshots/lvm-2.02.73/
It should be noted that the above shared snapshot work is unlikely to
make it upstream (portions of it likely will, for instance the lvm2
userspace changes). A new shared snapshot implementation is in
development.
In any case, the easiest thing to do is use descriptive names for each
snapshot (include your own timestamp, etc).
Mike
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: timestamp for shared snapshot
2011-02-16 14:36 ` Mike Snitzer
@ 2011-02-16 17:55 ` Alasdair G Kergon
2011-02-18 9:18 ` devicemapper niko
0 siblings, 1 reply; 4+ messages in thread
From: Alasdair G Kergon @ 2011-02-16 17:55 UTC (permalink / raw)
To: device-mapper development; +Cc: devicemapper niko
> > Is it possible to add timestamp and comment for each snapshots ?
Good idea - as a userspace lvm2 feature, yes.
We currently store creation details for each VG.
I agree we should also store such details for each LV.
This should be optional, but default to enabled.
(People short of space can perhaps turn it off, discarding any existing
details.)
Storing a comment is perhaps an extension to tag support that's been discussed,
to allow longer tags with a wider character set.
> It should be noted that the above shared snapshot work is unlikely to
> make it upstream (portions of it likely will, for instance the lvm2
> userspace changes). A new shared snapshot implementation is in
> development.
Different snapshot implementations are optimised for different types of usage.
Each one involves choosing between different trade-offs. We're unlikely ever
to have one solution that is optimal for everyone.
In that spirit, I hope to be submitting more than one shared snapshot
implementation upstream, including *both* of the ones referred to in this
message. But I want the interfaces used by these implementations to be
basically compatible so that the same userspace tools can make use of them.
Alasdair
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: timestamp for shared snapshot
2011-02-16 17:55 ` Alasdair G Kergon
@ 2011-02-18 9:18 ` devicemapper niko
0 siblings, 0 replies; 4+ messages in thread
From: devicemapper niko @ 2011-02-18 9:18 UTC (permalink / raw)
To: agk; +Cc: dm-devel
[-- Attachment #1.1: Type: text/plain, Size: 1576 bytes --]
On Thu, Feb 17, 2011 at 1:55 AM, Alasdair G Kergon <agk@redhat.com> wrote:
> > > Is it possible to add timestamp and comment for each snapshots ?
>
> Good idea - as a userspace lvm2 feature, yes.
>
> We currently store creation details for each VG.
> I agree we should also store such details for each LV.
> This should be optional, but default to enabled.
> (People short of space can perhaps turn it off, discarding any existing
> details.)
>
> Storing a comment is perhaps an extension to tag support that's been
> discussed,
> to allow longer tags with a wider character set.
>
U mean saving the snapshots timestamp infomation in VGDA?
It's not good i think. hundreds of snaps may be tagged but not attached
using dmsetup create command.
saving attached snaps infomation in VGDA is more reasonable
> > It should be noted that the above shared snapshot work is unlikely to
> > make it upstream (portions of it likely will, for instance the lvm2
> > userspace changes). A new shared snapshot implementation is in
> > development.
>
> Different snapshot implementations are optimised for different types of
> usage.
> Each one involves choosing between different trade-offs. We're unlikely
> ever
> to have one solution that is optimal for everyone.
>
> In that spirit, I hope to be submitting more than one shared snapshot
> implementation upstream, including *both* of the ones referred to in this
> message. But I want the interfaces used by these implementations to be
> basically compatible so that the same userspace tools can make use of them.
>
> Alasdair
>
>
[-- Attachment #1.2: Type: text/html, Size: 2114 bytes --]
[-- Attachment #2: Type: text/plain, Size: 0 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2011-02-18 9:18 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-16 9:42 timestamp for shared snapshot devicemapper niko
2011-02-16 14:36 ` Mike Snitzer
2011-02-16 17:55 ` Alasdair G Kergon
2011-02-18 9:18 ` devicemapper niko
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.