{"id":27371965,"url":"https://github.com/kshithijiyer/gluster-bulkvolumecreate","last_synced_at":"2025-08-30T18:12:09.517Z","repository":{"id":197072779,"uuid":"156566310","full_name":"kshithijiyer/gluster-BulkVolumeCreate","owner":"kshithijiyer","description":"A tool to generate large number of glusterfs volumes.","archived":false,"fork":false,"pushed_at":"2018-11-07T18:45:50.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2023-09-28T23:12:38.581Z","etag":null,"topics":["gluster","glusterfs-volumes"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kshithijiyer.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2018-11-07T15:21:31.000Z","updated_at":"2023-09-28T23:12:49.708Z","dependencies_parsed_at":null,"dependency_job_id":"4cc9e921-db92-4a0c-9496-f689c20917eb","html_url":"https://github.com/kshithijiyer/gluster-BulkVolumeCreate","commit_stats":null,"previous_names":["kshithijiyer/gluster-bulkvolumecreate"],"tags_count":null,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kshithijiyer%2Fgluster-BulkVolumeCreate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kshithijiyer%2Fgluster-BulkVolumeCreate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kshithijiyer%2Fgluster-BulkVolumeCreate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kshithijiyer%2Fgluster-BulkVolumeCreate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kshithijiyer","download_url":"https://codeload.github.com/kshithijiyer/gluster-BulkVolumeCreate/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248694242,"owners_count":21146945,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["gluster","glusterfs-volumes"],"created_at":"2025-04-13T09:45:29.725Z","updated_at":"2025-04-13T09:45:30.624Z","avatar_url":"https://github.com/kshithijiyer.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gluster-BulkVolumeCreate\nA tool to generate a large number of glusterfs volumes.\n\n## Prerequisites\n1. Python 3.x\n2. Running gluster cluster\n\n\n## Installation\n1. Download the project files from github.\n```\ngit clone https://github.com/kshithijiyer/gluster-BulkVolumeCreate.git\n```\n2. Change directory to the project directory. \n```\ncd gluster-BulkVolumeCreate\n```\n3. Now run the installation script.\n```\npython3 setup.py install\n```\n4. To check run ``` BulkVolumeCreate --help ```\n\n## Usage\n### Setting Up config file\nCreate a .conf file with the following structure:\n```\nhosts=host1,host2,host3,host4,host5\nbricks=/bricks/brick1/,/bricks/brick2/,/bricks/brick3/,/bricks/brick4/,/bricks/brick5/,/bricks/brick6/,/bricks/brick7/\nvol_name=test\n```\nWhere ``` hosts ``` is the IP or hostnames of the peers in the gluster cluster, ``` bricks ``` are the paths to mount points where the bricks are mounted and ``` vol_name ``` is the base name of all the volumes. Edit the ``` example.conf ``` file available in the project folder. \n \n### Example commands\n1. Creating 10 EC volumes.\n```\nBulkVolumeCreate -f example.conf -t ec -e 2x4+2 -n 10\n```\n2. Creating 100 arb volumes.\n```\nBulkVolumeCreate -f example.conf -t arb -e 1x2+1 -n 100\n```\n3. Creating 20 replica 3x3 volumes with prefix ``` hi_ ```.\n```\nBulkVolumeCreate -f example.conf -t rep -e 3x3 -n 20 -p hi\n\n```\n\n\nAnother way of writing the same commands:\n```\nBulkVolumeCreate --config_file example.conf --type ec --expression 2x4+2 --number 10\nBulkVolumeCreate --config_file example.conf --type arb --expression 1x2+1 --number 100\nBulkVolumeCreate --config_file example.conf --type rep --expression 3x3 --number 20 --pefix hi\n```\n### Expression definition \nThis is how you write expressions for BulkVolumeCreate which defines what will be the configuration for the volumes. \n\nNo. | Type | Expression\n--- | --- | ---\n1 | dist | N\n2 | rep | AxB\n3 | arb | AxB+C\n4 | ec | AxD+R\n\nFor more info do a ``` BulkVolumeCreate --help ``` or ``` BulkVolumeCreate -h ```.\n\n## Built with \n[IDLE 3](https://www.python.org/downloads/)\n\n## Author\n[Kshithij Iyer](https://www.linkedin.com/in/kshithij-iyer/)\n\n## Licence \nThe project is released under BSD 2-Clause \"Simplified\" License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkshithijiyer%2Fgluster-bulkvolumecreate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkshithijiyer%2Fgluster-bulkvolumecreate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkshithijiyer%2Fgluster-bulkvolumecreate/lists"}