cancel
Showing results for 
Search instead for 
Did you mean: 

problem mount cifs

 
Emilie25
Occasional Advisor

problem mount cifs

Hello,

I'm trying to mount a disk on my hp-ux server by using cifsmount, but each time I have an error.

# cifsclient ver
CIFS-Client product revision A.02.02.02

I've tryied diffrent means :
cifsmount //server_name/TestRman /testcifs -s -U myuser
-> SRV: Invalid netname
mount -F cifs rss00022:/TestRman /testcifs and a cifslogin after.
-> it does not work to

When I try on a redhat system, everything is ok :
#mount -t cifs //server_name/testrman /mnt -o username=myuser
Password:
# ls /mnt
test.txt

Have you an idea ?

Thank you !

14 REPLIES
SoorajCleris
Honored Contributor

Re: problem mount cifs

Hi,

Is there any problem with name resolution ??
Check if HP-UX is resolving the hostname .

Regards,
Sooraj
"UNIX is basically a simple operating system, but you have to be a genius to understand the simplicity" - Dennis Ritchie
Emilie25
Occasional Advisor

Re: problem mount cifs

Hi,

Yes, the server can resolv the name. To be sure, I've put it in the /etc/hosts.

I think the problem may come from our file server which is on windows 2008 2 nodes cluster. I read that some people have the problem on this kind of system, but I cannot find the solution.

Thank you !

Emilie.
Raj Briden
Frequent Advisor

Re: problem mount cifs

Just try this

#cifsmount //windows system name/shared directory mountpoint -U administrator -P password
Emilie25
Occasional Advisor

Re: problem mount cifs

Hi,

I got the same error : SRV: Invalid netname

Raj Briden
Frequent Advisor

Re: problem mount cifs

When mounting shares from a Windows/SMB server onto HP-UX using the CIFS Client application, one must specify the sharename in the cifsmount or mount request. This differs from a Windows client, which can specify a subdirectory in a share when mapping the drive, and is true for all versions of CIFS Client. In this instance the mount request was trying to mount a subdirectory in the oradata share, which will not work with CIFS.

When receiving the message "SRV: Invalid netname " verify that the cifsmount or mount command is specifying the simple sharename only, and that the sharename is valid on the Windows/SMB server.
Emilie25
Occasional Advisor

Re: problem mount cifs

I specify a share name only and not a subdirectory.
Michael P. O'Brien
Occasional Advisor

Re: problem mount cifs

After upgrading one of our Windows servers from 2003 to 2008 we have the same problem with mounting a Windows share. We get the message:

SRV: Invalid netname

Does anybody know how to get around this issue?
TwoProc
Honored Contributor

Re: problem mount cifs

We had the same exact issue here, (but in reverse - new Windows machines mounting Samba) and we had to make sure that the password for that user in Unix is the same as the password for that user in Windoze. And it started to work.

And my feelings at that point: Bleah. Hated that I had to keep them in sync. I liked requiring diff passwords for diff platforms.

Anwyas, try using same user name, same password on both platforms and see if you get a different result. If it starts to work, then unfortunately, you know the answer.
We are the people our parents warned us about --Jimmy Buffett
Emilie25
Occasional Advisor

Re: problem mount cifs

Hi,

Fiannly I use NFS mount. The HP support had no response concern the cifs problem.

Thank you !
Emilie25
Occasional Advisor

Re: problem mount cifs

Use another solution (NFS)
Michael P. O'Brien
Occasional Advisor

Re: problem mount cifs

We finally discovered the issue between HPUX cifsclient and the new Windows 2008 share. The problem is not a problem with Win2008 Server but rather with clustering on Win2008 Server. When you set up a virtual share on Win2008 Server the share can no longer be found using the server's IP address. So for example if the virtual node contains a share that can be seen by another Windows OS such as \\servername\share, the same share can not be seen by using the IP in the UNC path such as \\192.168.x.x\share. This was possible in Win2003 Cluster Server but, no longer possible in Win2008 Cluster Server. Unfortunately, the CIFS Client software on HP-UX uses the Netbios, Wins, DNS to translate the server name to the IP address in order to then mount the share which is no longer possible in Win2008 Cluster Server.
Zinky
Honored Contributor

Re: problem mount cifs

So Michael.. what was eventually the solution sir? What did you end up with?
Hakuna Matata

Favourite Toy:
AMD Athlon II X6 1090T 6-core, 16GB RAM, 12TB ZFS RAIDZ-2 Storage. Linux Centos 5.6 running KVM Hypervisor. Virtual Machines: Ubuntu, Mint, Solaris 10, Windows 7 Professional, Windows XP Pro, Windows Server 2008R2, DOS 6.22, OpenFiler
Michael P. O'Brien
Occasional Advisor

Re: problem mount cifs

Unfortunately, we gave up and moved the share to a non-clustered Win2008 server.
Artem Astapov
Occasional Contributor

Re: problem mount cifs

Michael, good news.
Today we migrated our windows cluster to 2008 and faced the same problem.
On our system it was solved by MS patch KB975512.

Hope this will help to you and anybody else.

http://support.microsoft.com/kb/975512