[linux-lvm] How do you mount a snapshot?
mason at suse.com
Fri Dec 8 14:09:57 UTC 2000
On Thursday, December 07, 2000 22:33:00 -0800 David Gould <dg at suse.com>
> On Thu, Dec 07, 2000 at 03:56:11PM -0500, Chris Mason wrote:
[ snapshots ]
>> It should work with ext2.
> Really? I wonder. Maybe right after a sync before anything gets dirtied,
> but otherwise, how could the disk image be consistantly, er, consistant?
> And would not e2fsck have the same issues about writing?
> Or did I just wake up pessimistic today?
The reason it will not work on reiserfs without the extra API is that on
reiserfs, sync == commit to log, not commit to disk. So, there is no way
over the command line (or in the kernel) to ask the FS to sync to disk,
even when there is no traffic at all on the FS.
With ext2, if nothing is going on, you can type sync and have all the
buffers on disk. It is at least possible ;-) It would be better if ext2
could provide the write suspension hooks as well, but I'm guessing that
will be done in ext3 first (where the journal already does most of the
In my mind, the people that need snapshots the most are the database
programs, where disk traffic can be carefully controlled. So the current
ext2 method is still useful.
More information about the linux-lvm