Skip to content

Commit

Permalink
added new script to collect fc related info
Browse files Browse the repository at this point in the history
  • Loading branch information
gdha committed Nov 7, 2013
1 parent 317e75b commit f593fa8
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions usr/share/rear/rescue/GNU/Linux/27_fc_transport_info.sh
@@ -0,0 +1,10 @@
# collect output from production SAN disks

find /sys/class/fc_transport -follow -maxdepth 6 \( -name model -o -name vendor -o -name rev -name state -o -name model_name -o -name size -o -name node_name \) 2>/dev/null| egrep -v 'driver|rport|power|drivers|devices' | xargs grep '.' > $VAR_DIR/recovery/fc_transport.info >&2

if [[ -s $VAR_DIR/recovery/fc_transport.info ]]; then
Log "Collected the SAN disks info into $VAR_DIR/recovery/fc_transport.info"
# here we could some additional stuff or add executables or such
else
rm -f $VAR_DIR/recovery/fc_transport.info # if file is empty just removed it
fi

1 comment on commit f593fa8

@pcahyna
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@gdha what is the purpose of collecting this information? @rmetrich disabled it in PR #2034 because it can be apparently really slow and does not seem to be used for anything.

Please sign in to comment.