Description
This is a critical path test case for the mdadm
package. It tests whether a particular mdadm package is capable of correctly assembling a Linux software RAID array. You will need a system which uses one or more Linux software RAID arrays for partitions that are mounted and used by the system. Please ensure the array(s) are working with the existing mdadm
package before performing the test, unless the update in question is intended to fix a bug you are currently experiencing and you wish to test the fix.
How to test
- Before updating the package, run the command
ls /dev/md*
and note the result - Install the updated
mdadm
package you wish to test - Run the command
su -c 'dracut /boot/initramfs-test-
to create a new initramfs to testuname -r
.imguname -r
' - Edit the file
/etc/grub.conf
and change the initramfs entry for the current kernel: the commandsu -c 'sed -i -e "s,initramfs-
should usually achieve thisuname -r
,initramfs-test-uname -r
,g" /etc/grub.conf' - Restart the system, selecting the same kernel to boot
- Re-run the command
ls /dev/md*
and compare the result to the previous run
Expected Results
- Upon reboot the software RAID arrays should behave as they did previously (unless you are testing a bug fix for your configuration, in which case they should behave as the fix intends), and be correctly assembled and mountable. The output of the
ls /dev/md*
command should be the same as before the update, unless you are testing a bug fix, in which case it should be as the bug fix intends it to be.