Skip to content

Instantly share code, notes, and snippets.

@egeneralov
Created February 20, 2022 21:06
Show Gist options
  • Save egeneralov/46d918389a0f1fb6b58fdf97da1e95af to your computer and use it in GitHub Desktop.
Save egeneralov/46d918389a0f1fb6b58fdf97da1e95af to your computer and use it in GitHub Desktop.
#!/bin/bash -xe
for disk in /dev/sd{c,d,e,f}; do
sgdisk \
-og \
-N 1 \
-c 1:"r0" \
-t 1:fd00 \
"${disk}"
done
mdadm --create /dev/md128 --level=0 --raid-devices=4 --name r0 --assume-clean /dev/sd{c,d,e,f}1
mkfs.xfs -m rmapbt=1 -m bigtime=1 -L r0 -f -K /dev/md128
@egeneralov
Copy link
Author

UUID=aace1bdf-28e0-4851-be25-0a87c4677288 /data xfs rw,relatime,attr2,inode64,logbufs=8,logbsize=32k,noquota 0 2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment