Skip to content

Instantly share code, notes, and snippets.

@surajssd
Last active August 21, 2019 09:12
Show Gist options
  • Save surajssd/51c5c7836c034110e113911bc729a73a to your computer and use it in GitHub Desktop.
Save surajssd/51c5c7836c034110e113911bc729a73a to your computer and use it in GitHub Desktop.
Testing RAIDs
#!/bin/bash
set -e
echo 'In `cluster.tf` file:'
echo
echo '
```tf
```
'
echo 'On the hosts we see, RAID devices:'
echo
echo '```console'
echo "# cat /proc/mdstat"
cat /proc/mdstat
echo '```'
echo
echo
echo 'disks:'
echo
echo '```console'
echo "# fdisk -l | grep md1"
fdisk -l | grep md1
echo '```'
echo
echo
echo '```console'
echo "# df -HT | grep md"
echo "Filesystem Type Size Used Avail Use% Mounted on"
df -HT | grep md
echo '```'
echo
echo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment