Last active
August 21, 2019 09:12
-
-
Save surajssd/51c5c7836c034110e113911bc729a73a to your computer and use it in GitHub Desktop.
Testing RAIDs
This file contains hidden or 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
#!/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