Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added new script to collect fc related info
- Loading branch information
Showing
1 changed file
with
10 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
f593fa8
There was a problem hiding this comment.
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.