how to prevent filesystem check

Andreas Dilger adilger at clusterfs.com
Thu Nov 30 05:53:34 UTC 2006


On Nov 29, 2006  16:41 -0800, Wolber, Richard C wrote:
> On Nov 28, 2006 9:20pm Andreas Dilger wrote:
> > On Nov 28, 2006  12:33 -0800, Wolber, Richard C wrote:
> > > Running the following command on your slave server should 
> > > do the trick:
> > > 
> > > echo "AUTOFSCK_DEF_CHECK=\"no\"" >> /etc/sysconfig/autofsck
> > 
> > This is incorrect.  As soon as the ext3 code mounts the 
> > filesystem it will do journal recovery and potentially 
> > corrupt the filesystem.
> > Then, the read-only copy will become out-of-date in the cache 
> > of that client and it will get bogus data back, eventually 
> > deciding that the filesystem is corrupt (whether it is or not).
> 
> Even if you "mount -oro -text2 $DEV $DIR"?

Even then, yes.  It is NOT SAFE to access the same block device on
multiple nodes at one time.  Even with "-o ro" the mount will cause
the journal to be recovered.

Cheers, Andreas
--
Andreas Dilger
Principal Software Engineer
Cluster File Systems, Inc.




More information about the Ext3-users mailing list