lvm snapshot

40 views
Skip to first unread message

Cédric Briner

unread,
May 19, 2026, 6:05:19 AM (6 days ago) May 19
to H2 Database
Hi,

We are using a h2 database in one of our product integrated at our organisation. We are not able to order a dump every hour as the application does not allow this.

We were thinking to use a snapshot done by the OS to help us. We will use the "lvm" command on linux. As defined on the "lvcreate" man page. This snapshot is coherent and hapenning as an atomic wax (frozen). This means that that db will be in the same state as if the system crashes.

Is there a way to verify that the db is coherent and able to play de redo logs ?

Thanks in advance.
cED

Noel Grandin

unread,
May 19, 2026, 6:41:03 AM (6 days ago) May 19
to h2-da...@googlegroups.com, Cédric Briner
On 5/19/2026 9:12 AM, Cédric Briner wrote:
>
> Is there a way to verify that the db is coherent and able to play de redo logs ?
>

Use the dump tool and dump it to the null device should be a good test, because that will cause the code to read and
parse the entire contents.

Cédric Briner

unread,
May 19, 2026, 10:34:25 AM (5 days ago) May 19
to H2 Database
Hi

As I do not know at all h2 databases, what bash command should I use to do this dump in /dev/null ?

Regards,
cED 

Andrei Tokar

unread,
May 20, 2026, 9:35:59 PM (4 days ago) May 20
to H2 Database
Something like: 
java -classpath h2.jar org.h2.mvstore.MVStoreTool -dump /path/to/database/test.mv.db >/dev/null
Reply all
Reply to author
Forward
0 new messages