Re: EXT3 service mounted on two nodes

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

 



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

gordan@xxxxxxxxxx wrote:
> Sure, that works. The only problem is that if both nodes write to the
> same files at the same time (including meta data), you'll end up with a
> corrupted file system. But if both machines are mounting the FS
> read-only (in which case you might as well use ext2), then there's no
> problem with that.

Are you sure about that? I've never known it do anything useful beyond
spectacularly breaking the file systems involved.

This is especially true for ext3 due to its journaling capability - as
soon as the two hosts start squabbling over the same journal block (i.e.
they detect an inconsistency caused by the other host overwriting
something) they're both going to abort the journal via an ext3_abort()
call and take the file system readonly.

In my experience, this tends to happen pretty quickly - the moment the
second host begins replaying the incomplete journal entries the first
host has outstanding.

Also, if mounting an ext3 volume read only you might want to consider
making the underlying block device read only too - this prevents any
problems with a host accidentally attempting journal recovery.

Regards,
Bryn.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iD8DBQFHJfov6YSQoMYUY94RAlTAAKDHOjaWg81rd6ZkoBL4rCUGS5xZPACdHWlo
Q0kzUfTQYQ7wIgIlskITv14=
=s2TT
-----END PGP SIGNATURE-----

--
Linux-cluster mailing list
Linux-cluster@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/linux-cluster

[Index of Archives]     [Corosync Cluster Engine]     [GFS]     [Linux Virtualization]     [Centos Virtualization]     [Centos]     [Linux RAID]     [Fedora Users]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite Camping]

  Powered by Linux