Last active
August 29, 2015 14:00
-
-
Save tkuchiki/11169741 to your computer and use it in GitHub Desktop.
Redhat 系 OS で RAID
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
# format /dev/sdb /dev/sdc disk | |
mdadm --create /dev/md0 --level=0 --raid-devices=2 /dev/sd[bc]1 | |
# mdadm --detail --scan >> /etc/mdadm.conf | |
mkfs.ext4 /dev/md0 | |
e2label /dev/md0 LABEL_NAME | |
# edit /etc/fstab | |
mkdir /data | |
mount -a | |
# deactivate array | |
mdadm --misc --stop /dev/md0 | |
# If the device contains a valid md superblock, the block is overwritten with zeros | |
mdadm --misc --zero-superbloc /dev/sd[bc]1 |
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
LABEL=LABEL_NAME /data ext4 defaults 0 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment