分类: 服务器与存储
2015-04-22 16:46:30
原文位置:。 通过以下命令来设置 # gluster volume set 例如设置卷缓存大小命令: # gluster volume set test-volume performance.cache-size 256MB Set volume successful
Option | Description | Default Value | Available Options |
---|---|---|---|
auth.allow |
允许访问卷的ip地址 |
* (allow all) |
//只允许主机1.2访问testvol卷 #gluster volume set testvol allth.allow 192.168.1.12 //只允许1子网访问testvol卷 #gluster volume set testvol allth.allow 192.168.1.* |
auth.reject | 拒绝访问的卷的ip地址 | NONE (reject none) |
|
client.grace-timeout | 客户端在连接超时后,卷保持锁定的时间 | 10 | 10 - 1800 secs |
cluster.self-heal-window-size | 文件自我修复时,同时进行时所分割的最大块数 | 16 | 0 - 1025 blocks |
cluster.data-self-heal-algorithm |
指定自我修复的类型 1、full:整个文件从源到目的地进行复制 2、diff:差异的文件块进行同步 3、reset:默认值,当文件不存在与其中的任何一个子空间,或者存在一个0字节文件(由自我修复创建) 则对整个内容进行复制。这个要比使用diff来的快,因为diff需要对文件进行校验对后来决定是否要复制。 |
reset | full/diff/reset |
cluster.min-free-disk | 需要保留的空间百分比,默认为10%,对non-uniform bricks有用 | 10% | Percentage of required minimum free disk space |
cluster.stripe-block-size | 条带使用的块大小,默认128K字节 | 128 KB (for all files) | size in bytes |
cluster.self-heal-daemon | 自我修复进程,用于在复制的时候关闭自我修复进程 | On | On/Off |
cluster.ensure-durability | 确保数据和元数据在在brick突然关机时的不会损坏 | On | On/Off |
diagnostics.brick-log-level | brick日志级别 | INFO | DEBUG/WARNING/ERROR/CRITICAL/NONE/TRACE |
diagnostics.client-log-level | 客户端日志级别 | INFO | DEBUG/WARNING/ERROR/CRITICAL/NONE/TRACE |
diagnostics.latency-measurement | 延迟的文件操作相关的统计数据会被跟踪 | Off | On/Off |
diagnostics.dump-fd-stats | 文件操作相关的统计数据会被跟踪 | Off | On |
features.read-only | 使整个卷对客户端只读,包括NFS客户端 | Off | On/Off |
features.lock-heal | 当网络断开时,开启我修复锁定 | On | On/Off |
features.quota-timeout | 设置客户端缓存目录的有效时间 | 0 | 0 - 3600 secs |
geo-replication.indexing | 从主(master)到从(salve)自动同步文件系统中的变化 | Off | On/Off |
network.frame-timeout | 设定时间窗口,在设定的时间内,服务器没有响应则宣告无效 | 1800 (30 mins) | 1800 secs |
network.ping-timeout |
使用ping在对客户端检查,如果超时,服务器上代表客户端的所有资源将会被服务器释放 当重新连接时,之前所有必要的资源将会被恢复,此外锁定将会被回收,并更新锁定表,这个操作很耗资源,应经量避免。 |
42 Secs | 42 Secs |
nfs.enable-ino32 | 支持32位或不支持64位的NFG应用程序 | Off | On/Off |
nfs.volume-access | 访问子卷的访问类型 | read-write | read-write/read-only |
nfs.trusted-write | 如果开启,那么网络连接不稳定的客户端将不能发送提交 | Off | On/Off |
nfs.trusted-sync | 所有写入和提交请求将被视为异步 | Off | On/Off |
nfs.export-dir |
This option can be used to export specified comma separated subdirectories in the volume. The path must be an absolute path. Along with path allowed list of IPs/hostname can be associated with each subdirectory. If provided connection will allowed only from these IPs. Format: Where hostspec can be an IP address, hostname or an IP range in CIDR notation. Note: Care must be taken while configuring this option as invalid entries and/or unreachable DNS servers can introduce unwanted delay in all the mount calls. |
No sub directory exported. | Absolute path with allowed list of IP/hostname |
nfs.export-volumes | 启用/禁用输出整个卷,而如果使用nfs3.export-dir,允许设立子目录的出口 | On | On/Off |
nfs.rpc-auth-unix | 启用/禁用auth_unix认证类型。 | On | On/Off |
nfs.rpc-auth-null | 启用/禁用auth_null认证类型。不建议更改此选项的默认值。 | On | On/Off |
nfs.rpc-auth-allow |
允许一个逗号分隔的地址或主机名列表连接到服务器。默认情况下,所有的客户都是不允许的。 | Reject All | IP address or Host name |
nfs.rpc-auth-reject |
拒绝一个逗号分隔的地址或主机名列表连接到服务器。默认情况下,所有的客户都是不允许的。 | Reject All | IP address or Host name |
nfs.ports-insecure | 允许客户端连接的非指定端口。默认情况下只允许指定端口,全局设置只使用一个单一的端口。 | Off | On/Off |
nfs.addr-namelookup |
Turn-off name lookup for incoming client connections using this option. In some setups, the name server can take too long to reply to DNS queries resulting in timeouts of mount requests. Use this option to turn off name lookups during address authentication. Note, turning this off will prevent you from using hostnames in rpc-auth.addr.* filters. |
On | On/Off |
nfs.register-with-portmap |
For systems that need to run multiple NFS servers, you need to prevent more than one from registering with portmap service. Use this option to turn off portmap registration for Gluster NFS. |
On | On/Off |
nfs.port |
Use this option on systems that need Gluster NFS to be associated with a non-default port number. | NA | 38465- 38467 |
nfs.disable | Turn-off volume being exported by NFS | Off | On/Off |
performance.write-behind-window-size | Size of the per-file write-behind buffer. | 1MB | Write-behind cache size |
performance.io-thread-count | The number of threads in IO threads translator. | 16 | 0-65 |
performance.flush-behind |
If this option is set ON, instructs write-behind translator to perform flush in background, by returning success (or any errors, if any of previous writes were failed) to application even before flush is sent to backend filesystem. |
On | On/Off |
performance.cache-max-file-size |
Sets the maximum file size cached by the io-cache translator. Can use the normal size descriptors of KB, MB, GB,TB or PB (for example, 6GB). Maximum size uint64. |
2 ^ 64 -1 bytes | size in bytes |
performance.cache-min-file-size | Sets the minimum file size cached by the io-cache translator. Values same as "max" above | 0B | size in bytes |
performance.cache-refresh-timeout |
The cached data for a file will be retained till 'cache-refresh-timeout' seconds, after which data re-validation is performed. |
1s | 0-61 |
performance.cache-size | Size of the read cache. | 32 MB | size in bytes |
server.allow-insecure |
Allow client connections from unprivileged ports. By default only privileged ports are allowed. This is a global setting in case insecure ports are to be enabled for all exports using a single option. |
On | On/Off |
server.grace-timeout | Specifies the duration for the lock state to be maintained on the server after a network disconnection. | 10 | 10 - 1800 secs |
server.statedump-path | Location of the state dump file. | tmp directory of the brick | New directory path |
storage.health-check-interval |
Number of seconds between health-checks done on the filesystem that is used for the brick(s). Defaults to 30 seconds, set to 0 to disable. |
tmp directory of the brick | New directory path |