Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
HPCasCode
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
hpc-team
HPCasCode
Commits
ad0b4c7b
Commit
ad0b4c7b
authored
7 years ago
by
Chris Hines
Browse files
Options
Downloads
Plain Diff
Merge branch 'gluster' into 'master'
Gluster See merge request
!135
Former-commit-id:
742032ba
parents
2e0c76fc
5c66255a
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
roles/gluster_server/tasks/main.yml
+5
-0
5 additions, 0 deletions
roles/gluster_server/tasks/main.yml
roles/gluster_volcreate/tasks/main.yml
+13
-1
13 additions, 1 deletion
roles/gluster_volcreate/tasks/main.yml
with
18 additions
and
1 deletion
roles/gluster_server/tasks/main.yml
+
5
−
0
View file @
ad0b4c7b
...
...
@@ -27,3 +27,8 @@
-
name
:
make brick dir
file
:
state=directory path="{{ brickmnt }}/brick"
sudo
:
true
-
name
:
set quorum ratio
command
:
"
gluster
volume
set
all
cluster.server-quorum-ratio
51%"
sudo
:
true
This diff is collapsed.
Click to expand it.
roles/gluster_volcreate/tasks/main.yml
+
13
−
1
View file @
ad0b4c7b
...
...
@@ -7,12 +7,23 @@
-
name
:
show server list
debug
:
var=server_list
-
name
:
"
Attemtp
to
fix
transaction
problem.
Modfy
ping-timeout
parameter
in
/etc/glusterfs/glusterd.vol"
replace
:
dest="/etc/glusterfs/glusterd.vol" regexp=" option ping-timeout 0" replace=" option ping-timeout 5"
become
:
true
become_user
:
root
-
name
:
restart gluster service
systemd
:
name=glusterd state=restarted daemon_reload=yes
become
:
true
become_user
:
root
-
name
:
probe peers
shell
:
"
gluster
peer
probe
{{
item
}}"
run_once
:
true
#
run_once: true
with_items
:
"
{{
(gluster_servers|difference([inventory_hostname]))
}}"
become
:
true
become_user
:
root
delegate_to
:
"
{{
gluster_servers[0]
}}"
-
name
:
create volume
gluster_volume
:
...
...
@@ -23,6 +34,7 @@
host
:
"
{{
inventory_hostname
}}"
state
:
present
sudo
:
true
ignore_errors
:
true
# run_once: true
delegate_to
:
"
{{
gluster_servers[0]
}}"
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment