From 9c567bb057fd7712fd1f9835cbe171dd0b4b87a0 Mon Sep 17 00:00:00 2001 From: llnu Date: Wed, 27 May 2020 12:56:25 +0200 Subject: [PATCH] map-osd-to-disktype v0.2, formatting output --- map-osd-to-disktype | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/map-osd-to-disktype b/map-osd-to-disktype index 66e0f28..552804a 100755 --- a/map-osd-to-disktype +++ b/map-osd-to-disktype @@ -17,10 +17,10 @@ for MOUNT in $(cat /tmp/list_osd_mountpoint.out | awk '{print $2}' | sed 's/[0-9 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 +for osd_num in $(cat /tmp/list_osd_mountpoint.out | awk '{print $1}'); do echo osd-$osd_num >> /tmp/local_osds.out; done # Combine and display the outputs -paste /tmp/local_osds /tmp/disk_types.out +paste /tmp/local_osds.out /tmp/disk_types.out # Cleanup *.out files in the temp dir