map-osd-to-disktype v0.1, it works but haven't been tested extensively
This commit is contained in:
parent
1b30ab71b6
commit
6ecea763f9
1 changed files with 10 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue