Skip to content

Commit

Permalink
Include /etc/fstab in log collection (awslabs#1836)
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeNorth authored and mebays committed Jul 26, 2024
1 parent 8453d66 commit 1e966cb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions log-collector-script/linux/eks-log-collector.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,7 @@ get_mounts_info() {
lvs > "${COLLECT_DIR}"/storage/lvs.txt
pvs > "${COLLECT_DIR}"/storage/pvs.txt
vgs > "${COLLECT_DIR}"/storage/vgs.txt
cp --force /etc/fstab "${COLLECT_DIR}"/storage/fstab.txt
mount -t xfs | awk '{print $1}' | xargs -I{} -- sh -c "xfs_info {}; xfs_db -r -c 'freesp -s' {}" > "${COLLECT_DIR}"/storage/xfs.txt
mount | grep ^overlay | sed 's/.*upperdir=//' | sed 's/,.*//' | xargs -n 1 timeout 75 du -sh | grep -v ^0 > "${COLLECT_DIR}"/storage/pod_local_storage.txt
ok
Expand Down

0 comments on commit 1e966cb

Please sign in to comment.