Last active
December 26, 2015 04:29
-
-
Save jeffreyroberts/7093328 to your computer and use it in GitHub Desktop.
A collection of linux raid/file system command snippets
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
# How to assemble raid device | |
mdadm --create --verbose /dev/md128 --level=1 --raid-devices=2 /dev/xvdm /dev/xvdn | |
# Make file system | |
mkfs -t xfs /dev/md128 | |
# How to re-assemble | |
mdadm --assemble --verbose /dev/md128 /dev/xvdm /dev/xvdn | |
# Get UUID | |
file -s /dev/xvda1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment