summaryrefslogtreecommitdiffstats
path: root/xlators/mgmt/glusterd
Commit message (Collapse)AuthorAgeFilesLines
* glusterd: preserve brick's port, retrive it while starting glusterdAmar Tumballi2010-09-082-3/+18
| | | | | | | | | | | | * this solves the problem of having brickinfo->port as 0 when when glusterd is restarted while glusterfsd processes are running Signed-off-by: Amar Tumballi <amar@gluster.com> Signed-off-by: Vijay Bellur <vijay@dev.gluster.com> BUG: 1569 (data not available in client when glusterd killed and restarted.) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1569
* glusterd: rebalance fixesAmar Tumballi2010-09-072-14/+21
| | | | | | | | Signed-off-by: Amar Tumballi <amar@gluster.com> Signed-off-by: Vijay Bellur <vijay@dev.gluster.com> BUG: 1481 () URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1481
* mgmt/glusterd: resolve bricks upon restartPranith Kumar K2010-09-071-0/+34
| | | | | | | | Signed-off-by: Pranith Kumar K <pranithk@gluster.com> Signed-off-by: Vijay Bellur <vijay@dev.gluster.com> BUG: 1286 () URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1286
* Volume info should display transport-typeshishir gowda2010-09-071-0/+5
| | | | | | | | Signed-off-by: shishir gowda <shishirng@gluster.com> Signed-off-by: Vijay Bellur <vijay@dev.gluster.com> BUG: 1230 () URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1230
* mgmt/glusterd: Disallow final brick remove of a volumePranith Kumar K2010-09-071-10/+38
| | | | | | | | Signed-off-by: Pranith Kumar K <pranithk@gluster.com> Signed-off-by: Vijay Bellur <vijay@dev.gluster.com> BUG: 1547 () URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1547
* Add gf_cmd_log msg for volume startshishir gowda2010-09-071-33/+41
| | | | | | | | | | Also fix existing gf_cmd_log msgs Signed-off-by: shishir gowda <shishirng@gluster.com> Signed-off-by: Vijay Bellur <vijay@dev.gluster.com> BUG: 1556 (Add cmd log msg to volume start) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1556
* mgmt/glusterd: create store handle in store create brickPranith Kumar K2010-09-071-7/+12
| | | | | | | | Signed-off-by: Pranith Kumar K <pranithk@gluster.com> Signed-off-by: Vijay Bellur <vijay@dev.gluster.com> BUG: 1372 () URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1372
* DHT mount fails with parsing of subvolumesshishir gowda2010-09-071-1/+1
| | | | | | | | | | | | following error msg is seen in the log E [graph.y:296:volume_sub] parser: Volume 'new-dht', line 38: subvolume 'new-client-0new-client-1new-client-2new-client-3' is not defined prior to usage Signed-off-by: shishir gowda <shishirng@gluster.com> Signed-off-by: Vijay Bellur <vijay@dev.gluster.com> BUG: 1536 () URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1536
* glusterd-volgen: write new nfs options in nfs.volAmar Tumballi2010-09-061-25/+50
| | | | | | | | Signed-off-by: Amar Tumballi <amar@gluster.com> Signed-off-by: Vijay Bellur <vijay@dev.gluster.com> BUG: 1548 (nfs should be able to get different uuid for different subvolumes) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1548
* mgmt/glusterd: volume to have 'uuid'Amar Tumballi2010-09-066-65/+102
| | | | | | | | Signed-off-by: Amar Tumballi <amar@gluster.com> Signed-off-by: Vijay Bellur <vijay@dev.gluster.com> BUG: 1548 (nfs should be able to get different uuid for different subvolumes) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1548
* do not restrict the size of the subvolume string as it may corrupt the stack ↵Raghavendra Bhat2010-09-061-8/+74
| | | | | | | | | | for large number of bricks Signed-off-by: Raghavendra Bhat <raghavendrabhat@gluster.com> Signed-off-by: Vijay Bellur <vijay@dev.gluster.com> BUG: 1536 () URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1536
* Create volume adding transport type option rdmashishir gowda2010-09-067-2/+59
| | | | | | | | | | | | Adding transport type option to cli volume create command. This is optional, and defaults to TCP. The other transport supported is rdma Signed-off-by: shishir gowda <shishirng@gluster.com> Signed-off-by: Vijay Bellur <vijay@dev.gluster.com> BUG: 1507 (need to add 'transport <type>' options to create brick) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1507
* Volume create hostname should not be localhostshishir gowda2010-09-061-1/+1
| | | | | | | | | | | | | volume create hostname should not be localhost or 127.0.0.1. It should be a valid nodeid or ip. This will prevent invalid vol files being created on glusterd's when localhost or 127.0.0.1 is specified Signed-off-by: shishir gowda <shishirng@gluster.com> Signed-off-by: Vijay Bellur <vijay@dev.gluster.com> BUG: 1505 (volume create/add-brick requires ip or hostname for localhost) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1505
* mgmt/glusterd: misc fixes in replace-brick and get volumesVijay Bellur2010-09-052-25/+39
| | | | | | | | Signed-off-by: Vijay Bellur <vijay@gluster.com> Signed-off-by: Vijay Bellur <vijay@dev.gluster.com> BUG: 971 (dynamic volume management) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=971
* mgmt/glusterd: Add GET volume supportVijay Bellur2010-09-051-18/+29
| | | | | | | | Signed-off-by: Vijay Bellur <vijay@gluster.com> Signed-off-by: Vijay Bellur <vijay@dev.gluster.com> BUG: 971 (dynamic volume management) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=971
* mgmt/glusterd: clear op ctx after cli responsePranith Kumar K2010-09-033-13/+15
| | | | | | | | Signed-off-by: Pranith Kumar K <pranithk@gluster.com> Signed-off-by: Vijay Bellur <vijay@dev.gluster.com> BUG: 1513 () URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1513
* mgmt/glusterd: fix warnings during build.Raghavendra G2010-09-031-2/+3
| | | | | | | | Signed-off-by: Raghavendra G <raghavendra@gluster.com> Signed-off-by: Vijay Bellur <vijay@dev.gluster.com> BUG: 1307 (gluster volume defrag <VOLNAME> status) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1307
* do not free the hostname from the responseRaghavendra Bhat2010-09-031-2/+1
| | | | | | | | Signed-off-by: Raghavendra Bhat <raghavendrabhat@gluster.com> Signed-off-by: Vijay Bellur <vijay@dev.gluster.com> BUG: 1511 () URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1511
* mgmt/glusterd: retrieve version upon restartv3.1.0qa14Vijay Bellur2010-09-022-0/+6
| | | | | | | | Signed-off-by: Vijay Bellur <vijay@gluster.com> Signed-off-by: Vijay Bellur <vijay@dev.gluster.com> BUG: 1265 () URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1265
* check if the export directory is present only on the brick being addedRaghavendra Bhat2010-09-021-5/+19
| | | | | | | | Signed-off-by: Raghavendra Bhat <raghavendrabhat@gluster.com> Signed-off-by: Vijay Bellur <vijay@dev.gluster.com> BUG: 1510 () URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1510
* mgmt/glusterd: fix rebalance with new option use-readdirpAmar Tumballi2010-09-021-19/+40
| | | | | | | | Signed-off-by: Amar Tumballi <amar@gluster.com> Signed-off-by: Vijay Bellur <vijay@dev.gluster.com> BUG: 1508 (add-brick works but files are not distributed to newly added server) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1508
* mgmt/glusterd: memory leak fixesPranith Kumar K2010-09-026-13/+138
| | | | | | | | Signed-off-by: Pranith Kumar K <pranithk@gluster.com> Signed-off-by: Vijay Bellur <vijay@dev.gluster.com> BUG: 1186 () URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1186
* update the volume information first before checksumRaghavendra Bhat2010-09-023-9/+16
| | | | | | | | Signed-off-by: Raghavendra Bhat <raghavendrabhat@gluster.com> Signed-off-by: Vijay Bellur <vijay@dev.gluster.com> BUG: 1504 () URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1504
* cli, mgmt/glusterd: Added replace brick cli responsePranith Kumar K2010-09-022-2/+32
| | | | | | | | Signed-off-by: Pranith Kumar K <pranithk@gluster.com> Signed-off-by: Vijay Bellur <vijay@dev.gluster.com> BUG: 1322 (Replace brick should show status of paused and abort states) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1322
* mgmt/glusterd: support for GET_NEXT volume infoVijay Bellur2010-09-023-10/+54
| | | | | | | | Signed-off-by: Vijay Bellur <vijay@gluster.com> Signed-off-by: Vijay Bellur <vijay@dev.gluster.com> BUG: 1255 () URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1255
* mgmt/glusterd: multi subvol support for nfs xlatorPranith Kumar K2010-09-021-15/+36
| | | | | | | | Signed-off-by: Pranith Kumar K <pranithk@gluster.com> Signed-off-by: Vijay Bellur <vijay@dev.gluster.com> BUG: 1319 (gnfs support in gluster command line) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1319
* crash fixed in 'gluster volume log locate'Amar Tumballi2010-09-021-6/+11
| | | | | | | | Signed-off-by: Amar Tumballi <amar@gluster.com> Signed-off-by: Vijay Bellur <vijay@dev.gluster.com> BUG: 1506 (crash in log locate..) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1506
* Remove brick validationshishir gowda2010-09-022-6/+111
| | | | | | | | | | | | Added checks for duplicate bricks in cli arguments, valid bricks for the volume, valid volume name, and prevent removing of incorrect pairs for replica. Signed-off-by: shishir gowda <shishirng@gluster.com> Signed-off-by: Vijay Bellur <vijay@dev.gluster.com> BUG: 1486 () URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1486
* mgmt/glusterd: gnfs support in gluster command linePranith Kumar K2010-09-017-4/+484
| | | | | | | | Signed-off-by: Pranith Kumar K <pranithk@gluster.com> Signed-off-by: Vijay Bellur <vijay@dev.gluster.com> BUG: 1319 (gnfs support in gluster command line) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1319
* mgmt/glusterd: Fix replicate/stripe subvolume count in volgen.Pavan Sondur2010-09-011-86/+109
| | | | | | | | Signed-off-by: Pavan Vilas Sondur <pavan@gluster.com> Signed-off-by: Vijay Bellur <vijay@dev.gluster.com> BUG: 1497 (gluster volume create creates incorrect volume file) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1497
* peer status returns duplicate peer info on restartshishir gowda2010-09-012-1/+2
| | | | | | | | | | | removing the peerinfo file for hostname once peerinfo is stored in the uuid file name. Signed-off-by: shishir gowda <shishirng@gluster.com> Signed-off-by: Vijay Bellur <vijay@dev.gluster.com> BUG: 1498 (Peer status duplicate entries on restart of glusterd) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1498
* check if the volume is already started before startingRaghavendra Bhat2010-09-011-0/+6
| | | | | | | | Signed-off-by: Raghavendra Bhat <raghavendrabhat@gluster.com> Signed-off-by: Vijay Bellur <vijay@dev.gluster.com> BUG: 1496 () URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1496
* mgmt/glusterd: send unlock upon commit failurev3.1.0qa13Vijay Bellur2010-08-312-1/+13
| | | | | | | | Signed-off-by: Vijay Bellur <vijay@gluster.com> Signed-off-by: Vijay Bellur <vijay@dev.gluster.com> BUG: 1476 () URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1476
* mgmt/glusterd: memory leak fixesPranith Kumar K2010-08-319-66/+180
| | | | | | | | Signed-off-by: Pranith Kumar K <pranithk@gluster.com> Signed-off-by: Vijay Bellur <vijay@dev.gluster.com> BUG: 1186 () URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1186
* mgmt/glusterd: prevent a double reply for the same request.Amar Tumballi2010-08-311-2/+10
| | | | | | | | Signed-off-by: Amar Tumballi <amar@gluster.com> Signed-off-by: Vijay Bellur <vijay@dev.gluster.com> BUG: 1401 () URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1401
* fixes in 'gluster volume rebalance'Amar Tumballi2010-08-312-14/+38
| | | | | | | | Signed-off-by: Amar Tumballi <amar@gluster.com> Signed-off-by: Vijay Bellur <vijay@dev.gluster.com> BUG: 1481 () URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1481
* check if the export directory is present only on the correct hostRaghavendra Bhat2010-08-311-6/+31
| | | | | | | | Signed-off-by: Raghavendra Bhat <raghavendrabhat@gluster.com> Signed-off-by: Vijay Bellur <vijay@dev.gluster.com> BUG: 1489 () URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1489
* 'gluster volume log' feature addedAmar Tumballi2010-08-319-27/+589
| | | | | | | | | * 'gluster volume log filename <VOLNAME> [BRICK] <path>' * 'gluster volume log locate <VOLNAME> [BRICK]' * 'gluster volume log rotate <VOLUME> [BRICK]' Signed-off-by: Amar Tumballi <amar@gluster.com> Signed-off-by: Vijay Bellur <vijay@dev.gluster.com>
* Log all commands from glusterdshishir gowda2010-08-311-0/+142
| | | | | | | | | | | | | Logging all commands processed by glusterd which causes some change. the log file is @ /etc/glusterd/.cmd_log_history. gf_cmd_log() is used to write to this log Signed-off-by: shishir gowda <shishirng@gluster.com> Signed-off-by: Vijay Bellur <vijay@dev.gluster.com> BUG: 1404 (need a dump of all the op/mgmt commands) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1404
* Add command logging facility for glusterdshishir gowda2010-08-311-1/+10
| | | | | | | | | | | | | | | Added new command logging facility to gf_cmd_log() which can be used to log all commands to a .cmd_log_history file situated in the glusterd working directory. Accepts 1 st argument a domain string (e.g: volume, peer..) followed by msg string (similar to gf_log) Signed-off-by: shishir gowda <shishirng@gluster.com> Signed-off-by: Vijay Bellur <vijay@dev.gluster.com> BUG: 1404 (need a dump of all the op/mgmt commands) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1404
* mgmt/glusterd: Update store on start/stop volumeVijay Bellur2010-08-303-6/+17
| | | | | | | | Signed-off-by: Vijay Bellur <vijay@gluster.com> Signed-off-by: Vijay Bellur <vijay@dev.gluster.com> BUG: 1480 () URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1480
* mgmt/glusterd: Return replace-brick statusPavan Sondur2010-08-301-8/+28
| | | | | | | | Signed-off-by: Pavan Vilas Sondur <pavan@gluster.com> Signed-off-by: Vijay Bellur <vijay@dev.gluster.com> BUG: 1322 (Replace brick should show status of paused and abort states) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1322
* mgmt/glusterd: fixed volgen creation problemsPranith Kumar K2010-08-302-19/+5
| | | | | | | | Signed-off-by: Pranith Kumar K <pranithk@gluster.com> Signed-off-by: Vijay Bellur <vijay@dev.gluster.com> BUG: 1454 (Remove brick unsuccessful - wrong volume info) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1454
* Volume Add-brick validation for exportsshishir gowda2010-08-302-52/+67
| | | | | | | | | | | | Added checks for export already in use, duplicate exports in command, and check whether exports are valid. Also, cleaned up error handling in glusterd_handle_add_bricks Signed-off-by: shishir gowda <shishirng@gluster.com> Signed-off-by: Vijay Bellur <vijay@dev.gluster.com> BUG: 1457 (volume add brick validation for export) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1457
* mgmt/glusterd: remove volfile, brick file upon remove-brickPranith Kumar K2010-08-304-0/+28
| | | | | | | | Signed-off-by: Pranith Kumar K <pranithk@gluster.com> Signed-off-by: Vijay Bellur <vijay@dev.gluster.com> BUG: 1475 (glusterd should delete brick related files upon remove brick) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1475
* mgmt/glusterd: handle port allocation so ports are reused for same brickv3.1.0qa11Amar Tumballi2010-08-292-9/+11
| | | | | | | | | | | * if 'brickinfo->port' exists use it instead of pmap_registry_alloc(), hence a brick after stop/start starts on same port Signed-off-by: Amar Tumballi <amar@gluster.com> Signed-off-by: Vijay Bellur <vijay@dev.gluster.com> BUG: 1473 (reuse the ports while starting 'glusterfsd') URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1473
* cli, mgmt/glusterd: added volume stop <VOLNAME> force functionalityPranith Kumar K2010-08-283-28/+96
| | | | | | | | Signed-off-by: Pranith Kumar K <pranithk@gluster.com> Signed-off-by: Vijay Bellur <vijay@dev.gluster.com> BUG: 1361 () URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1361
* mgmt/glusterd: Fix some more options in volgen.Pavan Sondur2010-08-281-6/+6
| | | | | | | | Signed-off-by: Pavan Vilas Sondur <pavan@gluster.com> Signed-off-by: Vijay Bellur <vijay@dev.gluster.com> BUG: 1455 (df command hangs before showing the gluster mount) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1455
* change the path to brickpath while creating the pidfileRaghavendra Bhat2010-08-281-1/+1
| | | | | | | | Signed-off-by: Raghavendra Bhat <raghavendrabhat@gluster.com> Signed-off-by: Vijay Bellur <vijay@dev.gluster.com> BUG: 1409 (Gluster add brick fails if all the bricks are local) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1409
* mgmt/glusterd: look for local hostname in is_local_addr()v3.1.0qa10Vijay Bellur2010-08-272-17/+29
| | | | | Signed-off-by: Vijay Bellur <vijay@gluster.com> Signed-off-by: Vijay Bellur <vijay@dev.gluster.com>