OCF_HEARTBEAT_SMB-S(7) | OCF resource agents | OCF_HEARTBEAT_SMB-S(7) |
ocf_heartbeat_smb-share - Manages samba shares on the fly
smb-share [start | stop | status | monitor | meta-data | validate-all]
This RA is used to control samba shares on the fly. For adding and removing samba shares no restart of the samba daemon is needed. This is the equivalent of the exportfs RA which is used for nfs shares.
For this RA to work as expected you need a cloned samba daemon which have to be startet before. After this RA manages config snippets placed in the filesystem and after a fence of that node these snippets will still located there you will have to use a tmpfs mount for this. Also you need a basic smb.conf file in which all global parameters an permanent shares should be placed. Within this smb.conf also you must put a line in the global section like this:
include = /etc/samba/conf.d/pacemaker-includes.conf
The filename can be changed by setting the parameter includesfile. Every share created by this RA will create a new file located in:
/etc/samba/conf.d/
This directory also can be changed by setting the RA parameter confd.
share
(unique, required, string, no default)
path
(unique, optional, string, no default)
hosts_allow
(optional, string, no default)
browseable
(optional, string, no default)
writeable
(optional, string, no default)
read_only
(optional, string, no default)
guest_ok
(optional, string, no default)
directory_mask
(optional, string, no default)
create_mask
(optional, string, no default)
printable
(optional, string, no default)
valid_users
(optional, string, no default)
force_user
(optional, string, no default)
force_group
(optional, string, no default)
extraopt
(optional, string, no default)
extraopt_list
(optional, string, no default)
outfile
(unique, required, string, no default)
confd
(optional, string, default "/etc/samba/conf.d")
includesfile
(optional, string, default "/etc/samba/conf.d/pacemaker-includes.conf")
This resource agent supports the following actions (operations):
start
stop
status
monitor
meta-data
validate-all
The following is an example configuration for a smb-share resource using the crm(8) shell:
primitive p_smb-share ocf:heartbeat:smb-share \
params \
share=string \
outfile=string \
op monitor depth="0" timeout="20s" interval="10s"
The following is an example configuration for a smb-share resource using pcs(8)
pcs resource create p_smb-share ocf:heartbeat:smb-share \
share=string \
outfile=string \
op monitor OCF_CHECK_LEVEL="0" timeout="20s" interval="10s"
http://clusterlabs.org/
ClusterLabs contributors (see the resource agent source for information about individual authors)
04/13/2023 | resource-agents 4.12.0-2 |