From: Zdenek Kabelac <zkabelac@redhat.com>
To: "LVM general discussion and development" <linux-lvm@redhat.com>,
"Alexander Patrakov" <patrakov@gmail.com>,
"Георгий Бажуков" <g.bazhukov@ideco.ru>
Subject: Re: [linux-lvm] LVM and chain of snapshots
Date: Wed, 20 Jan 2016 13:09:30 +0100 [thread overview]
Message-ID: <569F78FA.4050104@redhat.com> (raw)
In-Reply-To: <CAEmTpZEikmudjzJPadhreVxXBq9Lsa8bMkD20B0i1u-fMPks6Q@mail.gmail.com>
Dne 20.1.2016 v 11:37 Марк Коренберг napsal(a):
> I am aware that this subject was raised in mailing lists, but I haven't found
> an obvious solution there.
>
> Why not to add an option to lvcreate when creating snapshots, to switch origin
> and snapshot ?
>
> I mean that while (in this mode) creating snapshot named xxx of volume name
> yyy, the following should be done:
>
> 1. xxx-real dmsetup volume is created with identical table as in yyy
> 2. yyy-cow dmsetup volume is created to store snapshot data
> 3. yyy is switched to table "snapshot xxx-real yyy-cow"
> 4. xxx created as "snapshot-origin xxx-real"
>
Most development now goes to 'thin' snapshot support where it
doesn't really matter what is called origin and what is the snapshot.
So with thin you get this functionality for free.
For current old-snaphot I'm now working on 'resize' support - once this
is solved we may look at this issue.
But from first look it doesn't look like it brings anything 'new' to the table.
The main thing is - what is expected state - and you seems to be targeting
for the case, where 'snapshot' is the playground which is going to be
removed after playing.
However from higher-level logic - you cannot --merge snapshot back to origin
without unmounting both origin and snapshot.
So there is possibly advantage where you can 'drop' snapshot,
but you can't do that without unmount first - and once you unmount,
you could equally run --merge and have instant access to merged snapshot
(where merging runs in background).
Anwyay - if you think there is 'valid' use-case - feel free to open [RFE]
bugzilla request at bugzilla.redhat.com for lvm2 package.
And specify use-case you want to see supported.
IMHO for best perfomance you should reorient to thin-provisioing,
since old-snapshot are in its nature not really improvable.
> Note, that having plenty snapshots in that mode will not affect write
> performance of yyy. Yes, performance of read operations may slightly suffer
> since require to lookup chain of snapshots, but this is much less performance
> impact comparing to writes to original when plenty snapshots created (in
> generic mode).
Using lots of old-snaphosts is very bad plan - really time to look at
thin-provisioning....
Old-snaps are not going to scale.....
Regards
Zdenek
next prev parent reply other threads:[~2016-01-20 12:09 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-01-20 10:37 [linux-lvm] LVM and chain of snapshots Марк Коренберг
2016-01-20 12:09 ` Zdenek Kabelac [this message]
2016-01-20 12:54 ` Марк Коренберг
2016-01-20 14:20 ` Zdenek Kabelac
2016-01-20 13:02 ` Alexander E. Patrakov
2016-01-20 13:11 ` Zdenek Kabelac
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=569F78FA.4050104@redhat.com \
--to=zkabelac@redhat.com \
--cc=g.bazhukov@ideco.ru \
--cc=linux-lvm@redhat.com \
--cc=patrakov@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).