Bug 764776 (GLUSTER-3044) - provide option to set syslog loglevel through CLI
Summary: provide option to set syslog loglevel through CLI
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: GLUSTER-3044
Product: GlusterFS
Classification: Community
Component: cli
Version: pre-2.0
Hardware: x86_64
OS: Linux
medium
low
Target Milestone: ---
Assignee: Junaid
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-06-16 16:14 UTC by Amar Tumballi
Modified: 2015-12-01 16:45 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:
Regression: RTP
Mount Type: ---
Documentation: DP
CRM:
Verified Versions: glusterfs-3.3.0qa9


Attachments (Terms of Use)

Description Amar Tumballi 2011-06-16 16:14:05 UTC
currently all the CRITICAL logs goes to syslog, but there is no option for admin to change that to send everything from 'WARNING' to send to syslog. Need that option in CLI.

Comment 1 Amar Tumballi 2011-06-22 04:05:49 UTC
Junaid, lets talk on implementation details when ever you pick up this bug.

Comment 2 Anand Avati 2011-07-12 03:19:21 UTC
PATCH: http://patches.gluster.com/patch/7667 in master (libglusterfs/logging: Added functions to set sys-log-level.)

Comment 3 Anand Avati 2011-07-12 03:19:27 UTC
PATCH: http://patches.gluster.com/patch/7628 in master (mgmt/glusterd: Make glusterd aware of sys-log-level options.)

Comment 4 Anand Avati 2011-07-12 03:19:33 UTC
PATCH: http://patches.gluster.com/patch/7629 in master (debug/io-stats: Added sys-log-level option.)

Comment 5 Raghavendra Bhat 2011-09-16 07:42:02 UTC
Its works now. Set the sys log level for the bricks to WARNING.

gluster volume set <volname> brick-log-level WARNING. Ran posix compliance test on the mount point (which tries to create files with filename exceeding the maximum limit). File /var/log/messages had the error logs of glusterfsd.


Sep 16 06:39:56 Centos1 GlusterFS[13104]: [2011-09-16 06:39:56.127213] E [posix.c:129:posix_lookup] 0-mirror-posix: lstat on /_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_12345 failed: File name too long


Note You need to log in before you can comment on or make changes to this bug.