Skip to content

Commit 9d643bc

Browse files
Merge pull request #682 from mcornea/r760_disk2
Add r760 to the disk2_enable enable task
2 parents 9e67ab0 + ef5493c commit 9d643bc

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
@@ -292,11 +292,11 @@
292292
loop_control:
293293
index_var: idx
294294

295-
- name: Enable disk2_enable for r660, r650, r750, r730xd, and r930 with nvme0n1
295+
- name: Enable disk2_enable for r660, r650, r750, r760, r730xd, and r930 with nvme0n1
296296
set_fact:
297297
ocpinventory_hv_nodes: "{{ ocpinventory_hv_nodes[:idx] + [ocpinventory_hv_nodes[idx] | combine({'disk2_enable': true, 'disk2_device': 'nvme0n1'})] + ocpinventory_hv_nodes[idx + 1:] }}"
298298
when:
299-
- (item.pm_addr.split('.')[0]).split('-')[-1] in ['r650', 'r660', 'r750', 'r730xd', 'r740xd', 'r930']
299+
- (item.pm_addr.split('.')[0]).split('-')[-1] in ['r650', 'r660', 'r750', 'r760', 'r730xd', 'r740xd', 'r930']
300300
loop: "{{ ocpinventory_hv_nodes }}"
301301
loop_control:
302302
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)