summaryrefslogtreecommitdiffstats
path: root/extras/volgen
Commit message (Collapse)AuthorAgeFilesLines
* removed some of the stale scriptsAmar Tumballi2011-02-104-1002/+0
| | | | | | | | Signed-off-by: Amar Tumballi <amar@gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 2393 ('gluster-volgen' and 'gluster-defrag' scripts are stale, but present in AMI) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2393
* migrate from port 69* to 24007Amar Tumballi2010-10-081-2/+2
| | | | | | | | Signed-off-by: Amar Tumballi <amar@gluster.com> Signed-off-by: Vijay Bellur <vijay@dev.gluster.com> BUG: 1870 (Change the port from 69* to some other ports.) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1870
* glusterd: handle failure of 'getspec' in case of '-' in volume nameAmar Tumballi2010-08-261-1/+1
| | | | | | | | Signed-off-by: Amar Tumballi <amar@gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 1433 () URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1433
* generate separate volume files for nfs in case of 'portmapper' modeAmar Tumballi2010-08-212-26/+142
| | | | | | | | Signed-off-by: Amar Tumballi <amar@gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 1319 (gnfs support in gluster command line) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1319
* volgen: generate listen port in server for portmap modev3.1.0qa6Vijay Bellur2010-08-161-0/+1
| | | | | | | | Signed-off-by: Vijay Bellur <vijay@gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 1375 () URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1375
* mgmt/glusterd: cli: Various fixes for replace brick.Pavan Sondur2010-08-161-0/+2
| | | | | | | | Signed-off-by: Pavan Vilas Sondur <pavan@gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 1304 (Free state info for replace brick) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1304
* new option to volgen '--portmapper-mode'Amar Tumballi2010-08-152-31/+272
| | | | | | | | | | | | | * without which, it generates volume files in old fashioned way. * with portmapper mode, no port option is taken, and there will be one process per one export. * corresponding changes in 'mgmt/glusterd' is made Signed-off-by: Amar Tumballi <amar@gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 1341 (glusterfs-volgen should behave differently for flag '--internal') URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1341
* client changes for 'gluster volume migration' to workAmar Tumballi2010-08-121-1/+16
| | | | | | | | | Signed-off-by: Amar Tumballi <amar@gluster.com> Signed-off-by: Pavan Vilas Sondur <pavan@gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 1303 (Cleanup replace-brick state info) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1303
* glusterfs-volgen changed to create one volume per brickAmar Tumballi2010-07-232-55/+58
| | | | | | | | Signed-off-by: Amar Tumballi <amar@gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 1208 () URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1208
* volgen now takes 'num-replica' and 'num-stripe' optionsAmar Tumballi2010-07-192-26/+40
| | | | | | | | Signed-off-by: Amar Tumballi <amar@gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 1155 (currently volgen doesn't take num-replica and num-stripe options) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1155
* proper way to do defrag of a mountpointAmar Tumballi2010-07-141-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Usage: "glusterfs-defrag <MOUNTPOINT>" there are new features added to distribute with this patch: * bash# getfattr -n trusted.distribute.linkinfo <file> Gives output in the format "<hostname>:<directory>", if there is a linkfile present, where hostname is server, directory is backend directory where the actual linkfile is present. * bash# getfattr -n trusted.glusterfs.pathinfo <path> Gives layout information if directory, and info about actual location of file in backend servers, in the form of 'hostname:directory'. (TODO: should extend it to all xlators) * bash# getfattr -n trusted.distribute.fix.layout <path> scales out the directory layout in distribute, so when new servers are added, layouts are fixed to include them. * removed 'scale-n-defrag.sh' as its no more required. * changed 'defrag.sh' to have a feature to specify target bricks, so defrag happens to only those nodes. moved the file to 'glusterfs-defrag', which now gets installed to '${prefix}/bin' * storage/posix: takes new option 'hostname' so it can resolve to same hostname given during 'gluster volume create'. with 'trusted.glusterfs.pathinfo' posix returns the value in 'hostname:real_path' format. Signed-off-by: Amar Tumballi <amar@gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 1073 ('gluster defrag <VOLNAME>' fails in mainline) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1073
* gluster-CLI-and-mgmt-glusterd-added-to-codebaseAmar Tumballi2010-07-081-1/+1
| | | | | | | | | Signed-off-by: Vijay Bellur <vijay@gluster.com> Signed-off-by: Amar Tumballi <amar@gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 971 (dynamic volume management) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=971
* Changes to volgen such that it does not error out in python2.4Raghavendra Bhat2010-06-101-1/+4
| | | | | | | | Signed-off-by: Raghavendra Bhat <raghavendrabhat@gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 988 (volgen in master generates error) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=988
* extras/volgen: Volgen patchsetHarshavardhana2010-04-225-321/+241
| | | | | | | | | | | | | | | | | | | | | | -- Supports NFS Translator. -- Consolidated common API's into Common.py. -- Removed unused CreateBooster.py. -- Added code for "--add-server" for dynamic volumes. Currently its commented out we will use it when needed. -- No more options hiding in background anymore. All options specified for each translator are commented and exposed. Only necessary values are enabled. This is done due to necessary cleanup of unwanted options by exposing them. PENDING: "replicate" translator -- Quota is disabled for native NFS on client side. Only server side quota can be used as of now. -- Additional code cleanup. Signed-off-by: Harshavardhana <harsha@gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 822 (Volgen changes supporting NFS) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=822
* Fix backtick evaluation bug in cache-sizeHarshavardhana2010-03-291-1/+1
| | | | | | | | Signed-off-by: Harshavardhana <harsha@gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 768 (cache-size might be wrong in glusterfs.vol) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=768
* extras/volgen: Add copyright headers.Vikas Gorur2010-03-243-0/+52
| | | | | | | | Signed-off-by: Vikas Gorur <vikas@gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 751 (Copyright headers missing) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=751
* Fixed "." delimiter for cache-size calculation which would fail on different ↵Harshavardhana2010-03-151-1/+1
| | | | | | | | | | | | locale. Thanks to Filip Valder < valder (a) netdevelo.cz > for suggestions. Signed-off-by: Harshavardhana <harsha@gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 720 (Default . decimal delimiter will not work for other locale) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=720
* Add quota support to volgenHarshavardhana Ranganath2010-02-182-3/+41
| | | | | | | | | | | | New options on command line 1. --volume-size-server - Volume sizes for server side posix exports 2. --volume-size-client - Volume sizes for client side exports Signed-off-by: Harshavardhana <harsha@gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 611 (Add quota support to volgen) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=611
* Remove dns lookup issued for each hostnames.Harshavardhana Ranganath2010-02-181-13/+2
| | | | | | | | Signed-off-by: Harshavardhana <harsha@gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 563 (glusterfs-volgen: can't handle multiple network interfaces) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=563
* Fix occurence of cache-size being floating pointHarshavardhana Ranganath2010-01-251-2/+2
| | | | | | | | Signed-off-by: Harshavardhana <harsha@gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 516 (cache-size should not be hard-coded to 1GB) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=516
* Cache size is now dynamic and is 20% of the total memory on the client side.Harshavardhana Ranganath2010-01-212-4/+5
| | | | | | | | Signed-off-by: Harshavardhana <harsha@gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 516 (cache-size should not be hard-coded to 1GB) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=516
* Fix critical argument validation bug found during initial testing.Harshavardhana Ranganath2009-12-062-1/+10
| | | | | | | | Signed-off-by: Harshavardhana <harsha@gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 437 (Fix critical argument validation check on Fedora11 systems) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=437
* glusterfs-volgen honours now build level prefix.Harshavardhana Ranganath2009-12-061-2/+4
| | | | | | | | Signed-off-by: Harshavardhana <harsha@gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 437 (Fix critical argument validation check on Fedora11 systems) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=437
* Booster configuration fixed for per transport type and honours conf-dir option.Harshavardhana Ranganath2009-12-012-11/+57
| | | | | | | | Signed-off-by: Harshavardhana <harsha@gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 421 (Make booster configuration honour conf-dir and transport type) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=421
* Removed deprecated export_dir in print string.Harshavardhana Ranganath2009-11-281-1/+1
| | | | | | | | Signed-off-by: Harshavardhana <harsha@gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 412 (Remove deprecated export_dir in print string) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=412
* Volgen rewritten using option parser and added proper support for booster.Harshavardhana Ranganath2009-11-263-211/+274
| | | | | | | | Signed-off-by: Harshavardhana <harsha@gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 411 (Rewrite volgen using option parser and extend cifs/nfs support) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=411
* Volgen supporting multidisks and booster configuration for nfs and cifsHarshavardhana Ranganath2009-11-264-0/+486
Signed-off-by: Harshavardhana <harsha@gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 396 (Volgen multiple export directory support) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=396