linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
* [linux-lvm] Standard Linux Framework for Snapshot Notification
@ 2005-11-14 13:50 Block Device
  2005-11-18 21:56 ` Alasdair G Kergon
  0 siblings, 1 reply; 3+ messages in thread
From: Block Device @ 2005-11-14 13:50 UTC (permalink / raw)
  To: linux-lvm

Hi,

  I  want to know whether Linux provides any standard interface for
volume managers etc so that applications can register themselves to be
notified when a snapshot needs to be taken.
Something similar to VSS on Windows.

If there isnt any such interface how is consistency guaranteed for
application data when a snapshot is taken ? eg. How does one take
(consistent) snapshots of database instances w/o  first quiescing them
?

If this not the right place to ask this, can someone point me in the
right direction ?

Thanks & Regards
BD.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [linux-lvm] Standard Linux Framework for Snapshot Notification
  2005-11-14 13:50 [linux-lvm] Standard Linux Framework for Snapshot Notification Block Device
@ 2005-11-18 21:56 ` Alasdair G Kergon
  2005-11-23  6:29   ` Block Device
  0 siblings, 1 reply; 3+ messages in thread
From: Alasdair G Kergon @ 2005-11-18 21:56 UTC (permalink / raw)
  To: LVM general discussion and development

On Mon, Nov 14, 2005 at 07:20:59PM +0530, Block Device wrote:
>   I  want to know whether Linux provides any standard interface for
> volume managers etc so that applications can register themselves to be
> notified when a snapshot needs to be taken.

Not yet, but it's a reasonable thing to ask for.

> If there isnt any such interface how is consistency guaranteed for
> application data when a snapshot is taken ? eg. How does one take
> (consistent) snapshots of database instances w/o  first quiescing them
> ?
 
At the moment you have to do things the other way around:
  quiesce database
  lvcreate -s
  wake database

There already exists an in-kernel filesystem hook so that mounted filesystems 
get the notifications automatically so they can sync their metadata, and
the block devices get flushed.

Alasdair
-- 
agk@redhat.com

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [linux-lvm] Standard Linux Framework for Snapshot Notification
  2005-11-18 21:56 ` Alasdair G Kergon
@ 2005-11-23  6:29   ` Block Device
  0 siblings, 0 replies; 3+ messages in thread
From: Block Device @ 2005-11-23  6:29 UTC (permalink / raw)
  To: LVM general discussion and development

 Hi Alasdair,

> There already exists an in-kernel filesystem hook so that mounted filesystems
> get the notifications automatically so they can sync their metadata, and
> the block devices get flushed.

What hook is that ? Could you please elaborate and explain how it works :) ?

Thanks
BD :)

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-11-23  6:29 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-11-14 13:50 [linux-lvm] Standard Linux Framework for Snapshot Notification Block Device
2005-11-18 21:56 ` Alasdair G Kergon
2005-11-23  6:29   ` Block Device

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).