k8s/roles/gpu_model_storage/tasks/partition.yml
2026-07-15 11:14:21 +03:00

18 lines
696 B
YAML

---
# The existing OS RAID1 partitions (boot, boot_efi, root) occupy the first
# ~34GB of each mirrored disk. Partition 5 uses the free space right after
# that, sized by gpu_model_storage_partition_size_gb, on every device listed
# in gpu_model_storage_devices — the partitions are then mirrored into a new
# mdadm RAID1 array in raid.yml.
- name: Partition | Create model storage partition (raid member) on {{ item }}
community.general.parted:
device: "{{ item }}"
number: 5
state: present
part_start: "34GB"
part_end: "{{ 34 + gpu_model_storage_partition_size_gb }}GB"
flags: [raid]
loop: "{{ gpu_model_storage_devices }}"
loop_control:
label: "{{ item }}"