Bug 762135 (GLUSTER-403)

Summary: glusterfs-volgen script with raid-0 gives error message
Product: [Community] GlusterFS Reporter: Lakshmipathi G <lakshmipathi>
Component: scriptsAssignee: Harshavardhana <fharshav>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: low Docs Contact:
Priority: medium    
Version: mainlineCC: cww, gluster-bugs
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: RTP Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Lakshmipathi G 2009-11-24 12:48:08 UTC
[root@brick4 laks]# /opt/glusterfs/2.0.8/bin/glusterfs-volgen --export-directory /jbod/laks/ --port 6448 --raid 0 --name raid0-store-brick3 brick4 brick7

printing volume files
raid type (0) and number of of hosts (2) not appropriate

and glusterfs-volgen --usage  shows :
/usr/local/bin/glusterfs-volgen  --name <volume-name>

 [--raid 0|1|10] 
    [--transport tcp|ib-verbs] 
    [--cache-size <cache-size>] 
    [--port <port>] 
    [--export-directory <export-dir>] 
    [--num-stripe n] 
    [--num-replica m] 
    [--usage] 
    [--upgrade] 
    host1 host2 ... hostN 

where --export-directory <export-dir> is shown as optional parameter.But it is a mandatory option for script.

Comment 1 Harshavardhana 2009-11-25 21:38:26 UTC
raid '0' works with minimum of "4" subvolumes i.e four servers. You are using 
an older version of the script.

new script is available at, which is heavily modified. 

git clone git://git.gluster.com/users/harsha/volgen.git volgen.git 

A patch of the same is sent to glusterfs main repo, so it should 
be available with the coming releases.