On 5/8/17 4:34 AM, Gionatan Danti wrote: > On 05/05/2017 21:20, Eric Sandeen wrote: >> I guess this has been covered, but: no. There is no cross-machine >> multi-mount protection in XFS. Nothing like ext4's MMP. >> >> There is a unique UUID test at mount time, so you can't i.e. mount >> the same path twice /on the same box/, but there is no mechanism >> in XFS to prevent the same disk from being mounted by 2 /separate/ >> machines on a SAN. >> >> -Eric > > Thanks Eric. Just out of curiosity, there are some specific technical > motivations to avoid this check? Partly it's just never been written, but also, mechanisms like MPP aren't foolproof. MPP picks a timeout, and if nothing changes during that timeout it's assumed safe to mount. If for some reason the other machine was busy or hung for that mount of time, the check would pass and allow a double mount. It also delays each mount by that amount of time, which may not be desirable in a production environment. > One more pragmatic question: what kind of corruption can be expected > from shot-lived (ie some seconds) double mount? For example, in > raiserfs I remember an immediate catastrophic faileres when a double > mount happened. On XFS it *seems* that filesystem remain more or less > consistent (even an xfs_repair does not find nothing wrong). I'm sure it depends on what happens during that mount. Damage could range from none to minimal to catastrophic. If you've escaped without corruption, it's partly luck. If the 2nd node did no IO, and unmounted quickly, you'd get an unmount record written to the log which, depending on the location, may or may not matter if a subsequent log replay was required, for example. -Eric > Thanks again. > -- To unsubscribe from this list: send the line "unsubscribe linux-xfs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html