===== Power Linux hardware RAID configuration ===== ==== Work with raid after OS installation ==== The linux package **iprutils** allows to configure a RAID adapter. [root@rh-ppcle ~]# iprconfig IBM Power RAID Configuration Utility Select one of the following: 1. Display hardware status 2. Work with disk arrays 3. Work with disk unit recovery 4. Work with SCSI bus configuration 5. Work with driver configuration 6. Work with disk configuration 7. Work with adapter configuration 8. Download microcode 9. Analyze log Example of commands to manage RAID: http://www.unix.com/man-page/centos/8/iprconfig/ 1. Concurrent maintenance commands line changes from PCI location to physical location(3/12/2012). #iprconfig -c identify-slot "U5886.001.P915059-P1-D1 1" #iprconfig -c remove-slot "U5886.001.P915059-P1-D1 1" #iprconfig -c add-slot "U5886.001.P915059-P1-D1 1" 2. Work with disk enclosures #iprconfig -c query-disk-enclosure-status #iprconfig -c suspend-disk-enclosure sg8 #iprconfig -c resume-disk-enclosure sg8 ^ ^ Task ^ Command ^ | |General help|man iprconfig| | |Viewing the disk array status|iprconifg -c show-arrays| | |Format device for advanced function|iprconfig -c format-for-raid [disk].....[disk]| | |Format device for JBOD function|iprconfig -c format-for-jbod [disk]....[disk]| | |Creating a SAS disk array|iprconfig -c raid-create -r [raid-level] -s [strip_size] [devices]| | |Deleting a SAS disk array|iprconfig -c raid-delete [RAID device]| | |Adding disks to an existing disk array|iprconfig -c raid-include [array] [disk]...[disk]| | |Creating hot spare disks|iprconfig -c hot-spare-create [disk]| | |Deleting hot spare disks|iprconfig -c hot-spare-delete [disk]| | |Displaying rechargeable battery information|iprconfig -c show-battery-info [IOA]| ==== Install OS on a RAID array ==== It's recommended to configure the array/raid before install the Linux OS. === First download the diagnostic CDROM to setup the raid: === https://www-304.ibm.com/webapp/set2/sas/f/diags2/download/ === Then boot on diagnostic CDROM, go to SMS menu to boot on CD/DVD === The following Diag Menu will appear FUNCTION SELECTION Move cursor to selection, then press Enter. Diagnostic Routines This selection will test the machine hardware. Wrap plugs and other advanced functions will not be used. Advanced Diagnostics Routines This selection will test the machine hardware. Wrap plugs and other advanced functions will be used. Task Selection (Diagnostics, Advanced Diagnostics, Service Aids, etc.) This selection will list the tasks supported by these procedures. Once a task is selected, a resource menu may be presented showing all resources supported by the task. Resource Selection This selection will list the resources in the system that are supported by these procedures. Once a resource is selected, a task menu will be presented showing all tasks that can be run on the resource(s). F1=Help F10=Exit F3=Previous Menu Choose **Task Selection** TASKS SELECTION LIST From the list below, select a task by moving the cursor to the task and pressing 'Enter'. To list the resources for the task highlighted, press 'List'. Run Diagnostics Run Error Log Analysis Run Exercisers Display or Change Diagnostic Run Time Options Add Resource to Resource List Automatic Error Log Analysis and Notification Backup and Restore Media Change Hardware Vital Product Data Configure Platform Processor Diagnostics Delete Resource from Resource List Disk Maintenance Display Configuration and Resource List Display Firmware Device Node Information Display Hardware Error Report Display Hardware Vital Product Data Display Multipath I/O (MPIO) Device Configuration Display Previous Diagnostic Results Display Resource Attributes Display Software Product Data Display or Change Bootlist Gather System Information Hot Plug Task Log Repair Action Microcode Tasks RAID Array Manager Update Disk Based Diagnostics [BOTTOM] F1=Help F4=List F10=Exit Enter F3=Previous Menu Choose **RAID Array Manager** RAID Array Manager Move cursor to desired item and press Enter. IBM SAS Disk Array Manager PCI SCSI Disk Array Manager PCI-X SCSI Disk Array Manager Depending on the adapter / disk type, choose the right adapter type, example:**IBM SAS Disk Array Manager** IBM SAS Disk Array Manager Move cursor to desired item and press Enter. List SAS Disk Array Configuration Create an Array Candidate pdisk and Format to RAID block size Create a SAS Disk Array Delete a SAS Disk Array Add Disks to an Existing SAS Disk Array Migrate an Existing SAS Disk Array to a New RAID Level Configure a Defined SAS Disk Array Change/Show Characteristics of a SAS Disk Array Manage HA Access Characteristics of a SAS Disk Array Reconstruct a SAS Disk Array Change/Show SAS pdisk Status Diagnostics and Recovery Options Now you can create a RAID ARRAY with disks that are candidates, you can select spares...define raid array, and only that are supported (depending on adapter) will be proposed. Once format of raid array is finish === Install the Linux PPC or PPCle OS === Boot on CD using SMS menu and start Linux installation. https://www.ibm.com/developerworks/aix/tutorials/au-aix-raid/index.html