Dieser Inhalt ist in der von Ihnen ausgewählten Sprache nicht verfügbar.
4.5. Testing the Resource Configuration
If the Samba configuration was successful, you should be able to mount the Samba share on a node in the cluster. The following example procedure mounts a Samba share.
- Add an existing user in the cluster node to the
smbpasswd
file and assign a password. In the following example, there is an existing usersmbuser
.smbpasswd -a smbuser
[root@z1 ~]# smbpasswd -a smbuser New SMB password: Retype new SMB password: Added user smbuser
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Mount the Samba share:
mkdir /mnt/sambashare mount -t cifs -o user=smbuser //198.162.1.151/public /mnt/sambashare
[root@z1 ~]# mkdir /mnt/sambashare [root@z1 ~]# mount -t cifs -o user=smbuser //198.162.1.151/public /mnt/sambashare Password for smbuser@//198.162.1.151/public: ********
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Check whether the file system is mounted:
mount | grep /mnt/sambashare
[root@z1 ~]# mount | grep /mnt/sambashare //198.162.1.151/public on /mnt/sambashare type cifs (rw,relatime,vers=1.0,cache=strict,username=smbuser,domain=LINUXSERVER,uid=0,noforceuid,gid=0,noforcegid,addr=10.37.167.205,unix,posixpaths,serverino,mapposix,acl,rsize=1048576,wsize=65536,echo_interval=60,actimeo=1)
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
To check for Samba recovery, perform the following procedure.
- Manually stop the CTDB resource with the following command:
pcs resource debug-stop ctdb
[root@z1 ~]# pcs resource debug-stop ctdb
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - After you stop the resource, the system should recover the service. Check the cluster status with the
pcs status
command. You should see that thectdb-clone
resource has started, but you will also see actdb_monitor
failure.Copy to Clipboard Copied! Toggle word wrap Toggle overflow To clear this error from the status, enter the following command on one of the cluster nodes:pcs resource cleanup ctdb-clone
[root@z1 ~]# pcs resource cleanup ctdb-clone
Copy to Clipboard Copied! Toggle word wrap Toggle overflow