Skip to content

Commit ef5493c

Browse files
committed
Add r760 to the disk2_enable enable task
Signed-off-by: Marius Cornea <mcornea@redhat.com>
1 parent 3dd6a4f commit ef5493c

File tree

3 files changed

+15
-3
lines changed

3 files changed

+15
-3
lines changed

ansible/roles/create-inventory/tasks/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -255,11 +255,11 @@
255255
loop_control:
256256
index_var: idx
257257

258-
- name: Enable disk2_enable for r660, r650, r750, r730xd, and r930 with nvme0n1
258+
- name: Enable disk2_enable for r660, r650, r750, r760, r730xd, and r930 with nvme0n1
259259
set_fact:
260260
ocpinventory_hv_nodes: "{{ ocpinventory_hv_nodes[:idx] + [ocpinventory_hv_nodes[idx] | combine({'disk2_enable': true, 'disk2_device': 'nvme0n1'})] + ocpinventory_hv_nodes[idx + 1:] }}"
261261
when:
262-
- (item.pm_addr.split('.')[0]).split('-')[-1] in ['r650', 'r660', 'r750', 'r730xd', 'r740xd', 'r930']
262+
- (item.pm_addr.split('.')[0]).split('-')[-1] in ['r650', 'r660', 'r750', 'r760', 'r730xd', 'r740xd', 'r930']
263263
loop: "{{ ocpinventory_hv_nodes }}"
264264
loop_control:
265265
index_var: idx

ansible/roles/hv-setup-disk2/tasks/main.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,3 +45,15 @@
4545
loop:
4646
- "{{ disk2_mount_path }}/libvirt"
4747
- "{{ disk2_mount_path }}/libvirt/images"
48+
49+
- name: Get root logical volume VG and LV names
50+
shell: lvs --noheadings --nosuffix --units g -o vg_name,lv_name $(df / | tail -1 | awk '{print $1}')
51+
register: root_lv_info
52+
changed_when: false
53+
54+
- name: Extend root logical volume to maximum available space
55+
lvol:
56+
vg: "{{ root_lv_info.stdout_lines[0].split()[0] }}"
57+
lv: "{{ root_lv_info.stdout_lines[0].split()[1] }}"
58+
size: +100%FREE
59+
resizefs: true

ansible/vars/lab.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ hw_vm_counts:
230230
nvme0n1: 5
231231
r760:
232232
default: 4
233-
nvme0n1: 23
233+
nvme0n1: 30
234234

235235
# # Based on VM Size (8vCPU, 28GiB Memory, 120G Disk)
236236
# hw_vm_counts:

0 commit comments

Comments
 (0)