On Nov 27, 2026, at 08:09, Jakub Jozefowicz via lustre-discuss <[email protected]> wrote: > > Hi, > I came up with this pattern for setting up MDTs which I haven't seen > discussed. I wanted to ask what you think because I feel like there might be > some disadvantages that I'm not seeing. > > Let's assume one has N+1 MDTs numbered 0-N. Instead of setting them all up in > the same way we treat MDT0 as a special case and make it very small (a few > GB). The idea is for it to handle the root and nothing but the root of the fs > plus quotas, FLDB, and whatever else makes it special.
I think ClusterStor/Cray set up did (does?) something similar with a smaller MDT0000. > I see this as an absolute win: > - You can overengineer uptime assurances on MDT0 so most outage scenarios > take out isolated slices of the filesystem. > - If you want to migrate MDTs then the special case of MDT0 is quick and easy > to verify/checksum. Same for stuff like e2fsck downtime and probably a few > others. Sure, I agree this is possible and can have some benefits. In the longer term, we are moving toward Lustre Metadata Redundancy (LMR), with Fault Tolerant MGS at the start, then making the MDT0000-specific services redundant and/or distributed over multiple MDTs (e.g. FLDB, quota manager, flock namespace, etc.) with the near-term goal of allowing ROOT/ to be mirrored across multiple MDTs (3-7x, not sure of the limits yet) and being able to remove and/or migrate MDT0000 to new hardware online. > At first I thought this would be awkward with DNE3. But if I understand the > allocator correctly, this would give MDT0 a weight orders of magnitude lower > than the other MDTs. Yes, but it would still be selected sometimes. The other development underway is to allow MDT Pools, so that directory allocations (and implicitly the files created in them) can be constrained (or at least directed) to a subset of MDTs more easily. If the filesystem default is to a pool that excludes MDT0000 then it would only have a ROOT directory on it and every other subdirectory would be on other MDTs. However, that doesn't help very much if ROOT or FLDB is inaccessible, hence the previous items to distribute the MDT0000-specific services to other MDS nodes. > This does lock us into weighted mode but in practice functions like a less > deterministic round-robin across MDT1..N anyway. You can push MDT0's weight > arbitrarily low by increasing bytes-per-inode and filling MDT0 with > placeholder DoM files in root. No need to "fake" that out, you could just set `mdt.FSNAME-MDT0000.no_create=true` so that no client tries to use it, or maybe mdt.*MDT0000*. reserved_ino_high/low, but I think `no_create` should be enough. The directory round-robin/QOS will not balance very well before recent QOS/round-robin allocator fixes, so MDT0001 may be twice as busy in earlier releases. > Has anyone tried this already? I think the prior Clusterstor/Cray usage was not nearly so extreme as your proposal, just to avoid having a target sitting there doing nothing. Still, it would be interesting to see where you get with this and whether it makes a real difference for uptime. You are also welcome to review and/or contribute to functionality that is making the filesystem more resilient against MDT0000 removal. Cheers, Andreas --- Andreas Dilger Principal Lustre Architect [email protected] -- lustre-discuss mailing list [email protected] http://lists.lustre.org/mailman/listinfo/lustre-discuss_lists.lustre.org
