Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
linux_wiki:glusterfs [2015/10/04 22:31] billdozor [Server Config] |
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 92: | Line 92: | ||
* Note: Once a trusted pool has been created, only existing pool members can probe new servers. | * Note: Once a trusted pool has been created, only existing pool members can probe new servers. | ||
* New servers cannot probe a pool member. | * New servers cannot probe a pool member. | ||
- | - Create a GlusterFS Volume => **This is the important part where how the volume is created depicts whether data is distributed, | + | - Create a GlusterFS Volume => **How the volume is created depicts whether data is distributed, |
- | * Distributed(default): | + | |
+ | * **Distributed(default)**: A normal " | ||
* <code bash> | * <code bash> | ||
- | * Replicated: A copy of the data is kept on each brick. (Amount determined by the replica number) The following keeps a copy on server1 and server2. | + | |
* <code bash> | * <code bash> | ||
- | * Distributed Replicated: Files distributed across replicated sets of bricks. The following round robins between the " | + | |
* <code bash> | * <code bash> | ||
* More types: | * More types: | ||
* [[http:// | * [[http:// | ||
* [[http:// | * [[http:// | ||
- | * Note: A volume cannot be created at a mount point; it must be a subdirectory within the mount point | ||
- Start the Gluster volume to make it usable by clients | - Start the Gluster volume to make it usable by clients | ||
- <code bash> | - <code bash> | ||
Line 125: | Line 125: | ||
* View gluster volume info | * View gluster volume info | ||
* <code bash> | * <code bash> | ||
- | |||
- | ==== Managing ==== | ||
- | |||
- | * Re-balance Data | ||
- | * <code bash> | ||
- | * View re-balance status | ||
- | * <code bash> | ||
- | |||
- | * Daemon control | ||
- | * <code bash> | ||
==== Storage Pools ==== | ==== Storage Pools ==== | ||
Line 143: | Line 133: | ||
* Remove server from trusted storage pool | * Remove server from trusted storage pool | ||
* <code bash> | * <code bash> | ||
+ | |||
+ | ==== Volumes ==== | ||
+ | |||
+ | * Add a brick to the volume (add to trusted storage pool first) | ||
+ | * <code bash> | ||
+ | * Remove a brick from the volume (and then remove from trusted storage pool) | ||
+ | * <code bash> | ||
+ | gluster volume remove-brick myvol server2:/ | ||
+ | gluster volume remove-brick myvol server2:/ | ||
+ | * 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 | ||
+ | * <code bash> | ||
+ | * Start Volume | ||
+ | * <code bash> | ||
+ | * Stop Volume | ||
+ | * <code bash> | ||
+ | |||
+ | ==== Balance Data ==== | ||
+ | |||
+ | Data can be re-balanced live and should be done after adding/ | ||
+ | |||
+ | * Fix Layout: Fixes layout changes (added bricks), so newly added files can be stored on new nodes. | ||
+ | * <code bash> | ||
+ | * Fix Layout and Migrate Data: Fix layout changes and also migrate data to new nodes. | ||
+ | * <code bash> | ||
+ | |||
+ | * View re-balance status | ||
+ | * <code bash> | ||
==== Security ==== | ==== Security ==== |