このコンテンツは選択した言語では利用できません。
13.2. Prepackaged Scripts
Red Hat provides scripts to export Samba (SMB) share when you start a volume and to remove the share when you stop the volume. These scripts are available at:
/var/lib/glusterd/hooks/1/start/post
and /var/lib/glusterd/hooks/1/stop/pre
. By default, the scripts are enabled.
When you start a volume using the following command:
# gluster volume start VOLNAME
The
S30samba-start.sh
script performs the following:
- Adds Samba share configuration details of the volume to the
smb.conf
file - Mounts the volume through FUSE and adds an entry in
/etc/fstab
for the same. - Restarts Samba to run with updated configuration
When you stop the volume using the following command:
# gluster volume stop VOLNAME
The
S30samba-stop.sh
script performs the following:
- Removes the Samba share details of the volume from the
smb.conf
file - Unmounts the FUSE mount point and removes the corresponding entry in
/etc/fstab
- Restarts Samba to run with updated configuration