I ran into a related question while setting up HA with TrinityX v16 on Rocky 9.8. I wanted to share what I found while digging through the code, since it might help clarify this issue.
Looking at roles/trinity/shared-fs/tasks/main.yaml, the shared_fs_disks variable is only processed for type: 'drbd', type: 'iscsi', and type: 'direct'. There is no type: 'nfs' branch in this role (there's even a comment # more types can be added here).
Separately, roles/trinity/nfs-mounts/tasks/main.yml handles a different variable, nfs_mounts, which is combined with nfs_remote_mask (set to shared_fs_disks in controller.yml) and an nfs_use_mask/xmount flag. This role is invoked in controller.yml for trix_shared, trix_ohpc, trix_ha... but it re-exports these paths from the active controller (trix_ctrl_hostname) to both nodes — it doesn't appear to consume an externally defined NFS remote for trix_home/trix_easybuild/etc.
Given this, could you clarify:
What is the exact, supported syntax to put trix_home (or trix_easybuild/trix_images) on an external NFS server (not a controller-exported share) in an HA setup?
Does this need to go through nfs_mounts directly with a remote: pointing at the external NFS server, bypassing shared_fs_disks entirely?
Any pointer to a working example all.yml snippet for this scenario would be very helpful.
Regards
Peter
I ran into a related question while setting up HA with TrinityX v16 on Rocky 9.8. I wanted to share what I found while digging through the code, since it might help clarify this issue.
Looking at roles/trinity/shared-fs/tasks/main.yaml, the shared_fs_disks variable is only processed for type: 'drbd', type: 'iscsi', and type: 'direct'. There is no type: 'nfs' branch in this role (there's even a comment # more types can be added here).
Separately, roles/trinity/nfs-mounts/tasks/main.yml handles a different variable, nfs_mounts, which is combined with nfs_remote_mask (set to shared_fs_disks in controller.yml) and an nfs_use_mask/xmount flag. This role is invoked in controller.yml for trix_shared, trix_ohpc, trix_ha... but it re-exports these paths from the active controller (trix_ctrl_hostname) to both nodes — it doesn't appear to consume an externally defined NFS remote for trix_home/trix_easybuild/etc.
Given this, could you clarify:
What is the exact, supported syntax to put trix_home (or trix_easybuild/trix_images) on an external NFS server (not a controller-exported share) in an HA setup?
Does this need to go through nfs_mounts directly with a remote: pointing at the external NFS server, bypassing shared_fs_disks entirely?
Any pointer to a working example all.yml snippet for this scenario would be very helpful.
Regards
Peter