[ Legal Information ]

Software RAID

Suite Description

This test suite is used to test the RAID (Redundant Array of Independent Disks) features on Linux distributions. It includes partitioning the RAID system to install Linux and testing the basic functions RAID provides on different RAID levels.

Execution Frequency

This suite should be executed on one hot-swap RAID system for each beta during the beta cycle, if the distro supports software RAID. Testing without hot-swap disks is possible, but failure simulation is more difficult.

Execution Dependencies

This suite has the following dependencies:

Suite Overview

This suite contains the following cases:

No.   Case Name   Blocking
Case
  Estimated
Execution
  Abandon
After
1   Partitioning the hard disks for RAID level 1   yes   30 min   2 hrs
2   Basic functions test on RAID level 1 -- mirror   no   20 min   60 min

Revision History

Version   Effective Date   Author/Editor   Summary of Changes
1.0   2001-10-15   Airong Zhang   Original Suite



Partitioning the hard disks for RAID level 1

A RAID system has more than one hard disk and each disk must be partitioned properly in order for the array to function correctly.

Each of the test disks must have the same partitioning scheme, which must then be fashioned into a software array. If a /boot partition is required by the distro, place it on the first SCSI disk and use two other disks for the RAID.

The RAID nomenclature may vary from one distro to another. This case must be completed successfully prior to attempting the RAID test.

Environment Prerequisites

Preferred architecture: server system with removable RAID disks
System installed? no
Network configured? n/a
Interface: n/a
Logged in as: n/a

Steps

1
Purpose Install the operating system with software RAID support
Commands 1 Boot off the CD
2 Enter the graphical installation sequence
3 Follow the prompts until you reach partitioning.
4 Select the manually partition option. (The tool varies from distro to distro.
Expected Results You should be at a partitioning screen.
 
2
Purpose Partition the system with software RAID
Commands - Option 1: /boot is a requirement -
Note: This method requires 3 disks.
1 Create /boot (50 MB) and swap (500 MB) partitions on sda.
2 Create identical unmounted partitions (5000+ MB) of type RAID level 1 on sdb and sdc.
3 Create a RAID array containing the unmounted partitions and mount it as / (root).
 
- Option 2: no /boot requirement -
Note: This method requires 2 disks.
1 Create identical unmounted partitions (5000+ MB) of type RAID level 1 (nomenclature may vary from one distro to another) on sda and sdb.
2 Create identical swap (500 MB) partitions on the same drives.
3 Create a RAID array containing the unmounted 5000 MB partitions and mount it as / (root).
Expected Results A new device will be added to the partition table. The name of the device may vary by distro, but it is usually md0.
Comments and Tips Normally, you should only test with two drives in the array. The subsequent functionality test is written for a two-drive array. If you add drives, you will also need to modify the failure simulations provided in that test to account for the presence of additional drives.
 
3
Purpose Finish the installation
Commands Follow the prompts to install the operating system. See the Installation test script if you have questions about installation options.
Expected Results The system should reboot after installation.
Comments and Tips Linux will be installed on md0 rather than sda1.
 

Results

System Attempts Pass Pass
w/Errors
Fail Comments
 
 
         
 
 
         
 
 
         



Basic functions test on RAID level 1 -- mirror

RAID level 1 provides redundancy by writing identical data to each member disk of the array, leaving a "mirrored" copy on each disk. If a member drive fails, the remaining drive contains an exact copy of the data.

Level 1 operates with two or more disks that may use parallel access for high data-transfer rates. The tests here include read/write function and simulated drive failure for a two-drive array.

The "main" drive is the one in the first bay (excluding the boot drive, if one was required) at the beginning of testing. The "mirror" drive starts out in the bay below the main drive. You may find it helpful to note which drive is in which bay at each point a drive removal or insertion is made.

Environment Prerequisites

Preferred architecture: server system with removable RAID disks
System installed? yes; with software RAID
Network configured? n/a
Interface: tester preference
Logged in as: tester

Steps

Important note: Refer to and comply with the manufacturer's instructions for removing disks.

1
Purpose Create a new directory and a new file.
Commands 1 cd /home/userid
2 mkdir tmp
3 cd tmp
4 vi testfile
5 Press i and type "This is a test for R/W".
6 Save the file (ESC :wq).
7 ls -l
Expected Results You should see testfile in the folder you created.
Comments and Tips  
 
2
Purpose Simulate a failure on the main drive.
Commands 1 su
2 shutdown -r now
3 Power off the system.
4 Pull out the main drive.
5 Power on the system.
Expected Results The system should reboot normally.
Comments and Tips If you had to install with a boot drive (option 1), the main drive will be the second physical drive. In this case, adjust all drive references appropriately.
 
3
Purpose Verify that the newly created file exists on the mirror drive.
Commands 1 cd /home/userid
2 ls -l
3 cat testfile
Expected Results The file "testfile" should be present with the correct contents.
Comments and Tips  
 
4
Purpose Verify that the system can be rebooted with the two drives swapped.
Commands 1 su
2 shutdown now
3 Power off the system.
4 Move the mirror drive to the first slot and put the main drive in the second slot.
5 Power on the system.
Expected Results The system should boot normally.
Comments and Tips  
 
5
Purpose Verify that the system can be rebooted with only the main drive.
Commands 1 Log in as root
2 shutdown now
3 Power off the system.
4 Pull out the mirror drive.
5 Power on the system to reboot.
Expected Results The system should boot normally.
Comments and Tips  
 
6
Purpose Verify that the system can work correctly with only one drive.
Commands 1 cd /home/userid
2 mkdir tmp2
3 cd tmp2
4 vi testfile2
5 Press i and type "This is another test for R/W".
6 Save the file (ESC :wq).
7 ls -l
8 cat testfile2
Expected Results The file "testfile2" should be present with the correct contents.
Comments and Tips  
 

Results

System Attempts Pass Pass
w/Errors
Fail Comments
 
 
         
 
 
         
 
 
         

 


 

Legal Information

The information included in this test instruction document is provided AS IS without warranty of any kind. IBM EXPRESSLY DISCLAIMS ANY WARRANTIES, EXPRESS OR IMPLIED, INCLUDING THE IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. IBM does not warrant any results or performance measurements obtained. Any information concerning IBM products was written for IBM products offered in the U.S.A. IBM may not offer the products, services or features discussed in this document in other countries, and the information is subject to change without notice. The information in this document relating to Linux is provided as a convenience to Linux users, and IBM makes no warranty or representation, express or implied, with respect to the accuracy and completeness of the information, and assumes no responsibility for any errors, which may appear in the document. Any performance or test data contained herein was determined in a controlled test environment. Therefore, the results obtained in other operating environments may vary. No license, express or implied, to any intellectual property is granted by this document. IBM may make improvements and/or changes in product(s) and/or programs described in this publication at any time without notice.

Linux is a trademark of Linus Torvalds.

[ top ]

1