Skip to content

Conversation

@ThiloSolbrig
Copy link
Contributor

In roles/oraswdb_install/tasks/19.3.0.0.yml asserting swap memory erroneously fails, though 16GB swap are configured. For any reason, on systems with 16GB swap, effective amount of swap is 16383M instead of 16384M.

# lvdisplay /dev/vg_sys/swap 
  --- Logical volume ---
  LV Path                /dev/vg_sys/swap
  LV Name                swap
  VG Name                vg_sys
  LV UUID                bSDIpB-v8Lv-eJvS-UcrM-X6sM-MxuM-a7FWyc
  LV Write Access        read/write
  LV Creation host, time localhost.localdomain, 2025-10-17 11:32:30 +0200
  LV Status              available
  # open                 1
  LV Size                16.00 GiB <---
  Current LE             4096
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           252:1

# free -m
               total        used        free      shared  buff/cache   available
Mem:           15666       14261        2009         124        2212        1405
Swap:          16383 <---   1797       14586

Although swap would be reflected correctly, the assert would fail too because it expects more than 16 GB swap (>16384, not >=16384).
To make this a bit more customizable, I introduced a variable orahost_min_swap_mb to replace the hard coded limit; and changed the comparison from > to >=

@Rendanic Rendanic added this to the 4.14 milestone Dec 1, 2025
@Rendanic Rendanic merged commit edb9e5a into oravirt:master Dec 1, 2025
6 checks passed
@ThiloSolbrig ThiloSolbrig deleted the orahost_min_swap_mb branch December 1, 2025 13:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants