Table of Contents
Scope/Description
- This article will show how to enable reliable network discovery of samba shares with the WSD service. This service works with standalone samba servers as well as CTDB.
Prerequisites
- Samba shares preconfigured
- Windows DNS record that points to samba/ctdb server, in the example that host-name is LABSAMBACLUSTER
Steps
- Install wsdd service on your system.
[root@centos-45drives ~]# yum install wsdd
root@ubuntu-server:~# echo deb https://pkg.ltec.ch/public/ focal main > /etc/apt/sources.list.d/wsdd.list root@ubuntu-server:~# apt-key adv --fetch-keys https://pkg.ltec.ch/public/conf/ltec-ag.gpg.key root@ubuntu-server:~# apt-get update && apt-get install wsdd
- Open firewalld ports.
[root@centos-45drives ~]# firewall-cmd --permanent --add-port=3702/udp && firewall-cmd --permanent --add-port=5357/tcp && firewall-cmd --reload
root@ubuntu-server:~# firewall-cmd --permanent --add-port=3702/udp && firewall-cmd --permanent --add-port=5357/tcp && firewall-cmd --reload
- Edit wssd config file. If in a CTDB environment do this on every node.
- LABSAMBACLUSTER is the name that will show up in the “Network Neighbourhood” this needs to match the DNS record created already.
[root@centos-45drives ~]# echo "OPTIONS="-4 -n LABSAMBACLUSTER"" > /etc/sysconfig/wsdd
- Restart wsdd service. If in a CTDB environment do this on every node.
[root@centos-45drives ~]# systemctl restart wsdd
root@ubuntu-server:~# systemctl restart wsdd
- Verify you can reach your shares through the network neighborhood
Views: 9461