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
linux_wiki:glusterfs [2015/10/04 23:01]
billdozor
linux_wiki:glusterfs [2019/05/25 23:50] (current)
Line 10: Line 10:
  
 **Checklist** **Checklist**
-  * Distro: Enterprise Linux 6+  * Distro(s): Enterprise Linux 6
  
 ---- ----
Line 125: Line 125:
   * View gluster volume info   * View gluster volume info
     * <code bash>gluster volume info</code>     * <code bash>gluster volume info</code>
- 
-==== Managing ==== 
- 
-  * Re-balance Data 
-    * <code bash>gluster volume rebalance myvol start</code> 
-  * View re-balance status 
-    * <code bash>gluster volume rebalance status</code> 
- 
-  * Daemon control 
-    * <code bash>service glusterd [stop|start|restart|status]</code> 
  
 ==== Storage Pools ==== ==== Storage Pools ====
Line 149: 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.1444014088.txt.gz
  • Last modified: 2019/05/25 23:50
  • (external edit)