[Gluster-users] Help with debugging EC volume

jayakrishnan mm jayakrishnan.mm at gmail.com
Wed Mar 30 07:32:44 UTC 2016

Any help?
---------- Forwarded message ----------
From: "jayakrishnan mm" <jayakrishnan.mm at gmail.com>
Date: Mar 29, 2016 11:13 AM
Subject: Help with debugging EC volume
To: <gluster-devel at gluster.org>


I am  trying to debug the EC translator using gdb, following the  method
suggested  by Jeff Darcy, using the  vol file  shown below.

volume  my-posix
        type storage/posix
        option directory /play/export

volume my-ec
        type cluster/my-ec
        subvolumes my-posix

However, this is not successful, giving  below  error

[2016-03-29 02:36:45.209407] E [MSGID: 122051] [ec.c:70:ec_parse_options]
0-my-ec: Invalid redundancy (must be between 1 and 0) [Invalid argument]
[2016-03-29 02:36:45.209424] E [MSGID: 122052] [ec.c:599:init] 0-my-ec:
Failed to parse xlator options [Invalid argument]
(Full log attached)

How  do I specify the redundancy in the vol file ?
Can  someone send  me a vol file  for debugging EC ?

Best Regards
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.gluster.org/pipermail/gluster-users/attachments/20160330/ab102dea/attachment.html>
-------------- next part --------------
Quit anyway? (y or n) y
jayakrishnan:glusterfs-3.7.6$ sudo gdb glusterfs
[sudo] password for jayakrishnan: 
GNU gdb (Ubuntu 7.7.1-0ubuntu5~14.04.2) 7.7.1
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i686-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
Find the GDB manual and other documentation resources online at:
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from glusterfs...done.
(gdb) r --debug -f my_ec.vol  /play/import
Starting program: /usr/local/sbin/glusterfs --debug -f my_ec.vol  /play/import
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/i386-linux-gnu/libthread_db.so.1".
[2016-03-29 02:36:45.157197] I [MSGID: 100030] [glusterfsd.c:2318:main] 0-/usr/local/sbin/glusterfs: Started running /usr/local/sbin/glusterfs version 3.7.6 (args: /usr/local/sbin/glusterfs --debug -f my_ec.vol /play/import)
[2016-03-29 02:36:45.164528] D [MSGID: 0] [glusterfsd.c:424:set_fuse_mount_options] 0-glusterfsd: fopen-keep-cache mode 2
[2016-03-29 02:36:45.164579] D [MSGID: 0] [glusterfsd.c:488:set_fuse_mount_options] 0-glusterfsd: fuse direct io type 2
[2016-03-29 02:36:45.164624] D [MSGID: 0] [glusterfsd.c:512:set_fuse_mount_options] 0-glusterfsd: fuse no-root-squash mode 0
[2016-03-29 02:36:45.164832] D [MSGID: 0] [options.c:1225:xlator_option_init_double] 0-fuse: option negative-timeout using set value 0.000000
[2016-03-29 02:36:45.165055] D [MSGID: 0] [options.c:1222:xlator_option_init_bool] 0-fuse: option no-root-squash using set value disable
[2016-03-29 02:36:45.165578] D [logging.c:1790:__gf_log_inject_timer_event] 0-logging-infra: Starting timer now. Timeout = 120, current buf size = 5
[New Thread 0xb6c76b40 (LWP 3831)]
[New Thread 0xb6475b40 (LWP 3834)]
[New Thread 0xb5c74b40 (LWP 3835)]
[New Thread 0xb5473b40 (LWP 3836)]
[2016-03-29 02:36:45.173729] D [MSGID: 0] [glusterfsd.c:638:get_volfp] 0-glusterfsd: loading volume file /home/jayakrishnan/gluster/glusterfs-3.7.6/my_ec.vol
[2016-03-29 02:36:45.209332] D [MSGID: 0] [ec.c:546:init] 0-my-ec: JK_DEBUG: In init

[2016-03-29 02:36:45.209390] D [MSGID: 0] [ec.c:56:ec_parse_options] 0-my-ec: JK_DEBUG: In ec_parse_options

[2016-03-29 02:36:45.209407] E [MSGID: 122051] [ec.c:70:ec_parse_options] 0-my-ec: Invalid redundancy (must be between 1 and 0) [Invalid argument]
[2016-03-29 02:36:45.209424] E [MSGID: 122052] [ec.c:599:init] 0-my-ec: Failed to parse xlator options [Invalid argument]
[2016-03-29 02:36:47.209527] I [MSGID: 101053] [mem-pool.c:616:mem_pool_destroy] 0-my-ec: size=1592 max=0 total=0
[2016-03-29 02:36:47.209591] I [MSGID: 101053] [mem-pool.c:616:mem_pool_destroy] 0-my-ec: size=1956 max=0 total=0
[2016-03-29 02:36:47.209621] I [MSGID: 101053] [mem-pool.c:616:mem_pool_destroy] 0-my-ec: size=1184 max=0 total=0
[2016-03-29 02:36:47.209650] E [MSGID: 101019] [xlator.c:428:xlator_init] 0-my-ec: Initialization of volume 'my-ec' failed, review your volfile again
[2016-03-29 02:36:47.209674] E [graph.c:322:glusterfs_graph_init] 0-my-ec: initializing translator failed
[2016-03-29 02:36:47.209693] E [graph.c:661:glusterfs_graph_activate] 0-graph: init failed
[2016-03-29 02:36:47.217925] D [logging.c:1764:gf_log_flush_extra_msgs] 0-logging-infra: Log buffer size reduced. About to flush 5 extra log messages
[2016-03-29 02:36:47.217983] D [logging.c:1767:gf_log_flush_extra_msgs] 0-logging-infra: Just flushed 5 extra log messages
[2016-03-29 02:36:47.220280] W [glusterfsd.c:1236:cleanup_and_exit] (-->/usr/local/sbin/glusterfs(glusterfs_volumes_init+0xe6) [0x805118d] -->/usr/local/sbin/glusterfs(glusterfs_process_volfp+0x1ae) [0x80510a2] -->/usr/local/sbin/glusterfs(cleanup_and_exit+0x8d) [0x804ed3d] ) 0-: received signum (0), shutting down
[2016-03-29 02:36:47.220324] D [glusterfsd-mgmt.c:2268:glusterfs_mgmt_pmap_signout] 0-fsd-mgmt: portmapper signout arguments not given
[2016-03-29 02:36:47.220348] I [fuse-bridge.c:5683:fini] 0-fuse: Unmounting '/play/import'.
[Thread 0xb5473b40 (LWP 3836) exited]
[Thread 0xb5c74b40 (LWP 3835) exited]
[Thread 0xb6475b40 (LWP 3834) exited]
[Thread 0xb6c76b40 (LWP 3831) exited]
[Inferior 1 (process 3825) exited normally]

More information about the Gluster-users mailing list