Skip to content
This repository has been archived by the owner on Mar 30, 2023. It is now read-only.

Commit

Permalink
Merge pull request #60 from RSE-Cambridge/dne2
Browse files Browse the repository at this point in the history
set dne2 enable comand to only run on the mgs node
  • Loading branch information
JohnGarbutt authored Mar 12, 2019
2 parents d74ee0e + 4cc12ab commit 4f78c3a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
11 changes: 7 additions & 4 deletions fs-ansible/roles/lustre/tasks/mount.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
- mgs is defined
tags: [ 'never', 'start_mgs', 'create_mgs']


- name: Start MDTs
block:
- name: Create MDT mount dir
Expand All @@ -49,7 +48,12 @@
failed_when: "command_result.rc != 0 and ('is already mounted' not in command_result.stderr)"
changed_when: "command_result.rc == 0"
with_items: "{{ mdts.keys() }}"
when:
- mdts is defined
tags: [ 'never', 'start_mdts', 'create_mdt']

- name: DNE2
block:
- name: Enable DNE2 remote dir
command: "lctl set_param mdt.*.enable_remote_dir=1"
register: command_result
Expand All @@ -58,9 +62,8 @@
- name: Enable DNE2 all users
command: "lctl set_param mdt.*.enable_remote_dir_gid=-1"
when:
- mdts is defined
tags: [ 'never', 'start_mdts', 'create_mdt']

- mgs is defined
tags: [ 'never', 'start_mgs', 'create_mgs']

- name: Start OSTs
block:
Expand Down
2 changes: 0 additions & 2 deletions fs-ansible/roles/lustre/tasks/mount.yaml~

This file was deleted.

0 comments on commit 4f78c3a

Please sign in to comment.