-
Bug
-
Resolution: Unresolved
-
Medium
-
None
-
None
-
None
-
<distro/arch>, ZFS backend, 2 MDS / 4 MDT
-
3
-
9223372036854775807
sanity test_0e fails intermittently with "directories are on the same MDT N=N". This is the same symptom as LU-17223, which was closed as Cannot Reproduce. This ticket has the root cause.
test_0e assumes mkdir in ROOT places the two directories round-robin. The client only uses round-robin while MDT free space is within lmv.*.qos_threshold_rr (5% by default). ZFS MDTs only estimate their free inodes, so even empty MDTs are far apart: 5.1M vs 7.4M inodes (about 31%) on a 4-MDT, 2-MDS ZFS setup. LMV then uses weighted-random QoS placement, and the two mkdirs sometimes land on the same MDT. On that setup it failed 3 of 20 runs.
Fix: set lmv.*.qos_threshold_rr=100 for the duration of the test and restore it with stack_trap. With that change it passed 20 of 20 runs.