134 captures
01 Dec 2013 - 10 Feb 2026
Jul AUG Sep
25
2019 2020 2021
success
fail

About this capture

COLLECTED BY

Organization: Internet Archive

The Internet Archive discovers and captures web pages through many different web crawls. At any given time several distinct crawls are running, some for months, and some every day or longer. View the web archive through the Wayback Machine.

Collection: Live Web Proxy Crawls

Content crawled via the Wayback Machine Live Proxy mostly by the Save Page Now feature on web.archive.org.

Liveweb proxy is a component of Internet Archive’s wayback machine project. The liveweb proxy captures the content of a web page in real time, archives it into a ARC or WARC file and returns the ARC/WARC record back to the wayback machine to process. The recorded ARC/WARC file becomes part of the wayback machine in due course of time.
TIMESTAMPS

The Wayback Machine - http://web.archive.org/web/20200825063524/https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/raid-config.html
 



<span class="latin" style="width:19px;height:19px;">R</span><span class="latin" style="width:19px;height:19px;">A</span><span class="latin" style="width:19px;height:19px;">I</span><span class="latin" style="width:19px;height:19px;">D</span><span class="latin" style="display:block;width:19px;height:19px;"> </span><span class="latin" style="width:19px;height:19px;">C</span><span class="latin" style="width:19px;height:19px;">o</span><span class="latin" style="width:19px;height:19px;">n</span><span class="latin" style="width:19px;height:19px;">f</span><span class="latin" style="width:19px;height:19px;">i</span><span class="latin" style="width:19px;height:19px;">g</span><span class="latin" style="width:19px;height:19px;">u</span><span class="latin" style="width:19px;height:19px;">r</span><span class="latin" style="width:19px;height:19px;">a</span><span class="latin" style="width:19px;height:19px;">t</span><span class="latin" style="width:19px;height:19px;">i</span><span class="latin" style="width:19px;height:19px;">o</span><span class="latin" style="width:19px;height:19px;">n</span><span class="latin" style="display:block;width:19px;height:19px;"> </span><span class="latin" style="width:19px;height:19px;">o</span><span class="latin" style="width:19px;height:19px;">n</span><span class="latin" style="display:block;width:19px;height:19px;"> </span><span class="latin" style="width:19px;height:19px;">L</span><span class="latin" style="width:19px;height:19px;">i</span><span class="latin" style="width:19px;height:19px;">n</span><span class="latin" style="width:19px;height:19px;">u</span><span class="latin" style="width:19px;height:19px;">x</span><span class="latin" style="display:block;width:19px;height:19px;"> </span><span class="latin" style="width:19px;height:19px;">-</span><span class="latin" style="display:block;width:19px;height:19px;"> </span><span class="latin" style="width:19px;height:19px;">A</span><span class="latin" style="width:19px;height:19px;">m</span></span><span class="tktr-gyo" style="height:640px;margin:0 0 180px 22px;font-size:19px;_width:19px;/width:19px;"><span class="latin" style="width:19px;height:19px;">a</span><span class="latin" style="width:19px;height:19px;">z</span><span class="latin" style="width:19px;height:19px;">o</span><span class="latin" style="width:19px;height:19px;">n</span><span class="latin" style="display:block;width:19px;height:19px;"> </span><span class="latin" style="width:19px;height:19px;">E</span><span class="latin" style="width:19px;height:19px;">l</span><span class="latin" style="width:19px;height:19px;">a</span><span class="latin" style="width:19px;height:19px;">s</span><span class="latin" style="width:19px;height:19px;">t</span><span class="latin" style="width:19px;height:19px;">i</span><span class="latin" style="width:19px;height:19px;">c</span><span class="latin" style="display:block;width:19px;height:19px;"> </span><span class="latin" style="width:19px;height:19px;">C</span><span class="latin" style="width:19px;height:19px;">o</span><span class="latin" style="width:19px;height:19px;">m</span><span class="latin" style="width:19px;height:19px;">p</span><span class="latin" style="width:19px;height:19px;">u</span><span class="latin" style="width:19px;height:19px;">t</span><span class="latin" style="width:19px;height:19px;">e</span><span class="latin" style="display:block;width:19px;height:19px;"> </span><span class="latin" style="width:19px;height:19px;">C</span><span class="latin" style="width:19px;height:19px;">l</span><span class="latin" style="width:19px;height:19px;">o</span><span class="latin" style="width:19px;height:19px;">u</span><span class="latin" style="width:19px;height:19px;">d</span>  


AWSDocumentationAmazon EC2User Guide for Linux Instances

RAID Configuration OptionsCreating a RAID Array on LinuxCreating Snapshots of Volumes in a RAID Array


RAID Configuration on Linux



With Amazon EBS, you can use any of the standard RAID configurations that you can  use with a  traditional bare metal server, as long as that particular RAID configuration is supported  by  the operating system for your instance. This is because all RAID is accomplished at  the  software level. For greater I/O performance than you can achieve with a single volume,  RAID  0 can stripe multiple volumes together; for on-instance redundancy, RAID 1 can mirror  two  volumes together.  

Amazon EBS volume data is replicated across multiple servers in an Availability Zone  to prevent  the loss of data from the failure of any single component. This replication makes  Amazon EBS  volumes ten times more reliable than typical commodity disk drives. For more information,  see Amazon EBS Availability and Durability in the Amazon EBS product detail pages.  


Note


You should avoid booting from a RAID volume. Grub is typically installed on only  one device in a RAID array, and if one of the mirrored devices fails, you may be  unable to boot the operating system.  



If you need to create a RAID array on a Windows instance, see RAID Configuration on Windows in the  Amazon EC2 User Guide for Windows Instances.  


Contents


RAID Configuration Options

Creating a RAID Array on Linux

Creating Snapshots of Volumes in a RAID Array
 

RAID Configuration Options


The following table compares the common RAID 0 and RAID 1 options.


Configuration Use Advantages Disadvantages

RAID 0

When I/O performance is more important than fault tolerance; for example, as in a heavily used database (where data replication is already set up separately).

I/O is distributed across the volumes in a stripe. If you add a volume, you get the straight addition of throughput and IOPS.

Performance of the stripe is limited to the worst performing volume in the set. Loss of a single volume results in a complete data loss for the array.

RAID 1

When fault tolerance is more important than I/O performance; for example, as in a critical application.

Safer from the standpoint of data durability.

Does not provide a write performance improvement; requires more Amazon EC2 to Amazon EBS bandwidth than non-RAID configurations because the data is written to multiple volumes simultaneously.





Important


RAID 5 and RAID 6 are not recommended for Amazon EBS because the parity write  operations of these RAID modes consume some of the IOPS available to your volumes.  Depending on the configuration of your RAID array, these RAID modes provide 20-30%  fewer usable IOPS than a RAID 0 configuration. Increased cost is a factor with these  RAID modes as well; when using identical volume sizes and speeds, a 2-volume RAID  0  array can outperform a 4-volume RAID 6 array that costs twice as much. 



Creating a RAID 0 array allows you to achieve a higher level of performance for a  file  system than you can provision on a single Amazon EBS volume. A RAID 1 array offers  a "mirror"  of your data for extra redundancy. Before you perform this procedure, you need to  decide  how large your RAID array should be and how many IOPS you want to provision.  

The resulting size of a RAID 0 array is the sum of the sizes of the volumes within  it,  and the bandwidth is the sum of the available bandwidth of the volumes within it.  The  resulting size and bandwidth of a RAID 1 array is equal to the size and bandwidth  of the  volumes in the array. For example, two 500 GiB Amazon EBS io1 volumes with 4,000  provisioned IOPS each will create a 1000 GiB RAID 0 array with an available bandwidth  of  8,000 IOPS and 1,000 MiB/s of throughput or a 500 GiB RAID 1 array with an available  bandwidth of 4,000 IOPS and 500 MiB/s of throughput.  

This documentation provides basic RAID setup examples. For more information about  RAID  configuration, performance, and recovery, see the Linux RAID Wiki at https://raid.wiki.kernel.org/index.php/Linux_Raid.  

Creating a RAID Array on Linux


Use the following procedure to create the RAID array. Note that you can get directions  for Windows instances from Creating a RAID Array on Windows in the  Amazon EC2 User Guide for Windows Instances.  


To create a RAID array on Linux



Create the Amazon EBS volumes for your array. For more information, see Creating an Amazon EBS volume.  


Important


Create volumes with identical size and IOPS performance values for  your array. Make sure you do not create an array that exceeds the  available bandwidth of your EC2 instance. For more information, see  Amazon EBSoptimized instances.  





Attach the Amazon EBS volumes to the instance that you want to host the array. For  more information, see Attaching an Amazon EBS volume to an instance.  



Use the mdadm command to create a logical RAID device from  the newly attached Amazon EBS volumes. Substitute the number of volumes in your array  for number_of_volumes and the device names for each  volume in the array (such as /dev/xvdf) for  device_name. You can also substitute  MY_RAID with your own unique name for the array.  


Note


You can list the devices on your instance with the  lsblk command to find the device names.  



(RAID 0 only) To create a RAID 0 array, execute the following command  (note the --level=0 option to stripe the array):  
[ec2-user ~]$ sudo mdadm --create --verbose /dev/md0 --level=0 --name=MY_RAID --raid-devices=number_of_volumes device_name1 device_name2

(RAID 1 only) To create a RAID 1 array, execute the following command (note the  --level=1 option to mirror the array):  
[ec2-user ~]$ sudo mdadm --create --verbose /dev/md0 --level=1 --name=MY_RAID --raid-devices=number_of_volumes device_name1 device_name2



Allow time for the RAID array to initialize and synchronize. You can track  the progress of these operations with the following command:  
[ec2-user ~]$ sudo cat /proc/mdstat

The following is example output:
 
Personalities : [raid1] md0 : active raid1 xvdg[1] xvdf[0] 20955008 blocks super 1.2 [2/2] [UU] [=========>...........] resync = 46.8% (9826112/20955008) finish=2.9min speed=63016K/sec

In general, you can display detailed information about your RAID array with  the following command:  
[ec2-user ~]$ sudo mdadm --detail /dev/md0

The following is example output:
 
/dev/md0: Version : 1.2 Creation Time : Mon Jun 27 11:31:28 2016 Raid Level : raid1 Array Size : 20955008 (19.98 GiB 21.46 GB) Used Dev Size : 20955008 (19.98 GiB 21.46 GB) Raid Devices : 2 Total Devices : 2 Persistence : Superblock is persistent Update Time : Mon Jun 27 11:37:02 2016 State : clean ... ... ... Number Major Minor RaidDevice State 0 202 80 0 active sync /dev/sdf 1 202 96 1 active sync /dev/sdg



Create a file system on your RAID array, and give that file system a label to  use when you mount it later. For example, to create an ext4  file system with the label MY_RAID, execute the  following command:  
[ec2-user ~]$ sudo mkfs.ext4 -L MY_RAID /dev/md0

Depending on the requirements of your application or the limitations of your operating  system, you can use a different file system type, such as ext3 or XFS (consult  your file system documentation for the corresponding file system creation  command).  



To ensure that the RAID array is reassembled automatically on boot, create a  configuration file to contain the RAID information:  
[ec2-user ~]$ sudo mdadm --detail --scan | sudo tee -a /etc/mdadm.conf


Note


If you are using a Linux distribution other than Amazon Linux, this file may need  to be placed in different location. For more information, consult  man mdadm.conf on your Linux system..  





Create a new ramdisk image to properly preload the block device modules for  your new RAID configuration:  
[ec2-user ~]$ sudo dracut -H -f /boot/initramfs-$(uname -r).img $(uname -r)



Create a mount point for your RAID array.
 
[ec2-user ~]$ sudo mkdir -p /mnt/raid



Finally, mount the RAID device on the mount point that you created:
 
[ec2-user ~]$ sudo mount LABEL=MY_RAID /mnt/raid

Your RAID device is now ready for use.
 


(Optional) To mount this Amazon EBS volume on every system reboot, add an entry for  the device to the /etc/fstab file.  



Create a backup of your /etc/fstab file that you  can use if you accidentally destroy or delete this file while you are  editing it.  
[ec2-user ~]$ sudo cp /etc/fstab /etc/fstab.orig



Open the /etc/fstab file using your favorite text  editor, such as nanoorvim.  



Comment out any lines starting with "UUID=" and, at the  end of the file, add a new line for your RAID volume using the following  format:  
device_label mount_point file_system_type fs_mntops fs_freq fs_passno

The last three fields on this line are the file system mount options, the  dump frequency of the file system, and the order of file system checks  done at boot time. If you don't know what these values should be, then  use the values in the example below for them (defaults,nofail 0  2). For more information about  /etc/fstab entries, see the  fstab manual page (by entering man  fstab on the command line). For example, to mount the ext4  file system on the device with the label MY_RAID at  the mount point /mnt/raid, add the following entry  to /etc/fstab.  


Note


If you ever intend to boot your instance without this volume  attached (for example, so this volume could move back and forth  between different instances), you should add the  nofail mount option that allows the instance  to boot even if there are errors in mounting the volume. Debian  derivatives, such as Ubuntu, must also add the  nobootwait mount option.  


LABEL=MY_RAID /mnt/raid ext4 defaults,nofail 0 2



After you've added the new entry to /etc/fstab,  you need to check that your entry works. Run the sudo mount  -a command to mount all file systems in  /etc/fstab.  
[ec2-user ~]$ sudo mount -a

If the previous command does not produce an error, then your  /etc/fstab file is OK and your file system will  mount automatically at the next boot. If the command does produce any  errors, examine the errors and try to correct your  /etc/fstab.  


Warning


Errors in the /etc/fstab file can render a  system unbootable. Do not shut down a system that has errors in the  /etc/fstab file.  





(Optional) If you are unsure how to correct  /etc/fstab errors, you can always restore your  backup /etc/fstab file with the following  command.  
[ec2-user ~]$ sudo mv /etc/fstab.orig /etc/fstab





Creating Snapshots of Volumes in a RAID Array


If you want to back up the data on the EBS volumes in a RAID array using snapshots,  you must ensure that the snapshots are consistent. This is because the snapshots of  these volumes are created independently. To restore EBS volumes in a RAID array from  snapshots that are out of sync would degrade the integrity of the array.  

To create a consistent set of snapshots for your RAID array, use EBS  multi-volume snapshots. Multi-volume snapshots allow you to take  point-in-time, data coordinated, and crash-consistent snapshots across multiple EBS  volumes attached to an EC2 instance. You do not have to stop your instance to coordinate  between volumes to ensure consistency because snapshots are automatically taken across  multiple EBS volumes. For more information, see the steps for creating multi-volume  snapshots under Creating  Amazon EBS Snapshots. 





WarningJavascript is disabled or is unavailable in your  browser.

To use the AWS Documentation, Javascript must be  enabled. Please refer to your browser's Help pages for instructions.  






Document Conventions


Initialize volumes

Benchmark EBS volumes
 

Thanks for letting us know we're doing a good job!

If you've got a moment, please tell us what we did right so we can do more of it.

Thanks for letting us know this page needs work. We're sorry we let you down.

If you've got a moment, please tell us how we can make the documentation better.