* LVM Snapshot Feature
@ 2008-08-01 7:35 Bombardier, Pascal
2008-08-01 14:15 ` Luke S Crawford
2008-08-01 15:52 ` Adam Hamsik
0 siblings, 2 replies; 5+ messages in thread
From: Bombardier, Pascal @ 2008-08-01 7:35 UTC (permalink / raw)
To: dm-devel
Hi,
In your opinion, does it make sense to be able to create non-persistent
snapshots ?
In the case of a filesystem backup, a non-persistent snapshot would be a
snapshot that we agree to lose in case of failure or reboot. If anything
happens, a server administrator would have to recreate a new snapshot
and then restart the backup.
In this case, I think metadata could be stored in memory instead of on
disk, which should improve LVM snapshot performance.
Is this theory wrong, and is this something which can be implemented
easily in the current LVM code ?
Pascal
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: LVM Snapshot Feature
2008-08-01 7:35 LVM Snapshot Feature Bombardier, Pascal
@ 2008-08-01 14:15 ` Luke S Crawford
2008-08-01 15:52 ` Adam Hamsik
1 sibling, 0 replies; 5+ messages in thread
From: Luke S Crawford @ 2008-08-01 14:15 UTC (permalink / raw)
To: device-mapper development
"Bombardier, Pascal" <pascal.bombardier@sap.com> writes:
> In your opinion, does it make sense to be able to create non-persistent
> snapshots ?
> In the case of a filesystem backup, a non-persistent snapshot would be a
> snapshot that we agree to lose in case of failure or reboot. If anything
> happens, a server administrator would have to recreate a new snapshot
> and then restart the backup.
Considering the current failure mode when a snapshot becomes 'full' (that
is, when I run out of space to remap changed blocks the snapshot becomes
corrupted) this is the only way I currently feel comfortable using LVM
snapshots at all, so personally, I think snapshots that did not persist
through reboots would be quite useful.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: LVM Snapshot Feature
2008-08-01 7:35 LVM Snapshot Feature Bombardier, Pascal
2008-08-01 14:15 ` Luke S Crawford
@ 2008-08-01 15:52 ` Adam Hamsik
2008-08-04 13:15 ` Mikulas Patocka
1 sibling, 1 reply; 5+ messages in thread
From: Adam Hamsik @ 2008-08-01 15:52 UTC (permalink / raw)
To: device-mapper development
On Aug,Friday 1 2008, at 9:35 AM, Bombardier, Pascal wrote:
> Hi,
>
> In your opinion, does it make sense to be able to create non-
> persistent
> snapshots ?
> In the case of a filesystem backup, a non-persistent snapshot would
> be a
> snapshot that we agree to lose in case of failure or reboot. If
> anything
> happens, a server administrator would have to recreate a new snapshot
> and then restart the backup.
> In this case, I think metadata could be stored in memory instead of on
> disk, which should improve LVM snapshot performance.
>
> Is this theory wrong, and is this something which can be implemented
> easily in the current LVM code ?
>
AFAIK non-persistent snapshots are already implemented see
DM_PERSISTENT_DEV_FLAG ? I haven't look at linux kernel code how is
it done but when I solve my lvcreate -s bug on NetBSD non-persistent
snapshots are next :).
Regards
Adam.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: LVM Snapshot Feature
2008-08-01 15:52 ` Adam Hamsik
@ 2008-08-04 13:15 ` Mikulas Patocka
2008-08-06 6:08 ` haad
0 siblings, 1 reply; 5+ messages in thread
From: Mikulas Patocka @ 2008-08-04 13:15 UTC (permalink / raw)
To: device-mapper development
On Fri, 1 Aug 2008, Adam Hamsik wrote:
> On Aug,Friday 1 2008, at 9:35 AM, Bombardier, Pascal wrote:
>
> > Hi,
> >
> > In your opinion, does it make sense to be able to create non-persistent
> > snapshots ?
> > In the case of a filesystem backup, a non-persistent snapshot would be a
> > snapshot that we agree to lose in case of failure or reboot. If anything
> > happens, a server administrator would have to recreate a new snapshot
> > and then restart the backup.
> > In this case, I think metadata could be stored in memory instead of on
> > disk, which should improve LVM snapshot performance.
> >
> > Is this theory wrong, and is this something which can be implemented
> > easily in the current LVM code ?
> >
>
> AFAIK non-persistent snapshots are already implemented see
> DM_PERSISTENT_DEV_FLAG ? I haven't look at linux kernel code how is
> it done but when I solve my lvcreate -s bug on NetBSD non-persistent
> snapshots are next :).
>
> Regards
>
> Adam.
Yes. They are implemented in device mapper in kernel --- but no userspace
lvm tool can use them. You can only create them using dmsetup.
Mikulas
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: LVM Snapshot Feature
2008-08-04 13:15 ` Mikulas Patocka
@ 2008-08-06 6:08 ` haad
0 siblings, 0 replies; 5+ messages in thread
From: haad @ 2008-08-06 6:08 UTC (permalink / raw)
To: device-mapper development
On Mon, Aug 4, 2008 at 4:15 PM, Mikulas Patocka <mpatocka@redhat.com> wrote:
> On Fri, 1 Aug 2008, Adam Hamsik wrote:
>
>> On Aug,Friday 1 2008, at 9:35 AM, Bombardier, Pascal wrote:
>>
>> > Hi,
>> >
>> > In your opinion, does it make sense to be able to create non-persistent
>> > snapshots ?
>> > In the case of a filesystem backup, a non-persistent snapshot would be a
>> > snapshot that we agree to lose in case of failure or reboot. If anything
>> > happens, a server administrator would have to recreate a new snapshot
>> > and then restart the backup.
>> > In this case, I think metadata could be stored in memory instead of on
>> > disk, which should improve LVM snapshot performance.
>> >
>> > Is this theory wrong, and is this something which can be implemented
>> > easily in the current LVM code ?
>> >
>>
>> AFAIK non-persistent snapshots are already implemented see
>> DM_PERSISTENT_DEV_FLAG ? I haven't look at linux kernel code how is
>> it done but when I solve my lvcreate -s bug on NetBSD non-persistent
>> snapshots are next :).
>>
>> Regards
>>
>> Adam.
>
> Yes. They are implemented in device mapper in kernel --- but no userspace
> lvm tool can use them. You can only create them using dmsetup.
>
> Mikulas
Do you have list of commands which I have to run to create persistent dm
snapshot with dmsetup ? It would be handy to test my driver with dmsetup
first and only after that use lvm2tools to create persistent/non-persistent
snapshots.
Regards
Adam.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2008-08-06 6:08 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-01 7:35 LVM Snapshot Feature Bombardier, Pascal
2008-08-01 14:15 ` Luke S Crawford
2008-08-01 15:52 ` Adam Hamsik
2008-08-04 13:15 ` Mikulas Patocka
2008-08-06 6:08 ` haad
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).