Re: Cannot mount ext3 snapshot

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

 



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

_______________________________________________
linux-lvm mailing list
linux-lvm@sistina.com
http://lists.sistina.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

[Index of Archives]     [Gluster Users]     [Kernel Development]     [Linux Clusters]     [Device Mapper]     [Security]     [Bugtraq]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]

  Powered by Linux