Created
January 9, 2012 01:50
-
-
Save acidprime/1580533 to your computer and use it in GitHub Desktop.
Create Hardware RAID
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 | |
# configure RAIDs | |
echo yes | raidutil delete volume -n Vol-RS1 | |
echo yes | raidutil delete volume -n Vol-RS2 | |
echo yes | raidutil delete volume -n Vol-RS3 | |
raidutil delete raidset -n RS1 | |
raidutil delete raidset -n RS2 | |
raidutil delete raidset -n RS3 | |
raidutil createraidset -n "Raid5Set" -d 1,2,3 -r 5 | |
raidutil create volume -n "ServerHD" -r "Raid5Set" -s 100GB | |
raidutil create volume -n "Storage" -r "Raid5Set" -s all | |
# 100 GB | |
# 3.8 TB | |
#diskutil partitionDisk disk1 1 GPT HFS+ "ServerHD" 100% | |
#diskutil partitionDisk disk2 1 GPT HFS+ "Storage" 100% | |
#diskutil enableJournal /Volumes/ServerHD | |
#diskutil enableJournal /Volumes/Storage |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment