linux_wiki:glusterfs

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
linux_wiki:glusterfs [2015/10/04 23:02]
billdozor [Managing]
linux_wiki:glusterfs [2015/10/20 09:10]
billdozor [Volumes]
Line 125: Line 125:
   * View gluster volume info   * View gluster volume info
     * <code bash>gluster volume info</code>     * <code bash>gluster volume info</code>
- 
-==== Balance Data ==== 
- 
-  * Re-balance Data 
-    * <code bash>gluster volume rebalance myvol start</code> 
-  * View re-balance status 
-    * <code bash>gluster volume rebalance status</code> 
  
 ==== Storage Pools ==== ==== Storage Pools ====
Line 146: Line 139:
     * <code bash>gluster volume add-brick myvol server5:/data/glusterfs/myvol/brick1/brick</code>     * <code bash>gluster volume add-brick myvol server5:/data/glusterfs/myvol/brick1/brick</code>
   * Remove a brick from the volume (and then remove from trusted storage pool)   * Remove a brick from the volume (and then remove from trusted storage pool)
-    * <code bash>gluster volume remove-brick myvol server2:/data/glusterfs/myvol/brick1/brick</code>+    * <code bash>gluster volume remove-brick myvol server2:/data/glusterfs/myvol/brick1/brick start 
 +gluster volume remove-brick myvol server2:/data/glusterfs/myvol/brick1/brick status 
 +gluster volume remove-brick myvol server2:/data/glusterfs/myvol/brick1/brick commit</code> 
 +    * Gluster will auto-rebalance data between the remaining bricks. 
 +    * If any type of replication or stripe sets exist, you must remove a number of bricks equal to a multiple.
   * Replace a faulty brick   * Replace a faulty brick
     * <code bash>gluster volume replace-brick myvol server3:/data/glusterfs/myvol/brick1/brick server5:/data/glusterfs/myvol/brick1/brick commit force</code>     * <code bash>gluster volume replace-brick myvol server3:/data/glusterfs/myvol/brick1/brick server5:/data/glusterfs/myvol/brick1/brick commit force</code>
 +  * Start Volume
 +    * <code bash>gluster volume start myvol</code>
 +  * Stop Volume
 +    * <code bash>gluster volume stop myvol</code>
 +
 +==== Balance Data ====
 +
 +Data can be re-balanced live and should be done after adding/removing nodes to the volume. There are two types of rebalance options:
 +
 +  * Fix Layout: Fixes layout changes (added bricks), so newly added files can be stored on new nodes.
 +    * <code bash>gluster volume rebalance myvol fix-layout start</code>
 +  * Fix Layout and Migrate Data: Fix layout changes and also migrate data to new nodes.
 +    * <code bash>gluster volume rebalance myvol start</code>
 +
 +  * View re-balance status
 +    * <code bash>gluster volume rebalance status</code>
  
 ==== Security ==== ==== Security ====
  • linux_wiki/glusterfs.txt
  • Last modified: 2019/05/25 23:50
  • (external edit)