Skip to content

Instantly share code, notes, and snippets.

@demofly
Created March 25, 2015 06:56
Show Gist options
  • Save demofly/3fb0ab7017edaf86c6c5 to your computer and use it in GitHub Desktop.
Save demofly/3fb0ab7017edaf86c6c5 to your computer and use it in GitHub Desktop.
imp02 /etc/glusterfs/glusterfsd.vol
### Export volume
volume mp-sas
type storage/posix
option directory /mnt/glusterfsd/SAS-DFS
end-volume
volume mp-sata
type storage/posix
option directory /mnt/glusterfsd/SATA-DFS
end-volume
### Add fcntl locking support
volume mp-sas-locks
type features/locks
subvolumes mp-sas
end-volume
volume mp-sata-locks
type features/locks
subvolumes mp-sata
end-volume
### Add IO-threads add asynchronous (background) file system operations
volume mp-sas-io-threads
type performance/io-threads
option thread-count 8 # default is 16
subvolumes mp-sas-locks
end-volume
volume mp-sata-io-threads
type performance/io-threads
option thread-count 8 # default is 16
subvolumes mp-sata-locks
end-volume
### Add readahead feature
volume mp-sas-readahead
type performance/read-ahead
subvolumes mp-sas-io-threads
end-volume
volume mp-sata-readahead
type performance/read-ahead
subvolumes mp-sata-io-threads
end-volume
### Add IO-Cache feature
volume mp-sas-iocache
type performance/io-cache
option cache-size 128MB
option priority *.*php:3,*.html:2,*:1 # default is '*:0'
option cache-timeout 2
subvolumes mp-sas-readahead
end-volume
volume mp-sata-iocache
type performance/io-cache
option cache-size 128MB
option priority *.*php:3,*.html:2,*:1 # default is '*:0'
option cache-timeout 2
subvolumes mp-sata-readahead
end-volume
### Add writeback feature
volume mp-sas1
type performance/write-behind
option cache-size 16MB # default is 128Kb = aggregate-size
subvolumes mp-sas-iocache
end-volume
volume mp-sata1
type performance/write-behind
option cache-size 16MB # default is 128Kb = aggregate-size
subvolumes mp-sata-iocache
end-volume
### Add network serving capability to above brick.
volume mp-data-server
type protocol/server
option transport-type tcp
option transport.socket.listen-port 49994
subvolumes mp-sas1 mp-sata1
# NOTE: Access to any volume through protocol/server is denied by
# default. You need to explicitly grant access through # "auth"
# option.
option auth.addr.mp-sas1.allow 127.0.0.1,213.133.111.249,176.9.3.15
option auth.addr.mp-sata1.allow 127.0.0.1,213.133.111.249,176.9.3.15
option auth.login.MP.password sPOUwe74w38sdkl
end-volume
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment