Skip to contentSkip to conversation

Standard Linux Framework for Snapshot Notification

linux-lvm Block Device 2 participants 3 messages Nov 14, 2005 – Nov 23, 2005

lore
Share & tools
lore
#0 lore raw

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.

#1 lore raw
Quoted 3 lines · Block Device

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.

Quoted 4 lines

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

Signature · 1 line
[email protected]
#2 lore raw

Hi Alasdair,

Quoted 3 lines

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