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

sap_hana_preconfigure: Add Support for RHV/oVirt HANA VMs (lsr/sap-hana-preconfigure issue #64) #14

Open
berndfinger opened this issue Jan 28, 2022 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@berndfinger
Copy link
Member

Copy of linux-system-roles/sap-hana-preconfigure#64 (comment), reported by https://github.com/Klaas-:

Hi,
I think we should add support for RHV/oVirt to this role. They should be configured according to the red hat guide: https://access.redhat.com/sites/default/files/attachments/sap_hana_on_rhv_kvm_4.2_resource_guide_1.pdf

If I am not mistaken the only thing missing is the custom tuned profile: sap-hana-kvm-guest (maybe it would be a better idea to get that profile into the tuned packages and just activate it here)

@berndfinger berndfinger added the enhancement New feature or request label Jan 28, 2022
@berndfinger berndfinger self-assigned this Jan 28, 2022
@berndfinger
Copy link
Member Author

Copy of linux-system-roles/sap-hana-preconfigure#64 (comment) (comment by https://github.com/Klaas-):

Something along those lines:

- name: sap hana kvm tuned setup
  block:
    - name: Create sap-hana-kvm-guest tuned profile dir
      file:
        path: /usr/lib/tuned/sap-hana-kvm-guest
        state: directory
        owner: root
        group: root
        mode: '0755'

    - name: Create sap-hana-kvm-guest tuned profile
      copy:
        src: sap-hana-kvm-guest_tuned.conf
        dest: /usr/lib/tuned/sap-hana-kvm-guest/tuned.conf
        owner: root
        group: root
        mode: 0644

    - name: Create sap-hana-kvm-guest tuned profile haltpoll script
      copy:
        src: sap-hana-kvm-guest_haltpoll.sh
        dest: /usr/lib/tuned/sap-hana-kvm-guest/haltpoll.sh
        owner: root
        group: root
        mode: 0744
  when: ansible_system_vendor == 'oVirt'

- name: set tuned profile name
  set_fact:
    hana_tuned_profile: "{{ 'sap-hana-kvm-guest' if ansible_system_vendor == 'oVirt' else 'sap-hana' }}"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant