Skip to content

Instantly share code, notes, and snippets.

@jeffreyroberts
Last active December 26, 2015 04:29
Show Gist options
  • Save jeffreyroberts/7093328 to your computer and use it in GitHub Desktop.
Save jeffreyroberts/7093328 to your computer and use it in GitHub Desktop.
A collection of linux raid/file system command snippets
# 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