Differences
This shows you the differences between two versions of the page.
linux_wiki:glusterfs [2015/10/04 22:38] billdozor [Server Config] |
linux_wiki:glusterfs [2019/05/25 23:50] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Glusterfs ====== | ||
- | **General Information** | ||
- | |||
- | Description: | ||
- | |||
- | * Official Site: [[http:// | ||
- | * Gluster Terminology: | ||
- | * Gluster Architecture: | ||
- | |||
- | **Checklist** | ||
- | * Distro: Enterprise Linux 6 | ||
- | |||
- | ---- | ||
- | |||
- | ===== Servers and Client ===== | ||
- | |||
- | These examples all assume that there are: | ||
- | |||
- | * 2 servers: server1 and server2 | ||
- | * 1 client system | ||
- | |||
- | ---- | ||
- | |||
- | ===== Data Directory Config ===== | ||
- | |||
- | ==== Some important recommendations ==== | ||
- | * It is recommended to dedicate a disk to GlusterFS storage on the server. | ||
- | * XFS is the preferred file system as it can handle more files than others (such as EXT4) | ||
- | * Gluster recommends the following naming convention setup: | ||
- | * <code bash> | ||
- | / | ||
- | </ | ||
- | * Reasoning: | ||
- | * This allows for multiple disks (bricks) to be mounted under a Gluster volume and directory structure. | ||
- | * By creating an additional "/ | ||
- | |||
- | ==== Servers: Data Dir Config Steps ==== | ||
- | |||
- | - Install XFS utilities | ||
- | - <code bash>yum install xfsprogs</ | ||
- | - Create file system with GlusterFS recommended fileystem and inode size | ||
- | - <code bash> | ||
- | - Create directory structure that data will be stored in | ||
- | - <code bash> | ||
- | - /etc/fstab entry for mount point | ||
- | - <code bash>## XFS Mount Used for GlusterFS | ||
- | / | ||
- | - Mount data directory | ||
- | - <code bash> | ||
- | - Create top level " | ||
- | - <code bash> | ||
- | |||
- | ---- | ||
- | |||
- | ====== Installation ====== | ||
- | |||
- | Installation steps taken for the glusterfs servers and clients. | ||
- | |||
- | ===== Server Install ===== | ||
- | |||
- | On the Gluster Servers: | ||
- | - Add the gluster repo | ||
- | - <code bash> | ||
- | - Install glusterfs-server | ||
- | - <code bash>yum install glusterfs-server</ | ||
- | |||
- | - Start gluster daemon | ||
- | - <code bash> | ||
- | - Ensure gluster daemon is enabled on startup | ||
- | - <code bash> | ||
- | |||
- | ===== Client Install ===== | ||
- | |||
- | On the Gluster Clients: | ||
- | - Install Gluster repo | ||
- | - <code bash> | ||
- | - Install glusterfs and fuse | ||
- | - <code bash>yum install glusterfs glusterfs-fuse</ | ||
- | |||
- | ---- | ||
- | |||
- | ====== Configuration ====== | ||
- | |||
- | Configuration steps to setup gluster servers and clients. | ||
- | |||
- | ===== Server Config ===== | ||
- | |||
- | - Configure Trusted Pool | ||
- | - From server1 | ||
- | * <code bash> | ||
- | * Note: Once a trusted pool has been created, only existing pool members can probe new servers. | ||
- | * New servers cannot probe a pool member. | ||
- | - Create a GlusterFS Volume => **How the volume is created depicts whether data is distributed, | ||
- | * Note: A volume cannot be created at a mount point; it must be a subdirectory within the mount point | ||
- | * **Distributed(default)**: | ||
- | * <code bash> | ||
- | * **Replicated**: | ||
- | * <code bash> | ||
- | * **Distributed Replicated**: | ||
- | * <code bash> | ||
- | * More types: | ||
- | * [[http:// | ||
- | * [[http:// | ||
- | - Start the Gluster volume to make it usable by clients | ||
- | - <code bash> | ||
- | |||
- | ===== Client Config ===== | ||
- | |||
- | * Temporary mount | ||
- | * <code bash> | ||
- | * Persistent mount in /etc/fstab | ||
- | * <code bash>vim /etc/fstab | ||
- | ## Gluster mounts | ||
- | server1:/ | ||
- | |||
- | ======= Operation ======= | ||
- | |||
- | ===== Server Ops ===== | ||
- | |||
- | ==== Viewing Status ==== | ||
- | |||
- | * View peer status | ||
- | * <code bash> | ||
- | * View gluster volume info | ||
- | * <code bash> | ||
- | |||
- | ==== Managing ==== | ||
- | |||
- | * Re-balance Data | ||
- | * <code bash> | ||
- | * View re-balance status | ||
- | * <code bash> | ||
- | |||
- | * Daemon control | ||
- | * <code bash> | ||
- | |||
- | ==== Storage Pools ==== | ||
- | |||
- | * Add server to the trusted storage pool | ||
- | * <code bash> | ||
- | |||
- | * Remove server from trusted storage pool | ||
- | * <code bash> | ||
- | |||
- | ==== Security ==== | ||
- | |||
- | * Allow only clients from a specific network (networks comma separated for multiple) | ||
- | * <code bash> | ||
- | * Note: Gluster servers do not need to be added to this list. The servers will use an auto-generated username/ | ||
- | |||
- | ---- |