Gluster install w/ samba share

Notice: Page may contain affiliate links for which we may earn a small commission through services like Amazon Affiliates or Skimlinks.

macrules34

Active Member
Mar 18, 2016
407
28
28
40
Okay I have done as you have asked @whitey and here are the results.

when running: sudo mount -t nfs <nfs server IP>:/gluster-drive /srv/install/OS
I get this error: mount.nfs: access denied by server while mounting <nfs server IP>:/gluster-drive

when running: sudo mount -t nfs4 <nfs server IP>:/gluster-drive /srv/install/OS
I get this error: mount.nfs4: mounting <nfs server IP>:/gluster-drive failed, reason given by server: No such file or directory

Correct me if I'm wrong but there seems to be some type of permissions issue, how ever there is no user name or password option in the mount.nfs man pages. I have even added the IP and host name in the /etc/hosts file on the client machine to rule out hostname/IP issues.

I fell that I have gotten further than when I last posted but there is still something no right and I can't seem to put my finger on it, I've tried googling the errors but nothing has helped.
 

whitey

Moderator
Jun 30, 2014
2,766
868
113
41
I dunno what to tell ya, I tore my gluster test env down back to base/vanilla snapshots and rebuilt it in like 15 mins and had NFS mounts working out of the box to another CentOS7 client and vSphere hosts. Didn't even have to apply ANY of the 'gluster volume set' cmds.

I can attach the cmd output of my 4 node VM gluster setup that you cn try to replicate, it is based on CentOS 7.5 though if you'd be willing to give that a whirl. CentOS is more enterprise postured over Suse as far as market/skillset share IMHO as well and it sound like you may be having issues getting updated Suse media.
 

macrules34

Active Member
Mar 18, 2016
407
28
28
40
I'll try to connect the NFS share to my ESXi box and see if its indeed Suse causing the issue.
 

macrules34

Active Member
Mar 18, 2016
407
28
28
40
I tried mounting it on an ESXi box but I got an error again:
Call "HostDatastoreSystem.CreateNasDatastore" for object "ha-datastoresystem" on ESXi "<ESXi server IP>" failed.
NFS mount <nfs server IP>:/gluster-drive failed: The mount request was denied by the NFS server. Check that the export exists and that the client is permitted to mount it.

I'm starting to think that its some type of permissions settings on the NFS server since I can't connect via Suse Linux or ESXi.
 

whitey

Moderator
Jun 30, 2014
2,766
868
113
41
Did you check your local firewall on Suse? What is the output of 'iptables -nL' on that box?
 

macrules34

Active Member
Mar 18, 2016
407
28
28
40
Output from I-tables -nL:

Chain INPUT (policy DROP)
target prot opt source destination
ACCEPT all -- 0.0.0.0/0 0.0.0.0/0
ACCEPT all -- 0.0.0.0/0 0.0.0.0/0 ctstate ESTABLISHED
ACCEPT icmp -- 0.0.0.0/0 0.0.0.0/0 ctstate RELATED
input_ext all -- 0.0.0.0/0 0.0.0.0/0
LOG all -- 0.0.0.0/0 0.0.0.0/0 limit: avg 3/min burst 5 LOG flags 6 level 4 prefix "SFW2-IN-ILL-TARGET "
DROP all -- 0.0.0.0/0 0.0.0.0/0

Chain FORWARD (policy DROP)
target prot opt source destination
LOG all -- 0.0.0.0/0 0.0.0.0/0 limit: avg 3/min burst 5 LOG flags 6 level 4 prefix "SFW2-FWD-ILL-ROUTING "

Chain OUTPUT (policy ACCEPT)
target prot opt source destination
ACCEPT all -- 0.0.0.0/0 0.0.0.0/0

Chain forward_ext (0 references)
target prot opt source destination


Chain input_ext (1 references)
target prot opt source destination
ACCEPT udp -- 0.0.0.0/0 0.0.0.0/0 PKTTYPE = broadcast udp dpt:67
DROP all -- 0.0.0.0/0 0.0.0.0/0 PKTTYPE = broadcast
ACCEPT icmp -- 0.0.0.0/0 0.0.0.0/0 icmptype 4
ACCEPT icmp -- 0.0.0.0/0 0.0.0.0/0 icmptype 8
LOG tcp -- 0.0.0.0/0 0.0.0.0/0 limit: avg 3/min burst 5 tcp dpt:22 flags:0x17/0x02 LOG flags 6 level 4 prefix "SFW2-INext-ACC-TCP "
ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:22
LOG tcp -- 0.0.0.0/0 0.0.0.0/0 limit: avg 3/min burst 5 tcp dpts:5800:5899 flags:0x17/0x02 LOG flags 6 level 4 prefix "SFW2-INext-ACC-TCP "
ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpts:5800:5899
LOG tcp -- 0.0.0.0/0 0.0.0.0/0 limit: avg 3/min burst 5 tcp dpts:5900:5999 flags:0x17/0x02 LOG flags 6 level 4 prefix "SFW2-INext-ACC-TCP "
ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpts:5900:5999
LOG tcp -- 0.0.0.0/0 0.0.0.0/0 limit: avg 3/min burst 5 tcp dpt:21 flags:0x17/0x02 LOG flags 6 level 4 prefix "SFW2-INext-ACC-TCP "
ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:21
LOG tcp -- 0.0.0.0/0 0.0.0.0/0 limit: avg 3/min burst 5 tcp dpts:30000:30100 flags:0x17/0x02 LOG flags 6 level 4 prefix "SFW2-INext-ACC-TCP "
ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpts:30000:30100
ACCEPT udp -- 0.0.0.0/0 0.0.0.0/0 udp dpt:67
ACCEPT udp -- 0.0.0.0/0 0.0.0.0/0 udp dpt:123
ACCEPT udp -- 0.0.0.0/0 0.0.0.0/0 udp dpt:69
DROP all -- 0.0.0.0/0 0.0.0.0/0 PKTTYPE = multicast
DROP all -- 0.0.0.0/0 0.0.0.0/0 PKTTYPE = broadcast
LOG tcp -- 0.0.0.0/0 0.0.0.0/0 limit: avg 3/min burst 5 tcp flags:0x17/0x02 LOG flags 6 level 4 prefix "SFW2-INext-DROP-DEFLT "
LOG icmp -- 0.0.0.0/0 0.0.0.0/0 limit: avg 3/min burst 5 LOG flags 6 level 4 prefix "SFW2-INext-DROP-DEFLT "
LOG udp -- 0.0.0.0/0 0.0.0.0/0 limit: avg 3/min burst 5 ctstate NEW LOG flags 6 level 4 prefix "SFW2-INext-DROP-DEFLT "
DROP all -- 0.0.0.0/0 0.0.0.0/0

Chain reject_func (0 references)
target prot opt source destination
REJECT tcp -- 0.0.0.0/0 0.0.0.0/0 reject-with tcp-reset
REJECT udp -- 0.0.0.0/0 0.0.0.0/0 reject-with icmp-port-unreachable
REJECT all -- 0.0.0.0/0 0.0.0.0/0 reject-with icmp-proto-unreachable
 

whitey

Moderator
Jun 30, 2014
2,766
868
113
41
Please turn off your firewall to start.

OLD WAY (For legacy distro's, this may be your case)
chkconfig iptables off
service iptables stop

NEW WAY (for recent distro's)
systemctl disable firewalld
systemctl stop firewalld

What we are looking for is a clean ACCEPT/ACCEPT/ACCEPT for INPUT/OUTPUT/FORWARD chains. This is a sledgehammer approach but what I prefer to start with instead of chasing our tails, otherwise 'just use CentOS' as it is SUPER SIMPLE there to get this working, gluster native client and all or NFS.
 

macrules34

Active Member
Mar 18, 2016
407
28
28
40
With the firewall off I get the error: mount.nfs: access denied by server while mounting <nfs server IP>:/gluster-drive

The iptables -nL command shows the same with the firewall stopped then started again.
 

macrules34

Active Member
Mar 18, 2016
407
28
28
40
I tried updating the OS to SP2 and when I rebooted the system wouldn't boot, so I'm installing Suse 12 SP3 that supports the glusterfs client. We'll see how it goes.
 

macrules34

Active Member
Mar 18, 2016
407
28
28
40
I downloaded the cluster client for Sure 12 SP3 and when I go to install it I get a dependency mess:

warning: glusterfs-3.8.15-53.1.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID 324e6311: NOKEY
error: Failed dependencies:
libgfapi.so.0()(64bit) is needed by glusterfs-3.8.15-53.1.x86_64
libgfapi.so.0(GFAPI_3.4.0)(64bit) is needed by glusterfs-3.8.15-53.1.x86_64
libgfapi.so.0(GFAPI_3.4.2)(64bit) is needed by glusterfs-3.8.15-53.1.x86_64
libgfapi.so.0(GFAPI_3.5.1)(64bit) is needed by glusterfs-3.8.15-53.1.x86_64
libgfapi.so.0(GFAPI_3.6.0)(64bit) is needed by glusterfs-3.8.15-53.1.x86_64
libgfapi.so.0(GFAPI_3.7.0)(64bit) is needed by glusterfs-3.8.15-53.1.x86_64
libgfapi.so.0(GFAPI_3.7.4)(64bit) is needed by glusterfs-3.8.15-53.1.x86_64
libgfapi.so.0(GFAPI_PRIVATE_3.4.0)(64bit) is needed by glusterfs-3.8.15-53.1.x86_64
libgfapi.so.0(GFAPI_PRIVATE_3.7.0)(64bit) is needed by glusterfs-3.8.15-53.1.x86_64
libgfchangelog.so.0()(64bit) is needed by glusterfs-3.8.15-53.1.x86_64
libgfdb.so.0()(64bit) is needed by glusterfs-3.8.15-53.1.x86_64
libgfrpc.so.0()(64bit) is needed by glusterfs-3.8.15-53.1.x86_64
libgfxdr.so.0()(64bit) is needed by glusterfs-3.8.15-53.1.x86_64
libglusterfs.so.0()(64bit) is needed by glusterfs-3.8.15-53.1.x86_64
 

macrules34

Active Member
Mar 18, 2016
407
28
28
40
Is there a way to install these dependencies with out downloading each individual one?
 

macrules34

Active Member
Mar 18, 2016
407
28
28
40
Update: I was able to get the client installed on Suse 12 SP3 and was able to connect through the client software.

Thanks to all that have helped!!! :)
 
Last edited: