From: Andreas Dilger <adilger@turbolabs.com>
To: Kyle Hayes <khayes@quicknet.net>
Cc: linux-lvm@sistina.com
Subject: Re: [linux-lvm] snapshot questions
Date: Fri Nov 2 11:28:02 2001 [thread overview]
Message-ID: <20011102102908.H746@lynx.no> (raw)
In-Reply-To: <01110208435117.08803@khayes-lin>; from khayes@quicknet.net on Fri, Nov 02, 2001 at 08:43:51AM -0800
On Nov 02, 2001 08:43 -0800, Kyle Hayes wrote:
> 1) how does the snapshot actually work? My understanding is that the
> creation of a snapshot partition sets up a new LV on the same VG as
> the "source" partition. This new partition is then used for writes to
> the "source" partition. When the snapshot LV is removed, do I get
> a disk IO hit as these changes are copied back to the "source" partition?
> Or, does it work more like Veritas where the changed data go to the
> "source" and the original values are copied to the snapshot partition?
> The Veritas method is nice because dropping the snapshot partition
> does not require any data copying.
It is like the veritas method - changes go into the original LV, and the
old data is copied into the snapshot(s).
> 2) are there any people using LVM for database snapshots? The
> Whitepaper from SuSE has examples for Oracle and the HOWTO's
> talk about it, but is it used in production? If so, what issues have you
> found?
You probably need to put your tablespaces into "backup" mode temporarily
when doing the snapshot. Otherwise there is no guarantee that what is
currently on disk is any good.
> 4) It seems that most of the LVM work is going into 2.4. We have not
> been particularly pleased with the stability of 2.4 in general and would
> like to stay with 2.2 for a while. How does the stability of LVM on 2.2
> compare to 2.4?
It should be pretty much identical. There are compatibility hooks for
2.2 and 2.4, and they both use an otherwise identical code base.
> 5) I have seen references to the VFS lock patch in the mailing list.
> Is this actually supported by any filesystems yet? Is it in the
> kernel proper?
Yes, reiserfs, ext3, and XFS all support the lock interface to the VFS.
Note that the stock 2.4 kernel has the VFS methods for this, but is
missing the code to do it. There is the capability to support this for
ext3 on 2.2, but it is not in the stock code. I think the same is true
for reiserfs.
Cheers, Andreas
--
Andreas Dilger
http://sourceforge.net/projects/ext2resize/
http://www-mddsp.enel.ucalgary.ca/People/adilger/
next prev parent reply other threads:[~2001-11-02 11:28 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-11-02 10:42 [linux-lvm] snapshot questions Kyle Hayes
2001-11-02 11:28 ` Andreas Dilger [this message]
2001-11-02 12:51 ` Jesus Manuel NAVARRO LOPEZ
-- strict thread matches above, loose matches on Subject: below --
2001-11-02 13:16 Kenny Gorman
2001-11-05 3:27 ` Jesus Manuel NAVARRO LOPEZ
[not found] <D880FFC9CFDBA84FA13E9B166D06A123B647FB@daedalus.kenamea.co m>
2001-11-02 13:59 ` Brent Harding
2001-11-02 15:40 ` Kyle Hayes
2001-11-02 16:39 ` Andreas Dilger
2001-11-02 18:20 ` Kyle Hayes
2001-11-05 4:38 ` Jesus Manuel NAVARRO LOPEZ
2001-11-05 10:50 ` Kyle Hayes
2001-11-05 14:21 ` Andreas Dilger
2001-11-05 4:15 ` Jesus Manuel NAVARRO LOPEZ
2001-11-02 15:58 Kenny Gorman
2001-11-02 17:04 ` Kyle Hayes
2001-11-02 17:49 Kenny Gorman
2001-11-05 10:31 ` Jesus Manuel NAVARRO LOPEZ
2007-05-06 5:32 [linux-lvm] Snapshot questions Ed Martin
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=20011102102908.H746@lynx.no \
--to=adilger@turbolabs.com \
--cc=khayes@quicknet.net \
--cc=linux-lvm@sistina.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).