linux-cifs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Mathieu Malaterre <mathieu.malaterre@gmail.com>
To: Steve French <smfrench@gmail.com>
Cc: CIFS <linux-cifs@vger.kernel.org>, Paulo Alcantara <pc@cjr.nz>
Subject: Re: Proper mounting Windows DFS Namespace in Linux / Object is remote
Date: Mon, 9 Mar 2020 11:10:40 +0100	[thread overview]
Message-ID: <CA+7wUsxNJ2KQgQ8v+hob31NP45HDAEKEHPKNJ6+F+6AFBCeaJw@mail.gmail.com> (raw)
In-Reply-To: <CA+7wUsx7sBMzSFnaynBoU3zoBAaG1n6909EhTsixuzKLTzB79Q@mail.gmail.com>

On Fri, Mar 6, 2020 at 2:58 PM Mathieu Malaterre
<mathieu.malaterre@gmail.com> wrote:
>
> Steve,
>
> On Mon, Mar 2, 2020 at 10:12 PM Steve French <smfrench@gmail.com> wrote:
> >
> > Can you try an experiment with Ubuntu's newer kernel:
> >
> > https://wiki.ubuntu.com/Kernel/MainlineBuilds
> > Or
> >
> > https://github.com/pimlie/ubuntu-mainline-kernel.sh
>
> I picked latest Debian bullseye installer. Here is what I have:
>
> $ uname -rvo
> 5.4.0-4-amd64 #1 SMP Debian 5.4.19-1 (2020-02-13) GNU/Linux
>
> I am observing the same behavior with regard to 'nodfs' option. I am
> required to use this option to get the first mount working.
>
> $ mount
> [...]
> //mydoma01.acme.corp/network on /tmp/z type cifs
> (rw,relatime,vers=default,cache=strict,username=mmalaterre,domain=MY,uid=0,noforceuid,gid=0,noforcegid,addr=1.2.3.4,file_mode=0755,dir_mode=0755,soft,nounix,nodfs,mapposix,rsize=4194304,wsize=4194304,bsize=1048576,echo_interval=60,actimeo=1)
>
> For some reason I am getting vers=1.0 behavior (described previously):
>
>     $ cd /tmp/z
>     $ cd folder2
>     $ ls
>     subfolder2
>     $ cd subfolder2/
>     bash: cd: subfolder2/: Object is remote
>
> Ref:
>
> $ apt-cache policy cifs-utils
> cifs-utils:
>   Installed: 2:6.9-1
>   Candidate: 2:6.9-1
>   Version table:
>  *** 2:6.9-1 500
>         500 http://deb.debian.org/debian bullseye/main amd64 Packages
>         100 /var/lib/dpkg/status

I eventually stumble upon:

* https://wiki.samba.org/index.php/LinuxCIFS_troubleshooting

Which gave me a more verbose error log I found out that:

[...]
[  687.037593] fs/cifs/dns_resolve.c: dns_resolve_server_name_to_ip:
unable to resolve: MYSERV13
[  687.037606] fs/cifs/cifs_dfs_ref.c: cifs_compose_mount_options:
Failed to resolve server part of //MYSERV13/network to IP: -2
[...]

Updating my resolve.conf from:

search acme.corp

to:

search acme.corp mydoma01.acme.corp

I was finally able to call mount -t cifs without the 'nodfs' option.
The symptoms are no longer an error and simply informative:

$ cd subfolder2
CIFS VFS: BAD_NETWORK_NAME: \\MYSERV13\network
[...]

I can finally access the content of subfolder2 without issue.

-- 
Mathieu

      reply	other threads:[~2020-03-09 10:10 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-03-02  7:49 Proper mounting Windows DFS Namespace in Linux / Object is remote Mathieu Malaterre
     [not found] ` <CAH2r5mtd-WbXbTG6bgT9EfZyXCC2Qr-TB8QszOy+oFRu5CrerQ@mail.gmail.com>
2020-03-03  7:25   ` Mathieu Malaterre
2020-03-06 13:58   ` Mathieu Malaterre
2020-03-09 10:10     ` Mathieu Malaterre [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CA+7wUsxNJ2KQgQ8v+hob31NP45HDAEKEHPKNJ6+F+6AFBCeaJw@mail.gmail.com \
    --to=mathieu.malaterre@gmail.com \
    --cc=linux-cifs@vger.kernel.org \
    --cc=pc@cjr.nz \
    --cc=smfrench@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).