Re: [PATCH v1] NFSv4.1 provide mount option to toggle trunking discovery

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

 



Hi Olga,

thanks!

I can confirm that after applying your patch (against 5.15.24),
passing the mount option notrunkdiscovery to NFS mount does
indeed make the NFS mounts from the Qnap server (with knfsd from
3.4.6 kernel) work again.

Sorry to say, but I don't think this is the final solution yet:
* The option notrunkdiscovery is not tolerated by older kernels,
  so there is no way to pass a setting that works with <= 5.15.23
  and the kernels with your latest patch. This is a problem for
  me who keeps automount maps in LDAP.
* From a user perspective, the 5.15.24+/5.6.10+/5.17-rc behavior
  is still a regression, as the Qnap NFS mounts all break. With
  your patch, there is a way to recover, but it needs to be well
  documented and then be found by an admin who then needs to do
  the right change. Not acceptable for -stable IMVHO and according
  to Greg's explanations not for mainline either.

I see a number of possibilities to resolve this:
(0) We pretend it's not a problem that's serious enough to take
    action (and ensure that we do document this new option well).
(1) We revert the patch that does FS_LOCATIONS discovery.
    Assuming that FS_LOCATIONS does provide a useful feature, this
    would not be our preferred solution, I guess ...
(2) We prevent NFS v4.1 servers to use FS_LOCATIONS (like my patch
    implements) and additionally allow for the opt-out with
    notrunkdiscovery mount option. This fixes the known regression
    with Qnap knfsd (without requiring user intervention) and still
    allows for FS_LOCATIONS to be useful with NFSv4.2 servers that
    support this. The disadvantage is that we won't use the feature
    on NFSv4.1 servers which might support this feature perfectly
    (and there's no opt-in possibility). And the risk is that there
    might be NFSv4.2 servers out there that also misreport
    FS_LOCATIONS support and still need manual intervention (which
    at least is possible with notrunkdiscovery).
(3) We make this feature an opt-in thing and require users to
    pass trunkdiscovery to take advantage of the feature.
    This has zero risk of breakage (unless we screw up the patch),
    but always requires user intervention to take advantage of
    the FS_LOCATIONS feature.
(4) Identify a way to recover from the mount with FS_LOCATIONS
    against the broken server, so instead of hanging we do just
    turn this off if we find it not to work. Disadavantage is that
    this adds complexity and might stall the mounting for a while
    until the recovery worked. The complexity bears the risk for
    us screwing up.

I personally find solutions 2 -- 4 acceptable.

If the experts see (4) as simple enough, it might be worth a try.
Otherwise (2) or (3) would seem the way to go from my perspective.

Thanks!

--
Kurt Garloff <kurt@xxxxxxxxxx>
Cologne, Germany




[Index of Archives]     [Linux Filesystem Development]     [Linux USB Development]     [Linux Media Development]     [Video for Linux]     [Linux NILFS]     [Linux Audio Users]     [Yosemite Info]     [Linux SCSI]

  Powered by Linux