LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-27-2017, 05:01 AM   #1
mpasha06
LQ Newbie
 
Registered: Oct 2010
Posts: 9

Rep: Reputation: 1
Unable to mount windows share


Hi,

I have a windows share with two domain name, same server with multiple name, we have created aliases in our DNS.
like serverabc and serverxyz, both are hitting to same IP. I have a shared directory in that server.

Whenever I try with serverabc with mount cifs command will work fine, but the same command with serverxyz doesn't work.

I have added names in /etc/hosts file, but still having issue.

Any solution.

Thanks.
M.Pasha
 
Old 03-27-2017, 05:17 AM   #2
mpasha06
LQ Newbie
 
Registered: Oct 2010
Posts: 9

Original Poster
Rep: Reputation: 1
Unable to mount windows share

Looks its not resolving the hostname, seeing error in /var/log/messages

kernel: CIFS VFS: cifs_mount failed w/return code = -5
 
Old 03-27-2017, 06:14 AM   #3
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,789

Rep: Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304
try:
Code:
--verbose

    Print additional debugging information for the mount. Note that this parameter must be specified before the -o. For example:

    mount -t cifs //server/share /mnt --verbose -o user=username
also would be nice to se the log from the other side.
 
Old 03-30-2017, 12:30 AM   #4
mpasha06
LQ Newbie
 
Registered: Oct 2010
Posts: 9

Original Poster
Rep: Reputation: 1
Unable ot mount windows share with aliasa name

Yes I know, The request came from my Dev team. and its kind of challenging. Its their requirement. Ok, lets explain some of my investigation.

Its really interesting. I followed investigation with help of Redhat support team.


As I updated, nslookup and traceroute works fine, I run the tcpdump and to collect tcp logs for an IP address.


# tcpdump -s0 -i <interface> host <windows_server_ip> -w /tmp/tcpdump-<domain>.pcap


Then run mount command (on client) in second terminal :

# mount -t cifs -vvv -o username=domain/<userID> //<samba_server_name_with_domain>/<share_name> /<mount_point>

Cancel the tcpdump once the issue has occurred by Ctrl+C and upload the output files for further diagnosis.


Stored the tcpdump in a .pcap file to load into the Wireshark tool and check the network logs. What we found is, its not the issue with Linux or network,

Its related to the Windows, I got the STATUS_DUPLICATE_NAME error, below are the details.

[1] STATUS_DUPLICATE_NAME : Afaik, by default, old Windows Server does not respond to SMB queries that use a server name other than the server’s true NetBIOS name or an FQDN. The server will respond with a STATUS_DUPLICATE_NAME.

I logged into the windows node and followed the below commands to check the if the mounting enabled with alias name

C:\>net view \\<windows alias name>\
System error 5 has occurred.

Access is denied.


C:\>net view \\<windows real name>\
Shared resources at \\<windows real name>\


Share name Type Used as Comment

------------------------------------------------------------
checkout Disk
mockC Disk
mockD Disk
static_analysis_staging Disk
The command completed successfully.

Windows is not support the alias name mounting, below is the document from windows support team.

https://support.microsoft.com/en-us/...-an-alias-name
 
1 members found this post helpful.
Old 03-30-2017, 08:09 AM   #5
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,636
Blog Entries: 4

Rep: Reputation: 3933Reputation: 3933Reputation: 3933Reputation: 3933Reputation: 3933Reputation: 3933Reputation: 3933Reputation: 3933Reputation: 3933Reputation: 3933Reputation: 3933
And if you are still running a version of Windows that still has this problem – as described in the support article you referenced – I think it would be a very good idea to bring those systems a little bit more up-to-date!

At the very least, apply the latest available service-packs for the version that you run, and do it everywhere.
 
Old 03-30-2017, 08:17 AM   #6
mpasha06
LQ Newbie
 
Registered: Oct 2010
Posts: 9

Original Poster
Rep: Reputation: 1
Hi,

These are windows 2012 R2 servers. So do you think upgrading patches will work, I was thinking to raise request to windows support team.
Even they have mentioned some Registry steps (in above link), thinking to try them once.

Thanks you.
 
  


Reply

Tags
cifs


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
unable to mount windows share on linux. manoj.linux Linux - Enterprise 1 08-31-2013 10:51 AM
Unable to mount Windows share in Ubuntu m0by Linux - Networking 4 08-14-2013 11:55 AM
[SOLVED] Unable to mount Windows share containing whitespace jbruyet Linux - Software 9 07-11-2013 02:50 PM
Unable to mount Windows share to SUSE 11.3 nick[GEGN] Linux - Newbie 1 08-13-2010 05:39 PM
unable to mount windows share when i try to access files vinaytp Linux - Newbie 5 04-27-2009 11:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:05 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration