Skip to content

Commit

Permalink
CORTX-34154: motr logs are not in compressed format (Seagate#2129)
Browse files Browse the repository at this point in the history
Problem:
Support bundle was not collecting the motr logs correctly. 
Earlier the logs were collected in tar format.
The issue was caused due to EOS-24059

Solution:
Modified the m0reportbug script to correctly print the size of disk usage of the specified directory

Signed-off-by: Swapnil Chaudhary <swapnil.chaudhary@seagate.com>
  • Loading branch information
swapnil-seagate authored Sep 5, 2022
1 parent 90ee92a commit c591338
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions utils/m0reportbug
Original file line number Diff line number Diff line change
Expand Up @@ -157,10 +157,12 @@ main() {
done

# Helps in debugging, If m0reportbug fails due to huge size
echo "du -sh $LIVE_CORE_DIR" >&2
du_output=`du -sh "$LIVE_CORE_DIR" 2>&1`
echo "$du_output" >&2
echo "The size of $LIVE_CORE_DIR is : $du_size"
if [ -d "$LIVE_CORE_DIR" ]; then
echo "du -sh $LIVE_CORE_DIR" >&2
du_output=`du -sh "$LIVE_CORE_DIR" 2>&1`
du_size=`echo $du_output | awk '{print $1}'`
echo "The size of $LIVE_CORE_DIR is : $du_size"
fi

# Create directory and put only latest files created into it.
TEMP_WORKSPACE="$LIVE_CORE_DIR/tmpspace/"
Expand Down

0 comments on commit c591338

Please sign in to comment.