Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp1666022rwb; Sun, 2 Oct 2022 05:50:09 -0700 (PDT) X-Google-Smtp-Source: AMsMyM61ect/tmXz5R9vRxiCc9Td6y+6EtPgxf9LePvqRK3opB4qGZA1Eog65CNfvnvTPBBejkuj X-Received: by 2002:a17:907:1b1f:b0:72f:56db:cce9 with SMTP id mp31-20020a1709071b1f00b0072f56dbcce9mr11953215ejc.605.1664715008888; Sun, 02 Oct 2022 05:50:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664715008; cv=none; d=google.com; s=arc-20160816; b=MWzXITVe0IfMkq9Es5oBoQFI6Dwghy8FugLKMQNB8FJd91zyoUXX5YrTQh/pF7swbb dUK/r4IdmFfkUsfuJ+i3Rnala/VesMn2d161qwMrS/HuvSFVyrTXKzcoBgO+uX3NUf0I uPSfi+OHoDIBX2axeaSaO8WeNo4F7Ek6MVaaaqNfkPWor6m2zYjOPBnnSLPZN5BYj3zN ehTKCymWkI7AVDg4JpjvC28bFpZ0ac+Qi4ctMknPco+ytXMLGpDLOScfJSjpk8TCYLe0 ddBxhjfc8OaGAFliqaDFs99fLnORe0o1kLVCN3mv9Ub5k+gBFxM04iOYhws8cU909jWO yk7Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:subject:from:to :content-language:user-agent:mime-version:date:message-id :dkim-signature; bh=nGZQdlOEIrFXOE7kRVK3LLoN/7ZATN1SPe6KLE8sNgY=; b=LvYEm15rRpLb+R+ClyMXQWmkYcyr0tIbyeFVeKLVeU7OIdp4BQQ1eMil6WixfpIgOx +X/u7KqfV9Qfq0JcaP64tsaiPLHiMFpLDx9PxuNzjGBYi+1Ecn+v+4oboLQr9WjrC6gB U7JIxekY+I9tOiNLKaedTyZW8hfCP5lwmRk1yhHO1kAAGPzLX1CI/vlTvAwjVcY2OenX WL7Qf3aVwLj4ztX4IZZGPJTBiz/QqK6etMjpx84dbuTbmxBPzJAk5xoYLSsJxwotYk2n BhXyhLWaQqS5AcRzHVJrYJ4WEIx2ASsMQn1yvWD8X1FD+GuCxzrckADvrYs9uGfTX5hi A1Zg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=dzYylLMR; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmx.ch Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z7-20020a50eb47000000b004538699374esi6349628edp.85.2022.10.02.05.49.27; Sun, 02 Oct 2022 05:50:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=dzYylLMR; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmx.ch Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229500AbiJBMfv (ORCPT + 99 others); Sun, 2 Oct 2022 08:35:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52278 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229900AbiJBMfs (ORCPT ); Sun, 2 Oct 2022 08:35:48 -0400 Received: from mout.gmx.net (mout.gmx.net [212.227.15.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 102582C65D for ; Sun, 2 Oct 2022 05:35:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1664714143; bh=0HI07Th4DJ3Nn65WcDsnpOCVw+RF5lw+ohstaqceuTc=; h=X-UI-Sender-Class:Date:To:From:Subject; b=dzYylLMRyp8o3byh3+Ald80QT8MuJ5XXZ8jArrpbDaIpXoSF5HknUoeSuDrnoCF8r gVMHAUycKKSeARgj04acaYKUFgWVnE3xhZOurVcN5v3bk7MAP8CpZ4SOy8Ge35mLlE 851G9wPBLeeKpqbNDJ+ZnhAARHAl1ApOIOud5AzY= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from [192.168.178.20] ([145.40.206.240]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MNswE-1oq41P05DU-00OEDH for ; Sun, 02 Oct 2022 14:35:43 +0200 Message-ID: <39bf58c7-47d9-744b-6d26-d672aa713024@gmx.ch> Date: Sun, 2 Oct 2022 14:35:42 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.2.2 Content-Language: de-CH, en-US To: linux-nfs@vger.kernel.org From: Manfred Schwarb Subject: nfs4.1+: workaround for defunct clientaddr? Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K1:umbvEAPO/Yx0ZwsUpTJax8xJOrnbkQGVsOmtD96Ib2Oll8Sf45o cB9f1PJUe02B48lzblBZscL3jb5f+GOSzkAIPaMQouLZzo2iYRvxw8iZXqTh/jHm9SCBiDe J4RD4xDTq99tiKxnqToA4+71CGaR0PjjW7bW9JWcUL0C0/UPT9mcQwmtX9ViEcgIJXPqYOA bYswdUNhHw2uo8QtOC7vQ== X-UI-Out-Filterresults: notjunk:1;V03:K0:Lry2H70xxFA=:MEZzqZ8K2OOsQnWZ1R0H9N /KbgfQmAVKbZAoSsMkDE28Akq7wgJ3FNjZJH+H/8GeVNLczsem5V5oNgXCUBR8P6r8ljVwtLC 941sqHyxTXVdHNuA+VXtjW1KU15Xe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FsVEh3Cx6 X-Spam-Status: No, score=-2.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org Hi, I have 2 boxes connected with 2 network cards each, one crossover connection and one connection via LAN. I want to use the crossover connection for backup, so I want to be able to select exactly this wire when doing my NFS backup transfers. Everything interconnected via NFS4.1 and automount. Now the thing is, if there is an already existing connection via LAN, I am not able to select the crossover connection, there is some session reuse against my will. automount config: /net/192.168.99.1 -fstype=nfs4,nfsvers=4,minorversion=1,clientaddr=192.168.99.100 / 192.168.99.1:/ /net2/192.168.98.1 -fstype=nfs4,nfsvers=4,minorversion=1,clientaddr=192.168.98.100 / 192.168.98.1:/ mount -l: 192.168.99.1:/data on /net/192.168.99.1/data type nfs4 (...,clientaddr=192.168.99.100,addr=192.168.99.1) 192.168.99.1:/data on /net2/192.168.98.1/data type nfs4 (...,clientaddr=192.168.99.100,addr=192.168.99.1) As you see, both connections are on "192.168.99.1:/data", and the backup runs over the same wire as all user communication, which is not desired. This even happens if I explicitly set some clientaddr= option. Now I found two workarounds: - downgrade to NFS 4.0, clientaddr seems to work with it - choose different NFS versions, i.e. one connection with minorversion=1 and the other with minorversion=2 Both possibilities seem a bit lame to me. Are there some other (recommended) variants which do what I want? It seems different minor versions result in different "nfs4_unique_id" values, and therefore no session sharing occurs. But why do different network interfaces (via explicitly set clientaddr= by user) not result in different "nfs4_unique_id" values? Thanks for any comments and advice, Manfred