kadalu / moana

Moana is a frontend for the Kadalu Storage / GlusterFS. Moana provides tools for setting up and managing the Kadalu Storage / Gluster pools.
GNU General Public License v3.0
18 stars 7 forks source link

Disperse volume (2 + 1) fails to mount citing ' [0-vol4-disperse-0: option redundancy conversion failed value {{ volume.redundancy }}' #296

Closed vatsa287 closed 1 year ago

vatsa287 commented 1 year ago

Steps to reproduce:

  1. Create disperse volume, used 2 data + 1 redundant storage units.
    root@server1:/mnt/vol3# kadalu volume create dev/vol4 data server1:/exports/vol4/s1 server2:/exports/vol4/s2 redundancy server3:/exports/vol4/s3 
    Volume vol4 created
    ID: 985d2a9c-762f-4442-b124-2e08fb9dbf14
  2. Mount this volume
    
    root@server1:/mnt/vol3# kadalu mount dev/vol4 /mnt/vol4 
    Executing the following command to mount the Kadalu Storage Volume

/usr/local/sbin/glusterfs --volfile-id=vol4 --process-name=fuse.kadalu \ --fs-display-name=kadalu:dev/vol4 /mnt/vol4 \ --log-file=/var/log/kadalu/mnt-vol4.log --volfile-server=server1:49260 \ --volfile-server=server2:49260 --volfile-server=server3:49260

Mounting Kadalu Storage Volume on /mnt/vol4 failed.

Mount Logs:

root@server1:/mnt/vol3# cat /var/log/kadalu/mnt-vol4.log [2023-01-12 06:52:34.900055 +0000] I [MSGID: 100030] [glusterfsd.c:2872:main] 0-/usr/local/sbin/glusterfs: Started running version [{arg=/usr/local/sbin/glusterfs}, {version=2022.12.23}, {cmdlinestr=/usr/local/sbin/glusterfs --volfile-id=vol4 --process-name=fuse.kadalu --fs-display-name=kadalu:dev/vol4 /mnt/vol4 --log-file=/var/log/kadalu/mnt-vol4.log --volfile-server=server1:49260 --volfile-server=server2:49260 --volfile-server=server3:49260}] [2023-01-12 06:52:34.920914 +0000] I [glusterfsd.c:2562:daemonize] 0-glusterfs: Pid of current running process is 4543 [2023-01-12 06:52:34.937596 +0000] I [MSGID: 101188] [event-epoll.c:643:event_dispatch_epoll_worker] 0-epoll: Started thread with index [{index=0}] [2023-01-12 06:52:34.937800 +0000] I [MSGID: 101188] [event-epoll.c:643:event_dispatch_epoll_worker] 0-epoll: Started thread with index [{index=1}] [2023-01-12 06:52:34.965204 +0000] I [io-stats.c:3794:ios_sample_buf_size_configure] 0-vol4: Configure ios_sample_buf size is 1024 because ios_sample_interval is 0 [2023-01-12 06:52:34.965609 +0000] I [MSGID: 101082] [options.c:1360:xlator_option_init_int32] 0-vol4-disperse-0: option redundancy conversion failed value {{ volume.redundancy }} [2023-01-12 06:52:34.965650 +0000] E [MSGID: 122052] [ec.c:829:init] 0-vol4-disperse-0: Failed to parse xlator options [Invalid argument] [2023-01-12 06:52:36.965772 +0000] E [MSGID: 101018] [xlator.c:643:xlator_init] 0-vol4-disperse-0: Initialization of volume failed. review your volfile again. [{name=vol4-disperse-0}] [2023-01-12 06:52:36.965809 +0000] E [MSGID: 101064] [graph.c:476:glusterfs_graph_init] 0-vol4-disperse-0: initializing translator failed [2023-01-12 06:52:36.965818 +0000] E [MSGID: 101174] [graph.c:825:glusterfs_graph_activate] 0-graph: init failed [2023-01-12 06:52:36.965970 +0000] W [glusterfsd.c:1427:cleanup_and_exit] (-->/usr/local/sbin/glusterfs(+0x1263d) [0x55e2eb0bd63d] -->/usr/local/sbin/glusterfs(glusterfs_process_volfp+0x243) [0x55e2eb0b6f93] -->/usr/local/sbin/glusterfs(cleanup_and_exit+0x58) [0x55e2eb0b5158] ) 0-: received signum (-1), shutting down [2023-01-12 06:52:36.966013 +0000] I [fuse-bridge.c:7051:fini] 0-fuse: Unmounting '/mnt/vol4'.


Client Volfile

root@server1:/mnt/vol3# cat /var/lib/kadalu/volfiles/vol4.vol volume vol4-disperse-0-client-2 type protocol/client option remote-subvolume /exports/vol4/s3 option remote-host server3 option remote-port 49260 end-volume

volume vol4-disperse-0-client-1 type protocol/client option remote-subvolume /exports/vol4/s2 option remote-host server2 option remote-port 49260 end-volume

volume vol4-disperse-0-client-0 type protocol/client option remote-subvolume /exports/vol4/s1 option remote-host server1 option remote-port 49260 end-volume

volume vol4-disperse-0 type cluster/disperse option afr-pending-xattr vol4-client-0,vol4-client-1,vol4-client-2 subvolumes vol4-disperse-0-client-0 vol4-disperse-0-client-1 vol4-disperse-0-client-2 end-volume

volume vol4-utime type features/utime subvolumes vol4-disperse-0 end-volume

volume vol4-write-behind type performance/write-behind subvolumes vol4-utime end-volume

volume vol4 type debug/io-stats option volume-id 985d2a9c-762f-4442-b124-2e08fb9dbf14 subvolumes vol4-write-behind end-volume

volume meta-autoload type meta subvolumes vol4 end-volume