The YaST soft RAID configuration can be reached from the YaST Expert Partitioner. This partitioning tool also enables you to edit and delete existing partitions and create new ones that should be used with soft RAID. These instructions apply on setting up RAID levels 0, 1, 5, and 6. Setting up RAID 10 configurations is explained in Section 9.0, Creating Software RAID 10 Devices.
Launch YaST and open the.
If necessary, create partitions that should be used with your RAID
configuration. Do not format them and set the partition type to
Using the YaST Partitioner, (↑Deployment Guide)
It is strongly recommended to use partitions stored on different hard disks to decrease the risk of losing data if one is defective (RAID 1 and 5) and to optimize the performance of RAID 0.
For RAID 0 at least two partitions are needed. RAID 1 requires exactly two partitions, while at least three partitions are required for RAID 5. A RAID 6 setup requires at least four partitions. It is recommended to use only partitions of the same size because each segment can contribute only the same amount of space as the smallest sized partition.
In the left panel, select.
A list of existing RAID configurations opens in the right panel.
At the lower left of the RAID page, click.
Select aand an appropriate number of partitions from the dialog.
You can optionally assign a /dev/md/NAME. See Section 7.2.1, RAID Names for more information.to your RAID. It will make it available as
Figure 7-1 Example RAID 5 Configuration
Select the https://raid.wiki.kernel.org/index.php/RAID_setup#Chunk_sizes for more information. More information on parity algorithms can be found with man 8 mdadm when searching for the --layout option. If unsure, stick with the defaults.and, if applicable, the . The optimal chunk size depends on the type of data and the type of RAID. See
Choose afor the volume. Your choice here only affects the default values for the upcoming dialog. They can be changed in the next step. If in doubt, choose .
Under, select , then select the . The content of the menu depends on the file system. Usually there is no need to change the defaults.
Under, select , then select the mount point. Click to add special mounting options for the volume.
Click, verify that the changes are listed, then click .
By default, software RAID devices have numeric names following the pattern mdN, where N is a number. As such they can be accessed as, for example, /dev/md127 and are listed as md127 in /proc/mdstat and /proc/partitions. Working with these names can be clumsy. SUSE Linux Enterprise Server offers two ways to work around this problem:
You can optionally specify a name for the RAID device when creating it with YaST or on the command line with mdadm --create '/dev/md/ NAME'. The device name will still be mdN, but a link /dev/md/NAME will be created:
tux > ls -og /dev/md total 0 lrwxrwxrwx 1 8 Dec 9 15:11 myRAID -> ../md127
The device will still be listed as md127 under /proc.
In case a named link to the device is not sufficient for your setup, add the line CREATE names=yes to /etc/mdadm.conf by running the following command:
sudo echo "CREATE names=yes" >> /etc/mdadm.conf
It will cause names like myRAID to be used as a
real device name. The device will not only be accessible
at /dev/myRAID, but also be listed as
myRAID under /proc. Note that
this will only apply to RAIDs configured after the change to the
configuration file. Active RAIDS will continue to use the
mdN names until they get stopped and re-assembled.
WARNING: Incompatible Tools
Not all tools may support named RAID devices. In case a tool expects a RAID device to be named mdN, it will fail to identify the devices.