Linux RAID 0 creation

Previously, because the DB disk capacity was too small, the IO of the DB was insufficient when the application was under high load. Therefore, the disk capacity was expanded this time. In Amazon, there are some problems with disk expansion. It is not to say that the larger the disk capacity, the better the performance will be, and the EC2 instance itself will also have IO, bandwidth, etc. limitations. Therefore, when expanding the capacity again, you can expand the EBS to an appropriate size according to the type of the instance. http://docs.aws.amazon.com/ja_jp/AWSEC2/latest/UserGuide/EBSOptimized.html

For capacity expansion, the solution given by the customer is to use two pieces of EBS to make a raid0. The purpose is obvious.

1.mdadm --create --verbose /dev/md0 --level=0 --name=MY_RAID --raid-devices=2 /dev/xvdg /dev/xvdf
2.mkfs.ext4 -L MY_RAID /dev/md0
3.mkdir -p /mnt/raid
4.mount LABEL=MY_RAID /mnt/raid
5.cp /etc/fstab /etc/fstab.orig
6.vi fastab
append: LABEL=MY_RAID /mnt/raid ext4 defaults,nofail 0 2

http://docs.aws.amazon.com/ja_jp/AWSEC2/latest/UserGuide/raid-config.html

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326620742&siteId=291194637