Comments (5)
@herrmie TL;DR - you'll need to re-code
In v1.3.0 feature added sap_storage_setup: Overhaul/Rewrite with breaking changes
. Prior to this, the Ansible Role was extremely incomplete (for example accidental first day of coding dev notes left in the codebase)
The storage setup Ansible Role is now able to parse and setup block storage or file storage (NFS) e.g. SAP NWAS (ABAP/JAVA) for High Availability
The LVM LV is set by default to 100%, and the other LVM operators are optional in the definition, for example:
sap_storage_setup_definition:
- name: hana_data
mountpoint: /hana/data
disk_size: 384 # size in GB, integer
filesystem_type: xfs # default: xfs
#lvm_lv_name: # default: lv_<element_name>
#lvm_lv_stripes: 2 # default: null, number of disks to stripe over
#lvm_lv_stripe_size: 128K # default: 64K, defined by the OS. Akin to Virtualized Block Size
#lvm_vg_name: # default: vg_<element name>
#lvm_vg_options: # default: none, additional LVM VG options as string in LVM options syntax (e.g. "--dataalignment XX ..." to override MiB offset from disk start before first LVM VG Physical Extent)
#lvm_vg_physical_extent_size: # default: 4, uses 4 MiB default and difficult to change once set. Akin to Physical Block Size
#lvm_pv_device: # default: discovered ansible_devices matching the target size
#lvm_pv_options: # default: none, additional LVM PV options as string in LVM options syntax (e.g. "--dataalignment XX ..." to override MiB offset from disk start before first LVM PV Physical Extent)
#nfs_path: # subdirectory path on the NFS server
#nfs_server: # NFS server and parent directory (e.g. nfs.com:/share1). default: {{ sap_storage_setup_nfs_server }}
#nfs_filesystem_type: # default: {{ sap_storage_setup_nfs_filesystem_type }}
#nfs_mount_options: # default: {{ sap_storage_setup_nfs_mount_options }}
#swap_path:
from community.sap_install.
I think @herrmie want to define the disks and uses then the define size which are used for each mount point manually as an option. Like:
sap_storage_setup_definition:
- name: hana_data
mountpoint: /hana/data
disk_size: 38
filesystem_type: xfs
***disk: /dev/sdb***
from community.sap_install.
Correct @rainerleber.
@sean-freeman, because if I want to add 2 LVMs to one disk, that is not possible with the code. And also not possible is what I said above: I want to have e.g. 20 GB in the vg for later extensions. You know what I mean?
from community.sap_install.
@herrmie By best practice any SAP mountpoints should really be a 1:1:1
ratio to preserve extensibility and ease of long-term maintenance
- 1 mountpoint (e.g. hana/data)
- 1 LVM LG
- 1 LVM VG
- 1..n LVM PV
I can fully understand for any on-premise physical hardware though, this could be far less efficient. For Virtual Machines or using SAN LUNs, the principle above should hold?
In the Ansible Role....
The ability to overwrite LVM LV static as 100% of the LVM VG can be added to backlog - but would be a very low priority given the existing complexity of trying to scope control storage setup variance. This Ansible Role required extensive testing to scan volumes, find available, and handle all setup - and still remain idempotent. A line has to be drawn somewhere.
If you need to go down this road (Multi LVM LG for 1 LVM VG) immediately, truthfully it will be easier to customize your own specific scenario by looking at the underlying Ansible Modules used for the block/local storage within this Ansible Role:
community.general.lvg
community.general.lvol
community.general.filesystem
ansible.posix.mount
from community.sap_install.
Documentation resolved by 67f7376
Closing GH Issue
from community.sap_install.
Related Issues (20)
- sap_hana_preconfigure/RHEL: Set net.core.somaxconn only for RHEL <= 8.7
- sap_general_preconfigure: The strict DNS check enforcement of PR 765 causes failures in certain cloud environments HOT 4
- sap_hana_install : SAP HANA Checks - Fail if the user 'sidadm' exists HOT 2
- sap_hana_install: Do not fail if sap_hana_install_common_master_password is not set. HOT 1
- sap_hana_preconfigure/SLES: sap_hana_preconfigure_update needs validation/wait HOT 1
- sap_swpm: unhandled exception when using sap_swpm_swpm_observer_mode... HOT 1
- sap_hana_preconfigure/RHEL: tsx kernel parameters not set for RHEL9 HOT 2
- sap_hana/sap_swpm: Linux Special Characters HOT 2
- sap_storage_setup: README.MD example is wrong, please fix it.
- sap_hana_install: Use polling for hdblcm HOT 1
- collection: Fix 'yaml[octal-values]' HOT 1
- sap_hana_preconfigure/RHEL/NetApp: Sync with SAP note 3024346 v.10 HOT 2
- sap_hana_preconfigure/RHEL/NetApp: Ensure two NetApp related kernel parameters are not present in file sap_hana.conf
- sap_hana_preconfigure/SLES: Remove default saptune version in readme
- sap_hana_preconfigure/SLES: Update azure override readme and conditional
- sap_swpm: Reduce the amount of empty lines in inifile.params HOT 1
- collection: Synchronize all .yamllint.yml files HOT 1
- sap_general_preconfigure/RHEL: Add FQCN to include_role tasks HOT 5
- sap_ha_pacemaker_cluster: Azure health-azure-events, pcmk_host_map
- *preconfigure: Add initial code for RHEL 10
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from community.sap_install.