[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [linux-lvm] snapshot questions

Hmm, seems to be quite a range of opinion.  However, I must say that
having so many negative options is not a good sign.  Do snapshots
work at all?

If I get a corrupted filesystem in my snapshot, then it doesn't work.

If I have to bend over backwards and change all my apps, then it does
not work.

It is good to hear that it works more like Veritas and less like the
SuSE whitepaper claims.  That paper claimed that the changes will go
to the snapshot partition.  This implied that there would be a terrible
IO hit when you deleted the snapshot partition and the changes need to
be written back to the original partition.

I am confused by the claim (see below) that you need the same amount
of space for the snapshot partition as you had on the original LV.
>From what I understood in the HOWTOs and the whitepapers, you only need
as much space as you will have changes during the lifetime of the
snapshot LV.  And, if it works like Veritas, that implies that once
a PE was copied, any further data changes to it would not be copied.
This means that in situations like database systems, you'd actually
need less than the number of PEs that changed.  Is this correct?

Under what circumstances do snapshots work?  I am confused by the
claims that a snapshot partition is going to be "corrupt" as far as
the OS is concerned.  In my scenario, here is what I am planning on

1) lock all tables against writes.

2) flush all logs and tables to disk.

3) create a snapshot partition for the filesystem (ext2 or probably)
on which the database data resides.  These are not raw disks.

4) unlock the tables.

5) mount the snapshot partition and copy the database data out.

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]