Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

prevent stat module error, and change kernel package name to fit OL7. #55

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ beegfs_distro_vars:
beegfs_repo_url: "https://www.beegfs.io/release/latest-stable/dists/beegfs-rhel7.repo"
beegfs_repo_key: "https://www.beegfs.io/release/latest-stable/gpg/RPM-GPG-KEY-beegfs"
beegfs_repo_file: "/etc/yum.repos.d/beegfs-rhel7.repo"
kernel_dev_pkg: "kernel-devel"
kernel_dev_pkg: "kernel-uek-devel"
rdma_dev_pkgs:
- "librdmacm"
- "libibmad"
Expand Down Expand Up @@ -57,7 +57,8 @@ beegfs_rdma: true

# Default filesystem options
beegfs_filesystem_opts: "-K -d su=128k,sw=8 -l version=2,su=128k -isize=512"
beegfs_mount_opts: "noatime,nodiratime,logbufs=8,logbsize=256k,largeio,inode64,swalloc,allocsize=131072k,nobarrier"
#beegfs_mount_opts: "noatime,nodiratime,logbufs=8,logbsize=256k,largeio,inode64,swalloc,allocsize=131072k,nobarrier"
beegfs_mount_opts: "noatime,nodiratime,logbufs=8,logbsize=256k,largeio,inode64,swalloc,allocsize=131072k"
beegfs_force_format: false
beegfs_fstype: "xfs"

Expand Down
2 changes: 1 addition & 1 deletion tasks/client.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
line: "{{ item.line }}"
when: item.condition
with_items:
- { line: "buildArgs=-j8 BEEGFS_OPENTK_IBVERBS=1", condition: "{{ beegfs_rdma | bool }}" }
- { line: "buildArgs=-j8 BEEGFS_OPENTK_IBVERBS=1 OFED_INCLUDE_PATH=/usr/src/ofa_kernel/default/include/", condition: "{{ beegfs_rdma | bool }}" }
- { line: "buildArgs=-j8", condition: "{{ not beegfs_rdma | bool }}" }
notify: Restart BeeGFS client service
become: true
Expand Down
4 changes: 2 additions & 2 deletions tasks/oss.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
- name: Fail if OSS device does not exist
fail:
msg: OSS device {{ oss_dev }} does not exist
when: not oss_dev_stat.exists
when: not oss_dev_stat.stat.exists
- name: Unmount storage device if beegfs_force_format is true
mount:
path: "{{ oss_path }}"
Expand All @@ -44,7 +44,7 @@
notify: Restart BeeGFS storage service
- name: Attempt to format if the device is not mounted or if beegfs_force_format is true
vars:
oss_dev_real: "{{ oss_dev_stat.lnk_source if oss_dev_stat.islnk else oss_dev_stat.path }}"
oss_dev_real: "{{ oss_dev_stat.stat.lnk_source if oss_dev_stat.stat.islnk else oss_dev_stat.stat.path }}"
filesystem:
dev: "{{ oss_dev }}"
fstype: "{{ beegfs_fstype }}"
Expand Down
2 changes: 1 addition & 1 deletion templates/beegfs-oss-tuning.sh.j2
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ do
echo mq-deadline > /sys/block/${dev}/queue/scheduler
echo 2048 > /sys/block/${dev}/queue/nr_requests
echo 4096 > /sys/block/${dev}/queue/read_ahead_kb
echo 256 > /sys/block/${dev}/queue/max_sectors_kb
# echo 256 > /sys/block/${dev}/queue/max_sectors_kb
fi
done
{% endif %}