Re: Scripting e2fsck: no errors, but still exit code 1 "FILE SYSTEM WAS MODIFIED"

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

 



On May 18, 2008  12:37 +0200, Bas van Schaik wrote:
> ... there is a slight
> problem with scripting e2fsck: it seems that e2fsck /always/ exits with
> exit code 1 just because of the fact that the snapshot journal has been
> replayed.

> > e2fsck 1.40.8 (13-Mar-2008)
> > /dev/loop1: recovering journal
> > Pass 1: Checking inodes, blocks, and sizes
> > Pass 2: Checking directory structure
> > Pass 3: Checking directory connectivity
> > Pass 4: Checking reference counts
> > Pass 5: Checking group summary information
> >
> > /dev/loop1: ***** FILE SYSTEM WAS MODIFIED *****

You shouldn't get journal replay after a proper LVM snapshot.  The
LVM code should freeze the filesystem temporarily, flush out the journal,
mark the filesystem clean, take the snapshot of the clean fileysstem,
and then unfreeze the filesystem again.

If you are using LVM for snapshots, and this is not happening, then
the snapshot code is broken.  If you are NOT using LVM, then you
should look into the "freeze ioctl" patches that were on linux-ext4 and
linux-fsdevel recently "[RFC PATCH 1/3] Implement generic freeze feature"
from Takashi Sato.

Cheers, Andreas
--
Andreas Dilger
Sr. Staff Engineer, Lustre Group
Sun Microsystems of Canada, Inc.

--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Reiser Filesystem Development]     [Ceph FS]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux FS]     [Yosemite National Park]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Device Mapper]     [Linux Media]

  Powered by Linux