map-osd-to-disktype v0.2, formatting output
This commit is contained in:
parent
6ecea763f9
commit
9c567bb057
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue