Configuring Raid on Cloud Servers

This guide is written with the following information assumed:

Currently running a Cloud Server.

2 or more additional Block storage drives have been added to the existing server.

Instructions work for both Raid 1 and Raid 0.

Please remember that Raid is not a backup!

In either case a good backup solution is still needed.

Steps:

  1. A). Raid 1 – mdadm –create /dev/md1 –level=1 –raid-devices=2 /dev/sdb /dev/sdc
  2. B). Raid 0 with 2 drives – mdadm –create /dev/md1 –level=0 –raid-devices=2 /dev/sdb /dev/sdc
  3. C). Raid 0 with 4 drives – mdadm –create /dev/md1 –level=0 –raid-devices=4 /dev/sdb /dev/sdc /dev/sdd /dev/sde
  4. pvcreate /dev/md1
  5. vgcreate data /dev/md1
  6. vgchange -a y data
  7. lvcreate -L1000 -n my_volume data
  8. mkfs.ext4 /dev/data/my_volume
  9. mkdir /mnt/data
  10. mount /dev/data/my_volume /mnt/data
  11. blkid
  12. vi /etc/fstab
  13. UUID=c3c46b4b-b406-41e9-ab64-25db9485bcfc /mnt/data ext4 defaults 0 2
  14. Done


Mohammed has written 63 articles

5 thoughts on “Configuring Raid on Cloud Servers

  1. I wanted to write you this little note so as to thank you the moment again for these exceptional tricks you have documented above. This has been really extremely open-handed of you to allow publicly exactly what a number of people would’ve offered for sale for an electronic book to get some cash for themselves, particularly since you could have done it if you ever considered necessary. The advice in addition served as the easy way to be sure that the rest have the identical desire the same as my own to realize a little more pertaining to this matter. I think there are a lot more enjoyable opportunities in the future for people who read carefully your site.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>