- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Interesting Samba/CIFS problem
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-07-2004 01:49 PM
09-07-2004 01:49 PM
4 samba/cifs nodes
node 1 jerusalem
node 2 shalom
node 3 storage
node 4 hpweb running hpux cifs/9000
Storage is an old kayak running Fedora Core 2
node 1 and 2 are Red Hat AS 3 boxes.
node 1 3 4 can all do cifs/samba connects to each other no problem.
The command syntax
mount -t smbfs -o username=root,password=nottelling //nod1/shared /share
Syntax is slightly different for hpux but it works to node 1 and node 2 no problem.
None of the nodes can do a samba mount to node 3.
ssh, telnet works great. No firewall on the node 3 box because its for internal disk storage, not Internet exposure.
Here is the error you get from trying to do a mount on node 3:
Error connecting to 192.168.0.50 (No route to host)
24353: Connection to storage failed
SMB connection failed
I have searched the net in google far and wide and gotten no solution.
Thing is I have complete connectivity as far as i can tell.
Here is an interesting entry from the samba log of the client attempting the mount. I've also searched on that and gotten nothing useful.
getpeername failed. Error was Transport endpoint is not connected
[2004/09/05 20:35:20, 0] lib/util_sock.c:get_peer_addr(952)
getpeername failed. Error was Transport endpoint is not connected
[2004/09/06 00:00:17, 0] smbd/server.c:main(747)
smbd version 3.0.2-6.3E started.
Copyright Andrew Tridgell and the Samba Team 1992-2004
[2004/09/06 01:55:35, 0] lib/util_sock.c:get_peer_addr(952)
getpeername failed. Error was Transport endpoint is not connected
[2004/09/06 04:02:01, 1] smbd/server.c:open_sockets_smbd(342)
Reloading services after SIGHUP
The server resolves in DNS.
It has dual unteamed gigabit NICs through a cheap gigabit switch. All traffic to and from the nodes is travelling through that switch.
I'm attaching a log of network activity from tcpdump to this case.
I am mystified and have no idea how to proceed. I've patched up the target system and can find nothing wrong with the networking setup. netmask and all other parameters are fine.
Any ideas?
From the log it would appear that there is some kind of response from node 3.
Extra: node 3 has no problems doing samba mounts on nodes 1 2 and 4.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-07-2004 01:52 PM
09-07-2004 01:52 PM
Re: Interesting Samba/CIFS problem
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-07-2004 02:00 PM
09-07-2004 02:00 PM
Solution//
storage.investmenttool.com > shalom.investmenttool.com: icmp: host storage.investmenttool.com unreachable - admin prohibited //
I believe storage is not able to resolve it's fully qualified domain name (storage.investmenttools.com) on itself.
I would try looking in that area.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-07-2004 02:55 PM
09-07-2004 02:55 PM
Re: Interesting Samba/CIFS problem
I'll investigate and award points accordingly
If I have trouble with the log, I'll let you know.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-07-2004 11:17 PM
09-07-2004 11:17 PM
Re: Interesting Samba/CIFS problem
PING storage.investmenttool.com (192.168.0.50) 56(84) bytes of data.
64 bytes from 192.168.0.50: icmp_seq=0 ttl=64 time=0.264 ms
64 bytes from 192.168.0.50: icmp_seq=1 ttl=64 time=0.293 ms
--- storage.investmenttool.com ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1013ms
rtt min/avg/max/mdev = 0.264/0.278/0.293/0.022 ms, pipe 2
[root@haifa root]# mount -t smbfs -o username=invest,password=swa1965 //storage/shared /share
Error connecting to 192.168.0.50 (No route to host)
2704: Connection to storage failed
SMB connection failed
If ping works, why won't samba. Note: seemingly no network activity in a tcpdump on node3(storage.investmenttool.com) when this mount fails.
I'm wondering if this is a samba flaw but the versioning is totally different between nodes 1 2 and 4.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-07-2004 11:34 PM
09-07-2004 11:34 PM
Re: Interesting Samba/CIFS problem
is there any strange configuration, like routing table ad-hoc or a socks config ?
HTH,
Massimo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-07-2004 11:47 PM
09-07-2004 11:47 PM
Re: Interesting Samba/CIFS problem
just some additional thought:
- are you able to run nmap against "storage" ? What is its output ?
- are you able to mount, from storage , a share, using loopback ?
- are you able to properly show the shares from the node itself ?
- did you check the mac address against the ip address (just to be sure...) ?
from your statement looks like the problem is in the cifs server part, not in the client. Are you able to use nfs mounts ?
- is there the file /etc/protocols ?
- looking from google http://lists.samba.org/archive/samba/2004-May/085856.html
looks like the server maight be listening on another address. Is this possible ?
HTH,
Massimo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-08-2004 01:18 AM
09-08-2004 01:18 AM
Re: Interesting Samba/CIFS problem
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-08-2004 06:34 AM
09-08-2004 06:34 AM
Re: Interesting Samba/CIFS problem
Seems subnetting is okay. The difference between node 3 and the others is that its totally intenrnal. Its mean to be a shared nfs/cifs mount for all machines and not to be exposed to the Internet.
Right before I hit submit the subnet thought occurred to me so I ran the config files on all four workstations and found the 192.168.0 network all properly subnetted to 255.255.255.0
output:
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
192.168.0.50 192.168.0.41 255.255.255.255 UGH 0 0 0 eth0
10.1.10.0 0.0.0.0 255.255.255.0 U 0 0 0 eth2
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
66.92.143.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth2
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 10.1.10.254 0.0.0.0 UG 0 0 0 eth2
I did the route add for the first entry myself. the 169 and 10.1 network are inactive, assigned to a card i'll eventually use for clustering.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-08-2004 11:11 AM
09-08-2004 11:11 AM
Re: Interesting Samba/CIFS problem
Did you ping to 'storage.investmenttool.com' from storage box itself?. The packets from storage are indicating that the box 'storage' itself is unable to recognize it as 'storage.investmenttools.com'. I think you may have to reconfigure samba on storage to allow connections for storage.investmenttools.com.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-08-2004 06:05 PM
09-08-2004 06:05 PM
Re: Interesting Samba/CIFS problem
you said:
the 169 and 10.1 network are inactive, assigned to a card i'll eventually use for clustering
I think that the samba file sharing got bind to that card, and is not answering to the other subnets.
Can you disable that card, and restart samba ?
HTH,
Massimo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2004 04:03 AM
09-09-2004 04:03 AM
Re: Interesting Samba/CIFS problem
I think you have actually identified the problem.
The ping on the box to itself returns the following:
64 bytes from storage.investmenttool.com (127.0.0.1): icmp_seq=0 time=0.055ms
A ping on a properly working box returns this:
64 bytes from storage.investmenttool.com (192.168.0.40): icmp_seq=0 time=0.055ms
It actually returns the public IP address but I'm not going to post that.
So the obvious issue is that networking configuration is just plain broken on storage.
I'm open to general ideas on what might be wrong but since it's Linux may have to go to that forum for how to fix it. As number 1 Linux point getter, I should be able to figure it out myself.
HP-UX pings locally to fully qualified domain name also return proper answers. Something is messed up and my box defaults to loopback.
I doubt its dns
Fascinating. Thanks for the help, points will be assigned liberally.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2004 05:45 AM
09-09-2004 05:45 AM
Re: Interesting Samba/CIFS problem
Not ignoring you. node1 does not have any spare or unused network cards and gets the same results.
Since I have changed the networking I think a new tcpdump is called for.
I'm unclear what the hp-ux syntax should be to attempt the mount. If hp-ux can do it and linux samba can't it points to a bug in the client.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2004 06:20 AM
09-09-2004 06:20 AM
Re: Interesting Samba/CIFS problem
It can be easily fixed if it is a HP-UX box. I believe you will just need to reconfigure the 'local' hosts file to resolve the IP address to it's short hostname as well as it's alias - the fully qualified hostname. I believe you know how to fix it.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2004 07:16 AM
09-09-2004 07:16 AM
Re: Interesting Samba/CIFS problem
Consider the thread on hold until i get hands on and re-run the tcpdump. Still can't connect and there may be other networking issues.
Quite a fascinating little issue.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2004 06:59 PM
09-09-2004 06:59 PM
Re: Interesting Samba/CIFS problem
01:41:50.206262 shalom.investmenttool.com.33230 > 192.168.0.30.netbios-ssn: . ack 435 win 5840 (DF)
01:41:50.207412 shalom.investmenttool.com.33233 > storage.investmenttool.com.microsoft-ds: S 498849426:498849426(0) win 5840
01:41:50.207616 storage.investmenttool.com > shalom.investmenttool.com: icmp: host storage.investmenttool.com unreachable - admin prohibited [tos 0xc0]
01:41:50.223480 shalom.investmenttool.com.33234 > storage.investmenttool.com.netbios-ssn: S 492637380:492637380(0) win 5840
01:41:50.223725 storage.investmenttool.com > shalom.investmenttool.com: icmp: host storage.investmenttool.com unreachable - admin prohibited [tos 0xc0]
storage.investmenttool.com does not have a machine account on the primary domain controller.
How the Windows PDC got involved I'll never know, but 192.168.0.30 is that box and needs to be configured. I bet the connection works after that. Sri earned a couple bunnies for sure.
I'm not going to get to fix this until Saturday night.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2004 02:21 PM
09-13-2004 02:21 PM
Re: Interesting Samba/CIFS problem
He didn't have enough information to know WHAT the network problem was.
Even with full knowledge and an exhaustive comparison of the network configuration with working boxes I was unable to determine the cause of the problem.
Since it was a Fedora Core box, I merely reinstalled the OS. That worked.
I think the souce of the problem was I started out with unsupported Gigabit NIC card's which would not work and eventually switched to Intel Cards which worked well, but something, somewhere was wrong. Even with auto detect working fine, something somewhere was out of whack.
It only took two tries and about 2 hours to fix the OS.
The project is complete and the box will undergo reliability testing and serve as shared disk for a home made cluster that includes an HP-9000 server.
Thanks for the help.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com