diff --git a/map-osd-to-disktype b/map-osd-to-disktype index 51f850e..66e0f28 100755 --- a/map-osd-to-disktype +++ b/map-osd-to-disktype @@ -15,3 +15,13 @@ for MOUNT in $(cat /tmp/list_osd_mountpoint.out | awk '{print $2}' | sed 's/[0-9 # Gets the hardware types for the Megacli mappings for megacli_mappings in $(cat /tmp/megacli-mappings.out); do awk '/Disk info/,0' /tmp/megaclisas-status.out | grep $megacli_mappings | cut -d '|' -f 3 >> /tmp/disk_types.out; done + +# Formatting, to get the local $OSDTYPE osd-s +cat /tmp/list_osd_mountpoint.out | awk '{print $1}' > /tmp/local_osds + +# Combine and display the outputs +paste /tmp/local_osds /tmp/disk_types.out + + +# Cleanup *.out files in the temp dir +rm /tmp/*.out