You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In Ansible a external_volumes variable will be available which is a string. This contains the storage items in the order the user selected it. The external_volumes var will be populated by the SRC system.
To get /home and /dcache-cache mounted from the right storage items we need to map the volume_id to a disk id.
For example first volume_id is ddc30b53-105e-4113-9379-c7d3ec9d90e5 then /dev/sdb1 is the first storage item selected.
ls -l /dev/disk/by-id/
lrwxrwxrwx 1 root root 9 Jan 6 15:09 scsi-SQEMU_QEMU_HARDDISK_ddc30b53-105e-4113-9379-c7d3ec9d90e5 -> ../../sdb
lrwxrwxrwx 1 root root 10 Jan 6 15:09 scsi-SQEMU_QEMU_HARDDISK_ddc30b53-105e-4113-9379-c7d3ec9d90e5-part1 -> ../../sdb1
The text was updated successfully, but these errors were encountered:
shell: echo {{ external_volumes }} | jq [0].volume_id | <grep in /dev/disk/by-id/ for right sdXX>register: home_devicemount:
src: home_devicetarget: home_dir
sverhoeven
changed the title
Use external_volumes resource pararmeter to map storage items to right home and cache
Use external_volumes resource parameter to map storage items to right home and cache
Feb 14, 2022
Define a plugin parameter like
In Ansible a external_volumes variable will be available which is a string. This contains the storage items in the order the user selected it. The external_volumes var will be populated by the SRC system.
To get /home and /dcache-cache mounted from the right storage items we need to map the volume_id to a disk id.
For example first volume_id is ddc30b53-105e-4113-9379-c7d3ec9d90e5 then /dev/sdb1 is the first storage item selected.
The text was updated successfully, but these errors were encountered: