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

Re: [linux-lvm] Cannot mount ext3 snapshot



On Wed, 2003-12-31 at 19:44, John Seifarth wrote:
> I've serious problem with snapshots here.
*snip*
> ADDITIONAL TESTS
> dmesg shows
> for ext3 file systems
> EXT3-fs: INFO: recovery required on readonly filesystem

Here's your problem.

Unless you patch things, you have to unmount source ext3 filesystems
before you make snapshots.  Here's some of the relevant code from my
backup script:

SNAPNAME=`date +%j`
fuser -km /home
umount -rl /home
mkdir /snaps/$SNAPNAME
lvcreate --snap --name $SNAPNAME -L 500M /dev/vg00/lv_home
mount /home
mount /dev/vg00/$SNAPNAME /snaps/$SNAPNAME

This section takes under a second to run.

There are patches that should let you get around this, but I've never
tried them.
-- 
David Johnston <david littlebald com>
Little Bald Consulting, LLC



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