Questo contenuto non è disponibile nella lingua selezionata.
12.4. Configuring the Log Level
INFO, only CRITICAL, ERROR, WARNING, and INFO messages are logged.
- CRITICAL
- ERROR
- WARNING
- INFO
- DEBUG
- TRACE
Important
gluster volume set VOLNAME diagnostics.brick-log-level <value>
# gluster volume set VOLNAME diagnostics.brick-log-level <value>
Example 12.7. Set the log level to warning on a brick
gluster volume set testvol diagnostics.brick-log-level WARNING
# gluster volume set testvol diagnostics.brick-log-level WARNING
gluster volume set VOLNAME diagnostics.brick-sys-log-level <value>
# gluster volume set VOLNAME diagnostics.brick-sys-log-level <value>
Example 12.8. Set the syslog level to warning on a brick
gluster volume set testvol diagnostics.brick-sys-log-level WARNING
# gluster volume set testvol diagnostics.brick-sys-log-level WARNING
gluster volume set VOLNAME diagnostics.client-log-level <value>
# gluster volume set VOLNAME diagnostics.client-log-level <value>
Example 12.9. Set the log level to error on a client
gluster volume set testvol diagnostics.client-log-level ERROR
# gluster volume set testvol diagnostics.client-log-level ERROR
gluster volume set VOLNAME diagnostics.client-sys-log-level <value>
# gluster volume set VOLNAME diagnostics.client-sys-log-level <value>
Example 12.10. Set the syslog level to error on a client
gluster volume set testvol diagnostics.client-sys-log-level ERROR
# gluster volume set testvol diagnostics.client-sys-log-level ERROR
glusterd persistently
/etc/sysconfig/glusterd file, and set the value of the LOG_LEVEL parameter to the log level that you want glusterd to use.
## Set custom log file and log level (below are defaults) #LOG_FILE='/var/log/glusterfs/glusterd.log' LOG_LEVEL='VALUE'
## Set custom log file and log level (below are defaults)
#LOG_FILE='/var/log/glusterfs/glusterd.log'
LOG_LEVEL='VALUE'
service or systemctl command.
Example 12.11. Set the log level to WARNING on glusterd
- Edit the
glusterdservice file:On Red Hat Enterprise 7(RHEL 7) and RHEL 8, theglusterdservice file is available at/usr/lib/systemd/system/glusterd.serviceOn RHEL 6, theglusterdservice file is available at/etc/sysconfig/glusterdImportant
Red Hat Gluster Storage is not supported on Red Hat Enterprise Linux 6 (RHEL 6) from 3.5 Batch Update 1 onwards. See Version Details table in section Red Hat Gluster Storage Software Components and Versions of the Installation Guide - Change the
LOG_LEVELvariable to the required debug level.## Set custom log file and log level (below are defaults) #LOG_FILE='/var/log/glusterfs/glusterd.log' LOG_LEVEL='WARNING'## Set custom log file and log level (below are defaults) #LOG_FILE='/var/log/glusterfs/glusterd.log' LOG_LEVEL='WARNING'Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Reload the daemon:On RHEL 7 and RHEL 8, runOn RHEL 6, run
systemctl daemon-reload
systemctl daemon-reloadCopy to Clipboard Copied! Toggle word wrap Toggle overflow service glusterd reload
service glusterd reloadCopy to Clipboard Copied! Toggle word wrap Toggle overflow Important
Red Hat Gluster Storage is not supported on Red Hat Enterprise Linux 6 (RHEL 6) from 3.5 Batch Update 1 onwards. See Version Details table in section Red Hat Gluster Storage Software Components and Versions of the Installation Guide - Restart the
glusterdservice.On RHEL 7 and RHEL 8, runOn RHEL 6, runsystemctl restart glusterd
systemctl restart glusterdCopy to Clipboard Copied! Toggle word wrap Toggle overflow service glusterd restart
service glusterd restartCopy to Clipboard Copied! Toggle word wrap Toggle overflow Important
Red Hat Gluster Storage is not supported on Red Hat Enterprise Linux 6 (RHEL 6) from 3.5 Batch Update 1 onwards. See Version Details table in section Red Hat Gluster Storage Software Components and Versions of the Installation Guide
Example 12.12. Run volume status with a log level of ERROR
gluster --log-level=ERROR volume status
# gluster --log-level=ERROR volume status